@vunk/form 2.16.1 → 2.16.2
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/dialog/index.cjs +2 -1
- package/components/dialog/index.mjs +2 -1
- package/components/radio/index.cjs +161 -33
- package/components/radio/index.css +16 -0
- package/components/radio/index.d.ts +1 -1
- package/components/radio/index.mjs +165 -37
- package/components/radio/src/ctx.d.ts +9 -1
- package/components/radio/src/index.vue.d.ts +686 -500
- package/components/radio/src/option.vue.d.ts +901 -0
- package/components/radio/src/wraper.vue.d.ts +337 -0
- package/components/select/index.cjs +9 -3
- package/components/select/index.mjs +9 -3
- package/index.css +16 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -94,10 +94,16 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
94
|
"key": childOption.value
|
|
95
95
|
}, childOption), null))) ? _slot : {
|
|
96
96
|
default: () => [_slot]
|
|
97
|
-
}) : vue.createVNode(elementPlus$1.ElOption,
|
|
97
|
+
}) : vue.createVNode(elementPlus$1.ElOption, {
|
|
98
98
|
"key": item.value,
|
|
99
|
-
"value": item.value
|
|
100
|
-
|
|
99
|
+
"value": item.value,
|
|
100
|
+
"class": item.class,
|
|
101
|
+
"created": item.created,
|
|
102
|
+
"disabled": item.disabled,
|
|
103
|
+
"label": item.label,
|
|
104
|
+
"ref": item.ref,
|
|
105
|
+
"style": item.style
|
|
106
|
+
}, {
|
|
101
107
|
default: () => slots.option ? slots.option(item) : item.label
|
|
102
108
|
});
|
|
103
109
|
};
|
|
@@ -90,10 +90,16 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
"key": childOption.value
|
|
91
91
|
}, childOption), null))) ? _slot : {
|
|
92
92
|
default: () => [_slot]
|
|
93
|
-
}) : createVNode(ElOption,
|
|
93
|
+
}) : createVNode(ElOption, {
|
|
94
94
|
"key": item.value,
|
|
95
|
-
"value": item.value
|
|
96
|
-
|
|
95
|
+
"value": item.value,
|
|
96
|
+
"class": item.class,
|
|
97
|
+
"created": item.created,
|
|
98
|
+
"disabled": item.disabled,
|
|
99
|
+
"label": item.label,
|
|
100
|
+
"ref": item.ref,
|
|
101
|
+
"style": item.style
|
|
102
|
+
}, {
|
|
97
103
|
default: () => slots.option ? slots.option(item) : item.label
|
|
98
104
|
});
|
|
99
105
|
};
|
package/index.css
CHANGED
|
@@ -340,6 +340,22 @@
|
|
|
340
340
|
width: 100%;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
+
.vkf-radio-option-card.is-checked {
|
|
344
|
+
border-color: var(--el-color-primary);
|
|
345
|
+
}
|
|
346
|
+
.vkf-radio-option-card{
|
|
347
|
+
font-size: var(--el-font-size-base);
|
|
348
|
+
cursor: pointer;
|
|
349
|
+
}
|
|
350
|
+
.vkf-radio-option-card:not(:last-child) {
|
|
351
|
+
margin-right: 30px;
|
|
352
|
+
}
|
|
353
|
+
.vkf-radio-option-card > .el-card__body{
|
|
354
|
+
display: flex;
|
|
355
|
+
justify-content: space-between;
|
|
356
|
+
align-items: center;
|
|
357
|
+
width: max-content;
|
|
358
|
+
}
|
|
343
359
|
.el-radio-group.is-readonly,
|
|
344
360
|
.el-radio-group.is-readonly .el-radio-button{
|
|
345
361
|
--el-readonly-cursor: auto;
|