@vunk/form 1.1.19 → 1.1.21
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/input-link/index.js +28 -20
- package/components/input-link/src/ctx.d.ts +32 -2
- package/components/input-link/src/ctx.js +18 -2
- package/components/input-link/src/index.vue.d.ts +40 -6
- package/components/select/index.js +5 -3
- package/components/select/src/ctx.d.ts +1 -0
- package/components/select/src/ctx.js +2 -1
- package/components/select/src/index.vue.d.ts +2 -1
- package/components/slider/index.d.ts +4 -0
- package/components/slider/index.js +99 -0
- package/components/slider/src/ctx.d.ts +130 -0
- package/components/slider/src/ctx.js +32 -0
- package/components/slider/src/index.vue.d.ts +351 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/slider/src/types.js +1 -0
- package/components/switch/index.js +1 -0
- package/components/switch/src/ctx.d.ts +14 -12
- package/components/switch/src/ctx.js +1 -0
- package/components/switch/src/index.vue.d.ts +4 -2
- package/components/templates-default/index.js +19 -1
- package/components/templates-default/src/types.d.ts +3 -1
- package/components/upload-plus/index.js +9 -1
- package/components/upload-plus/src/ctx.d.ts +4 -0
- package/components/upload-plus/src/ctx.js +4 -0
- package/components/upload-plus/src/index.vue.d.ts +9 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +6 -0
- package/shared/element-plus/index.js +4 -2
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<any>;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
defaultModelValue: null;
|
|
7
|
+
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
8
|
+
min: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
9
|
+
max: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
10
|
+
step: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
11
|
+
showInput: BooleanConstructor;
|
|
12
|
+
showInputControls: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
13
|
+
size: {
|
|
14
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
};
|
|
19
|
+
inputSize: {
|
|
20
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
21
|
+
readonly required: false;
|
|
22
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
23
|
+
__epPropKey: true;
|
|
24
|
+
};
|
|
25
|
+
showStops: BooleanConstructor;
|
|
26
|
+
showTooltip: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
27
|
+
formatTooltip: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (val: number) => string | number) | (() => (val: number) => string | number) | {
|
|
28
|
+
(): (val: number) => string | number;
|
|
29
|
+
new (): any;
|
|
30
|
+
readonly prototype: any;
|
|
31
|
+
} | ((new (...args: any[]) => (val: number) => string | number) | (() => (val: number) => string | number) | {
|
|
32
|
+
(): (val: number) => string | number;
|
|
33
|
+
new (): any;
|
|
34
|
+
readonly prototype: any;
|
|
35
|
+
})[], unknown, unknown, undefined, boolean>;
|
|
36
|
+
disabled: BooleanConstructor;
|
|
37
|
+
range: BooleanConstructor;
|
|
38
|
+
vertical: BooleanConstructor;
|
|
39
|
+
height: StringConstructor;
|
|
40
|
+
debounce: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
41
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
42
|
+
rangeStartLabel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
43
|
+
rangeEndLabel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
44
|
+
formatValueText: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (val: number) => string) | (() => (val: number) => string) | {
|
|
45
|
+
(): (val: number) => string;
|
|
46
|
+
new (): any;
|
|
47
|
+
readonly prototype: any;
|
|
48
|
+
} | ((new (...args: any[]) => (val: number) => string) | (() => (val: number) => string) | {
|
|
49
|
+
(): (val: number) => string;
|
|
50
|
+
new (): any;
|
|
51
|
+
readonly prototype: any;
|
|
52
|
+
})[], unknown, unknown, undefined, boolean>;
|
|
53
|
+
tooltipClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
54
|
+
placement: import("element-plus/es/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "top", boolean>;
|
|
55
|
+
marks: {
|
|
56
|
+
readonly type: import("vue").PropType<{
|
|
57
|
+
[x: number]: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
|
|
58
|
+
style: import("vue").CSSProperties;
|
|
59
|
+
label: any;
|
|
60
|
+
}) & {}) | (() => string | {
|
|
61
|
+
style: import("vue").CSSProperties;
|
|
62
|
+
label: any;
|
|
63
|
+
}) | ((new (...args: any[]) => (string | {
|
|
64
|
+
style: import("vue").CSSProperties;
|
|
65
|
+
label: any;
|
|
66
|
+
}) & {}) | (() => string | {
|
|
67
|
+
style: import("vue").CSSProperties;
|
|
68
|
+
label: any;
|
|
69
|
+
}))[], unknown, unknown> | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
};
|
|
75
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
76
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
77
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
78
|
+
prop: {
|
|
79
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
80
|
+
readonly required: false;
|
|
81
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
|
+
__epPropKey: true;
|
|
83
|
+
};
|
|
84
|
+
rules: {
|
|
85
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
};
|
|
90
|
+
error: StringConstructor;
|
|
91
|
+
validateStatus: {
|
|
92
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
+
__epPropKey: true;
|
|
96
|
+
};
|
|
97
|
+
for: StringConstructor;
|
|
98
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
99
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
100
|
+
formItemSize: {
|
|
101
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
formItemSlots: {
|
|
105
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
elRef: {
|
|
109
|
+
type: import("vue").PropType<any>;
|
|
110
|
+
required: boolean;
|
|
111
|
+
};
|
|
112
|
+
inline: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
readonly: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
labelPosition: {
|
|
121
|
+
type: import("vue").PropType<"right">;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
readonly: import("vue").ComputedRef<boolean>;
|
|
126
|
+
formItemBindProps: import("vue").ComputedRef<{
|
|
127
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
128
|
+
label: string | undefined;
|
|
129
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
130
|
+
prop: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown> | undefined;
|
|
131
|
+
rules: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown> | undefined;
|
|
132
|
+
error: string | undefined;
|
|
133
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
134
|
+
for: string | undefined;
|
|
135
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
136
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
137
|
+
formItemSize: "default" | "small" | "large";
|
|
138
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
139
|
+
elRef: any;
|
|
140
|
+
inline: boolean;
|
|
141
|
+
readonly: boolean | undefined;
|
|
142
|
+
labelPosition: "right";
|
|
143
|
+
}>;
|
|
144
|
+
coreProps: import("vue").ComputedRef<{
|
|
145
|
+
label: string | undefined;
|
|
146
|
+
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
147
|
+
placement: import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown>;
|
|
148
|
+
id: string | undefined;
|
|
149
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
150
|
+
vertical: boolean;
|
|
151
|
+
step: number;
|
|
152
|
+
max: number;
|
|
153
|
+
min: number;
|
|
154
|
+
debounce: number;
|
|
155
|
+
showInput: boolean;
|
|
156
|
+
showInputControls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
157
|
+
inputSize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
158
|
+
showStops: boolean;
|
|
159
|
+
showTooltip: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
160
|
+
formatTooltip: ((val: number) => string | number) | undefined;
|
|
161
|
+
range: boolean;
|
|
162
|
+
height: string | undefined;
|
|
163
|
+
rangeStartLabel: string | undefined;
|
|
164
|
+
rangeEndLabel: string | undefined;
|
|
165
|
+
formatValueText: ((val: number) => string) | undefined;
|
|
166
|
+
tooltipClass: string | undefined;
|
|
167
|
+
marks: {
|
|
168
|
+
[x: number]: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
|
|
169
|
+
style: import("vue").CSSProperties;
|
|
170
|
+
label: any;
|
|
171
|
+
}) & {}) | (() => string | {
|
|
172
|
+
style: import("vue").CSSProperties;
|
|
173
|
+
label: any;
|
|
174
|
+
}) | ((new (...args: any[]) => (string | {
|
|
175
|
+
style: import("vue").CSSProperties;
|
|
176
|
+
label: any;
|
|
177
|
+
}) & {}) | (() => string | {
|
|
178
|
+
style: import("vue").CSSProperties;
|
|
179
|
+
label: any;
|
|
180
|
+
}))[], unknown, unknown> | undefined;
|
|
181
|
+
} | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
coreEmits: {
|
|
184
|
+
"update:modelValue": (value: import("element-plus/es/utils").Arrayable<number>) => void;
|
|
185
|
+
input: (value: import("element-plus/es/utils").Arrayable<number>) => void;
|
|
186
|
+
change: (value: import("element-plus/es/utils").Arrayable<number>) => void;
|
|
187
|
+
};
|
|
188
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
189
|
+
"update:modelValue": (value: import("element-plus/es/utils").Arrayable<number>) => boolean;
|
|
190
|
+
input: (value: import("element-plus/es/utils").Arrayable<number>) => boolean;
|
|
191
|
+
change: (value: import("element-plus/es/utils").Arrayable<number>) => boolean;
|
|
192
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
193
|
+
modelValue: {
|
|
194
|
+
type: import("vue").PropType<any>;
|
|
195
|
+
default: undefined;
|
|
196
|
+
};
|
|
197
|
+
defaultModelValue: null;
|
|
198
|
+
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
199
|
+
min: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
200
|
+
max: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
201
|
+
step: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
202
|
+
showInput: BooleanConstructor;
|
|
203
|
+
showInputControls: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
204
|
+
size: {
|
|
205
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
206
|
+
readonly required: false;
|
|
207
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
208
|
+
__epPropKey: true;
|
|
209
|
+
};
|
|
210
|
+
inputSize: {
|
|
211
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
214
|
+
__epPropKey: true;
|
|
215
|
+
};
|
|
216
|
+
showStops: BooleanConstructor;
|
|
217
|
+
showTooltip: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
218
|
+
formatTooltip: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (val: number) => string | number) | (() => (val: number) => string | number) | {
|
|
219
|
+
(): (val: number) => string | number;
|
|
220
|
+
new (): any;
|
|
221
|
+
readonly prototype: any;
|
|
222
|
+
} | ((new (...args: any[]) => (val: number) => string | number) | (() => (val: number) => string | number) | {
|
|
223
|
+
(): (val: number) => string | number;
|
|
224
|
+
new (): any;
|
|
225
|
+
readonly prototype: any;
|
|
226
|
+
})[], unknown, unknown, undefined, boolean>;
|
|
227
|
+
disabled: BooleanConstructor;
|
|
228
|
+
range: BooleanConstructor;
|
|
229
|
+
vertical: BooleanConstructor;
|
|
230
|
+
height: StringConstructor;
|
|
231
|
+
debounce: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
232
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
233
|
+
rangeStartLabel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
234
|
+
rangeEndLabel: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
235
|
+
formatValueText: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (val: number) => string) | (() => (val: number) => string) | {
|
|
236
|
+
(): (val: number) => string;
|
|
237
|
+
new (): any;
|
|
238
|
+
readonly prototype: any;
|
|
239
|
+
} | ((new (...args: any[]) => (val: number) => string) | (() => (val: number) => string) | {
|
|
240
|
+
(): (val: number) => string;
|
|
241
|
+
new (): any;
|
|
242
|
+
readonly prototype: any;
|
|
243
|
+
})[], unknown, unknown, undefined, boolean>;
|
|
244
|
+
tooltipClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
245
|
+
placement: import("element-plus/es/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "top", boolean>;
|
|
246
|
+
marks: {
|
|
247
|
+
readonly type: import("vue").PropType<{
|
|
248
|
+
[x: number]: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
|
|
249
|
+
style: import("vue").CSSProperties;
|
|
250
|
+
label: any;
|
|
251
|
+
}) & {}) | (() => string | {
|
|
252
|
+
style: import("vue").CSSProperties;
|
|
253
|
+
label: any;
|
|
254
|
+
}) | ((new (...args: any[]) => (string | {
|
|
255
|
+
style: import("vue").CSSProperties;
|
|
256
|
+
label: any;
|
|
257
|
+
}) & {}) | (() => string | {
|
|
258
|
+
style: import("vue").CSSProperties;
|
|
259
|
+
label: any;
|
|
260
|
+
}))[], unknown, unknown> | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
readonly required: false;
|
|
263
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
264
|
+
__epPropKey: true;
|
|
265
|
+
};
|
|
266
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
267
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
268
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
269
|
+
prop: {
|
|
270
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
271
|
+
readonly required: false;
|
|
272
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
273
|
+
__epPropKey: true;
|
|
274
|
+
};
|
|
275
|
+
rules: {
|
|
276
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
277
|
+
readonly required: false;
|
|
278
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
279
|
+
__epPropKey: true;
|
|
280
|
+
};
|
|
281
|
+
error: StringConstructor;
|
|
282
|
+
validateStatus: {
|
|
283
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
284
|
+
readonly required: false;
|
|
285
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
286
|
+
__epPropKey: true;
|
|
287
|
+
};
|
|
288
|
+
for: StringConstructor;
|
|
289
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
290
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
291
|
+
formItemSize: {
|
|
292
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
293
|
+
default: string;
|
|
294
|
+
};
|
|
295
|
+
formItemSlots: {
|
|
296
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
297
|
+
default: undefined;
|
|
298
|
+
};
|
|
299
|
+
elRef: {
|
|
300
|
+
type: import("vue").PropType<any>;
|
|
301
|
+
required: boolean;
|
|
302
|
+
};
|
|
303
|
+
inline: {
|
|
304
|
+
type: BooleanConstructor;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
307
|
+
readonly: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: undefined;
|
|
310
|
+
};
|
|
311
|
+
labelPosition: {
|
|
312
|
+
type: import("vue").PropType<"right">;
|
|
313
|
+
default: string;
|
|
314
|
+
};
|
|
315
|
+
}>> & {
|
|
316
|
+
onChange?: ((value: import("element-plus/es/utils").Arrayable<number>) => any) | undefined;
|
|
317
|
+
"onUpdate:modelValue"?: ((value: import("element-plus/es/utils").Arrayable<number>) => any) | undefined;
|
|
318
|
+
onInput?: ((value: import("element-plus/es/utils").Arrayable<number>) => any) | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
321
|
+
label: string;
|
|
322
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
323
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
324
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
325
|
+
formItemSize: "default" | "small" | "large";
|
|
326
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
327
|
+
inline: boolean;
|
|
328
|
+
readonly: boolean;
|
|
329
|
+
labelPosition: "right";
|
|
330
|
+
disabled: boolean;
|
|
331
|
+
placement: import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown>;
|
|
332
|
+
id: string;
|
|
333
|
+
modelValue: any;
|
|
334
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
335
|
+
vertical: boolean;
|
|
336
|
+
step: number;
|
|
337
|
+
max: number;
|
|
338
|
+
min: number;
|
|
339
|
+
debounce: number;
|
|
340
|
+
showInput: boolean;
|
|
341
|
+
showInputControls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
342
|
+
showStops: boolean;
|
|
343
|
+
showTooltip: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
|
+
formatTooltip: (val: number) => string | number;
|
|
345
|
+
range: boolean;
|
|
346
|
+
rangeStartLabel: string;
|
|
347
|
+
rangeEndLabel: string;
|
|
348
|
+
formatValueText: (val: number) => string;
|
|
349
|
+
tooltipClass: string;
|
|
350
|
+
}>;
|
|
351
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { VkfSlider } from '@vunk/form/components/slider';
|
|
4
|
+
export interface Source<P extends string = string> extends VueComponentPropsType<typeof VkfSlider>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfSlider';
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -25,6 +25,7 @@ var __spreadValues = (a, b) => {
|
|
|
25
25
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
26
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), switchProps), {
|
|
27
27
|
modelValue: {
|
|
28
|
+
type: [],
|
|
28
29
|
default: void 0
|
|
29
30
|
},
|
|
30
31
|
defaultModelValue: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
export declare const props: {
|
|
2
3
|
modelValue: {
|
|
4
|
+
type: PropType<any>;
|
|
3
5
|
default: undefined;
|
|
4
6
|
};
|
|
5
7
|
defaultModelValue: {
|
|
@@ -8,7 +10,7 @@ export declare const props: {
|
|
|
8
10
|
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9
11
|
loading: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
10
12
|
size: {
|
|
11
|
-
readonly type:
|
|
13
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
|
|
12
14
|
readonly required: false;
|
|
13
15
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
16
|
__epPropKey: true;
|
|
@@ -16,13 +18,13 @@ export declare const props: {
|
|
|
16
18
|
width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
17
19
|
inlinePrompt: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
18
20
|
activeIcon: {
|
|
19
|
-
readonly type:
|
|
21
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
20
22
|
readonly required: false;
|
|
21
23
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
24
|
__epPropKey: true;
|
|
23
25
|
};
|
|
24
26
|
inactiveIcon: {
|
|
25
|
-
readonly type:
|
|
27
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
26
28
|
readonly required: false;
|
|
27
29
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
30
|
__epPropKey: true;
|
|
@@ -37,14 +39,14 @@ export declare const props: {
|
|
|
37
39
|
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
38
40
|
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
39
41
|
beforeChange: {
|
|
40
|
-
readonly type:
|
|
42
|
+
readonly type: PropType<() => boolean | Promise<boolean>>;
|
|
41
43
|
readonly required: false;
|
|
42
44
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
45
|
__epPropKey: true;
|
|
44
46
|
};
|
|
45
47
|
id: StringConstructor;
|
|
46
48
|
tabindex: {
|
|
47
|
-
readonly type:
|
|
49
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
48
50
|
readonly required: false;
|
|
49
51
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
52
|
__epPropKey: true;
|
|
@@ -54,20 +56,20 @@ export declare const props: {
|
|
|
54
56
|
label: StringConstructor;
|
|
55
57
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
56
58
|
prop: {
|
|
57
|
-
readonly type:
|
|
59
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
58
60
|
readonly required: false;
|
|
59
61
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
62
|
__epPropKey: true;
|
|
61
63
|
};
|
|
62
64
|
rules: {
|
|
63
|
-
readonly type:
|
|
65
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
64
66
|
readonly required: false;
|
|
65
67
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
68
|
__epPropKey: true;
|
|
67
69
|
};
|
|
68
70
|
error: StringConstructor;
|
|
69
71
|
validateStatus: {
|
|
70
|
-
readonly type:
|
|
72
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
71
73
|
readonly required: false;
|
|
72
74
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
75
|
__epPropKey: true;
|
|
@@ -76,15 +78,15 @@ export declare const props: {
|
|
|
76
78
|
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
77
79
|
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
78
80
|
formItemSize: {
|
|
79
|
-
type:
|
|
81
|
+
type: PropType<"default" | "small" | "large">;
|
|
80
82
|
default: string;
|
|
81
83
|
};
|
|
82
84
|
formItemSlots: {
|
|
83
|
-
type:
|
|
85
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
84
86
|
default: undefined;
|
|
85
87
|
};
|
|
86
88
|
elRef: {
|
|
87
|
-
type:
|
|
89
|
+
type: PropType<any>;
|
|
88
90
|
required: boolean;
|
|
89
91
|
};
|
|
90
92
|
inline: {
|
|
@@ -96,7 +98,7 @@ export declare const props: {
|
|
|
96
98
|
default: undefined;
|
|
97
99
|
};
|
|
98
100
|
labelPosition: {
|
|
99
|
-
type:
|
|
101
|
+
type: PropType<"right">;
|
|
100
102
|
default: string;
|
|
101
103
|
};
|
|
102
104
|
};
|
|
@@ -22,6 +22,7 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
23
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), switchProps), {
|
|
24
24
|
modelValue: {
|
|
25
|
+
type: [],
|
|
25
26
|
default: void 0
|
|
26
27
|
},
|
|
27
28
|
defaultModelValue: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
modelValue: {
|
|
3
|
+
type: import("vue").PropType<any>;
|
|
3
4
|
default: undefined;
|
|
4
5
|
};
|
|
5
6
|
defaultModelValue: {
|
|
@@ -151,6 +152,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
152
|
input: (val: string | number | boolean) => boolean;
|
|
152
153
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
153
154
|
modelValue: {
|
|
155
|
+
type: import("vue").PropType<any>;
|
|
154
156
|
default: undefined;
|
|
155
157
|
};
|
|
156
158
|
defaultModelValue: {
|
|
@@ -268,8 +270,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
270
|
value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
269
271
|
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
270
272
|
loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
271
|
-
modelValue:
|
|
273
|
+
modelValue: any;
|
|
272
274
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
275
|
+
defaultModelValue: boolean;
|
|
273
276
|
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
274
277
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
275
278
|
activeText: string;
|
|
@@ -279,6 +282,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
279
282
|
activeColor: string;
|
|
280
283
|
inactiveColor: string;
|
|
281
284
|
borderColor: string;
|
|
282
|
-
defaultModelValue: boolean;
|
|
283
285
|
}>;
|
|
284
286
|
export default _default;
|
|
@@ -15,6 +15,7 @@ import { VkfColorPicker } from '@vunk/form/components/color-picker';
|
|
|
15
15
|
import { VkfButton } from '@vunk/form/components/button';
|
|
16
16
|
import { VkfCascader } from '@vunk/form/components/cascader';
|
|
17
17
|
import { VkfInputLink } from '@vunk/form/components/input-link';
|
|
18
|
+
import { VkfSlider } from '@vunk/form/components/slider';
|
|
18
19
|
|
|
19
20
|
const createIntoUndefined = () => NOOP;
|
|
20
21
|
const props = {
|
|
@@ -54,7 +55,8 @@ const _sfc_main = defineComponent({
|
|
|
54
55
|
VkfColorPicker,
|
|
55
56
|
VkfButton,
|
|
56
57
|
VkfCascader,
|
|
57
|
-
VkfInputLink
|
|
58
|
+
VkfInputLink,
|
|
59
|
+
VkfSlider
|
|
58
60
|
},
|
|
59
61
|
emits,
|
|
60
62
|
props,
|
|
@@ -87,6 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87
89
|
const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
|
|
88
90
|
const _component_VkfCascader = resolveComponent("VkfCascader");
|
|
89
91
|
const _component_VkfInputLink = resolveComponent("VkfInputLink");
|
|
92
|
+
const _component_VkfSlider = resolveComponent("VkfSlider");
|
|
90
93
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
91
94
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
|
|
92
95
|
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
@@ -224,6 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
224
227
|
]),
|
|
225
228
|
_: 1
|
|
226
229
|
}),
|
|
230
|
+
createCommentVNode(" VkfInputLink "),
|
|
227
231
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
|
|
228
232
|
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
229
233
|
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
|
|
@@ -237,6 +241,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
237
241
|
]),
|
|
238
242
|
_: 1
|
|
239
243
|
}),
|
|
244
|
+
createCommentVNode(" VkfSlider "),
|
|
245
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
|
|
246
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
247
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSlider, mergeProps({
|
|
248
|
+
key: 0,
|
|
249
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
250
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
251
|
+
k: sourceData.prop,
|
|
252
|
+
v: $event
|
|
253
|
+
})
|
|
254
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}),
|
|
240
258
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
|
|
241
259
|
default: withCtx(({ data, raw, templateIf }) => [
|
|
242
260
|
templateIf(data) ? (openBlock(), createBlock(resolveDynamicComponent(typeof data.is === "function" ? data.is(raw) : data.is), normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(data, { excludes: ["is"] }))), null, 16)) : createCommentVNode("v-if", true)
|
|
@@ -11,6 +11,7 @@ import { __VkfUpload } from '@vunk/form/components/upload';
|
|
|
11
11
|
import { __VkfColorPicker } from '@vunk/form/components/color-picker';
|
|
12
12
|
import { __VkfCascader } from '@vunk/form/components/cascader';
|
|
13
13
|
import { __VkfInputLink } from '@vunk/form/components/input-link';
|
|
14
|
+
import { __VkfSlider } from '@vunk/form/components/slider';
|
|
14
15
|
import { IntoUndefined, Func } from '@vunk/core';
|
|
15
16
|
export declare type VkfButtonSource<P extends string = string> = __VkfButton.Source<P>;
|
|
16
17
|
export declare type VkfInputSource<P extends string = string> = __VkfInput.Source<P>;
|
|
@@ -24,11 +25,12 @@ export declare type VkfUploadSource<P extends string = string> = __VkfUpload.Sou
|
|
|
24
25
|
export declare type VkfColorPickerSource<P extends string = string> = __VkfColorPicker.Source<P>;
|
|
25
26
|
export declare type VkfCascaderSource<P extends string = string> = __VkfCascader.Source<P>;
|
|
26
27
|
export declare type VkfInputLinkSource<P extends string = string> = __VkfInputLink.Source<P>;
|
|
28
|
+
export declare type VkfSliderSource<P extends string = string> = __VkfSlider.Source<P>;
|
|
27
29
|
export interface ComponentSource extends BasicSource {
|
|
28
30
|
templateType: 'Component';
|
|
29
31
|
is: any;
|
|
30
32
|
}
|
|
31
|
-
export declare type CoreSource<P extends string = 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>;
|
|
33
|
+
export declare type CoreSource<P extends string = 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>;
|
|
32
34
|
export declare type Source<P extends string = string> = CoreSource<P> | ComponentSource;
|
|
33
35
|
/**
|
|
34
36
|
* @example
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
-
import { openBlock, createElementBlock, createElementVNode, defineComponent, reactive, ref, computed, resolveComponent, createBlock, mergeProps, withCtx, createVNode, normalizeClass, createCommentVNode, Fragment, renderList, normalizeStyle, createTextVNode } from 'vue';
|
|
2
|
+
import { openBlock, createElementBlock, createElementVNode, defineComponent, reactive, ref, computed, watchEffect, resolveComponent, createBlock, mergeProps, withCtx, createVNode, normalizeClass, createCommentVNode, Fragment, renderList, normalizeStyle, createTextVNode } from 'vue';
|
|
3
3
|
import { ElInput, ElButtonGroup, ElButton, ElIcon } from 'element-plus';
|
|
4
4
|
import { createFileChunk, calculateFileHashSample } from '@vunk/form/shared/upload';
|
|
5
5
|
import { RestFetch } from '@vunk/core/shared/utils-fetch';
|
|
@@ -31,6 +31,10 @@ const props = __spreadProps(__spreadValues({}, _VkfFormItemCtx.props), {
|
|
|
31
31
|
dictId: {
|
|
32
32
|
type: String,
|
|
33
33
|
default: ""
|
|
34
|
+
},
|
|
35
|
+
url: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: ""
|
|
34
38
|
}
|
|
35
39
|
});
|
|
36
40
|
const emits = {};
|
|
@@ -237,6 +241,10 @@ const _sfc_main = defineComponent({
|
|
|
237
241
|
}
|
|
238
242
|
return upload_filled_default;
|
|
239
243
|
});
|
|
244
|
+
watchEffect(() => {
|
|
245
|
+
if (props2.url)
|
|
246
|
+
restFetch.baseURL = props2.url;
|
|
247
|
+
});
|
|
240
248
|
const handleFileChange = (e) => {
|
|
241
249
|
const target = e.target;
|
|
242
250
|
const file = target.files?.[0];
|
|
@@ -10,6 +10,10 @@ export declare const props: {
|
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
+
url: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
13
17
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
14
18
|
label: StringConstructor;
|
|
15
19
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|