@vunk/form 0.0.1-alpha.14 → 0.0.1-alpha.15
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/checkbox/index.d.ts +4 -0
- package/components/checkbox/index.js +107 -0
- package/components/checkbox/src/ctx.d.ts +95 -0
- package/components/checkbox/src/ctx.js +35 -0
- package/components/checkbox/src/index.vue.d.ts +241 -0
- package/components/checkbox/src/types.d.ts +1 -0
- package/components/checkbox/src/types.js +1 -0
- package/components/date-picker/src/ctx.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +13 -13
- package/components/form-item-renderer-template-default/index.js +34 -2
- package/components/input/src/ctx.d.ts +1 -1
- package/components/input/src/index.vue.d.ts +7 -7
- package/components/input-number/src/index.vue.d.ts +12 -12
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.js +107 -0
- package/components/radio/src/ctx.d.ts +66 -0
- package/components/radio/src/ctx.js +35 -0
- package/components/radio/src/index.vue.d.ts +179 -0
- package/components/radio/src/types.d.ts +1 -0
- package/components/radio/src/types.js +1 -0
- package/components/select/src/index.vue.d.ts +26 -26
- package/components/switch/src/index.vue.d.ts +5 -5
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +15 -5
- package/shared/element-plus/index.js +6 -2
- package/shared/types/form/checkbox.d.ts +13 -0
- package/shared/types/form/index.d.ts +2 -0
- package/shared/types/form/index.js +1 -0
- package/shared/types/form/radio.d.ts +8 -0
- package/shared/types/renderer-source/checkbox.d.ts +7 -0
- package/shared/types/renderer-source/index.d.ts +5 -1
- package/shared/types/renderer-source/radio.d.ts +7 -0
|
@@ -201,13 +201,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
201
|
selectBindProps: import("vue").ComputedRef<{
|
|
202
202
|
size: "" | "default" | "small" | "large" | undefined;
|
|
203
203
|
name: string | undefined;
|
|
204
|
+
modelValue: string | number | boolean | Record<string, any> | unknown[] | undefined;
|
|
205
|
+
disabled: boolean;
|
|
204
206
|
id: string | undefined;
|
|
205
207
|
popperClass: string;
|
|
206
208
|
clearable: boolean;
|
|
207
209
|
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
208
|
-
disabled: boolean;
|
|
209
210
|
placeholder: string | undefined;
|
|
210
|
-
modelValue: string | number | boolean | Record<string, any> | unknown[] | undefined;
|
|
211
211
|
autocomplete: string;
|
|
212
212
|
suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
213
213
|
loading: boolean;
|
|
@@ -498,8 +498,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
498
498
|
required: boolean;
|
|
499
499
|
};
|
|
500
500
|
}>> & {
|
|
501
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
502
501
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
502
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
503
503
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
504
504
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
505
505
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -512,30 +512,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
512
512
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
513
513
|
formItemSize: "default" | "small" | "large";
|
|
514
514
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
515
|
-
popperClass: string;
|
|
516
|
-
clearable: boolean;
|
|
517
|
-
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
518
|
-
disabled: boolean;
|
|
519
515
|
modelValue: string | number | boolean | Record<string, any> | unknown[];
|
|
520
|
-
|
|
521
|
-
suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
522
|
-
loading: boolean;
|
|
523
|
-
automaticDropdown: boolean;
|
|
524
|
-
effect: string;
|
|
525
|
-
filterable: boolean;
|
|
526
|
-
allowCreate: boolean;
|
|
527
|
-
remote: boolean;
|
|
528
|
-
multiple: boolean;
|
|
529
|
-
multipleLimit: number;
|
|
530
|
-
defaultFirstOption: boolean;
|
|
531
|
-
reserveKeyword: boolean;
|
|
532
|
-
valueKey: string;
|
|
533
|
-
collapseTags: boolean;
|
|
534
|
-
collapseTagsTooltip: boolean;
|
|
535
|
-
teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
536
|
-
persistent: boolean;
|
|
537
|
-
fitInputWidth: boolean;
|
|
538
|
-
tagType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>;
|
|
516
|
+
disabled: boolean;
|
|
539
517
|
options: import("@vunk/core").VueComponentPropsType<import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
540
518
|
value: {
|
|
541
519
|
required: true;
|
|
@@ -596,6 +574,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
596
574
|
disabled: boolean;
|
|
597
575
|
created: boolean;
|
|
598
576
|
}>>>[];
|
|
577
|
+
popperClass: string;
|
|
578
|
+
clearable: boolean;
|
|
579
|
+
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
580
|
+
autocomplete: string;
|
|
581
|
+
suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
582
|
+
loading: boolean;
|
|
583
|
+
automaticDropdown: boolean;
|
|
584
|
+
effect: string;
|
|
585
|
+
filterable: boolean;
|
|
586
|
+
allowCreate: boolean;
|
|
587
|
+
remote: boolean;
|
|
588
|
+
multiple: boolean;
|
|
589
|
+
multipleLimit: number;
|
|
590
|
+
defaultFirstOption: boolean;
|
|
591
|
+
reserveKeyword: boolean;
|
|
592
|
+
valueKey: string;
|
|
593
|
+
collapseTags: boolean;
|
|
594
|
+
collapseTagsTooltip: boolean;
|
|
595
|
+
teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
596
|
+
persistent: boolean;
|
|
597
|
+
fitInputWidth: boolean;
|
|
598
|
+
tagType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>;
|
|
599
599
|
selectSlots: import("./types").SelectSlots;
|
|
600
600
|
}>;
|
|
601
601
|
export default _default;
|
|
@@ -99,10 +99,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
size: 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"> | undefined;
|
|
100
100
|
name: string;
|
|
101
101
|
value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
102
|
+
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
103
|
+
id: string | undefined;
|
|
102
104
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
103
105
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
104
|
-
id: string | undefined;
|
|
105
|
-
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
106
106
|
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
107
107
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
108
108
|
activeIcon: 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>;
|
|
@@ -208,8 +208,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
208
|
required: boolean;
|
|
209
209
|
};
|
|
210
210
|
}>> & {
|
|
211
|
-
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
212
211
|
onChange?: ((val: string | number | boolean) => any) | undefined;
|
|
212
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
213
213
|
onInput?: ((val: string | number | boolean) => any) | undefined;
|
|
214
214
|
}, {
|
|
215
215
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -220,9 +220,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
220
220
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
221
221
|
name: string;
|
|
222
222
|
value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
223
|
-
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
224
|
-
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
225
223
|
modelValue: boolean;
|
|
224
|
+
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
225
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
226
226
|
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
227
227
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
228
228
|
activeIcon: 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>;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const createInputBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"
|
|
1
|
+
export declare const createInputBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2>]: T2[k]; }[P]; }>;
|
|
2
2
|
export declare const createInputOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "clear" | "mouseleave" | "mouseenter" | "compositionstart" | "compositionupdate" | "compositionend")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"keydown", KE> | Exclude<"input", KE> | Exclude<"clear", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> : "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "clear" | "mouseleave" | "mouseenter" | "compositionstart" | "compositionupdate" | "compositionend"]: {
|
|
3
3
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
4
4
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -18,13 +18,13 @@ export declare const createFormOnEmits: <T2 extends AnyFunc, EX extends "validat
|
|
|
18
18
|
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
19
19
|
}[P]; };
|
|
20
20
|
export declare const createFormItemBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2>]: T2[k]; }[P]; }>;
|
|
21
|
-
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"name", keyof T2> | Extract<"
|
|
21
|
+
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"value", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"inlinePrompt", keyof T2>, KE> | Exclude<Extract<"activeIcon", keyof T2>, KE> | Exclude<Extract<"inactiveIcon", keyof T2>, KE> | Exclude<Extract<"activeText", keyof T2>, KE> | Exclude<Extract<"inactiveText", keyof T2>, KE> | Exclude<Extract<"activeColor", keyof T2>, KE> | Exclude<Extract<"inactiveColor", keyof T2>, KE> | Exclude<Extract<"borderColor", keyof T2>, KE> | Exclude<Extract<"activeValue", keyof T2>, KE> | Exclude<Extract<"inactiveValue", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"beforeChange", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
|
|
22
22
|
export declare const createSwitchOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change" | "input")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"input", KE> : "update:modelValue" | "change" | "input"]: {
|
|
23
23
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
24
24
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
25
25
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
26
26
|
}[P]; };
|
|
27
|
-
export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"name", keyof T2> | Extract<"
|
|
27
|
+
export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"automaticDropdown", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"allowCreate", keyof T2>, KE> | Exclude<Extract<"remote", keyof T2>, KE> | Exclude<Extract<"loadingText", keyof T2>, KE> | Exclude<Extract<"noMatchText", keyof T2>, KE> | Exclude<Extract<"noDataText", keyof T2>, KE> | Exclude<Extract<"remoteMethod", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"multipleLimit", keyof T2>, KE> | Exclude<Extract<"defaultFirstOption", keyof T2>, KE> | Exclude<Extract<"reserveKeyword", keyof T2>, KE> | Exclude<Extract<"valueKey", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"fitInputWidth", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: T2[k]; }[P]; }>;
|
|
28
28
|
export declare const createSelectOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "visible-change" | "clear" | "remove-tag")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"visible-change", KE> | Exclude<"clear", KE> | Exclude<"remove-tag", KE> : "update:modelValue" | "change" | "focus" | "blur" | "visible-change" | "clear" | "remove-tag"]: {
|
|
29
29
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
30
30
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -34,7 +34,7 @@ export declare const createSelectOnEmits: <T2 extends AnyFunc, EX extends ("upda
|
|
|
34
34
|
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
35
35
|
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
36
36
|
}[P]; };
|
|
37
|
-
export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"
|
|
37
|
+
export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"editable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"disabledDate", keyof T2>, KE> | Exclude<Extract<"cellClassName", keyof T2>, KE> | Exclude<Extract<"shortcuts", keyof T2>, KE> | Exclude<Extract<"arrowControl", keyof T2>, KE> | Exclude<Extract<"unlinkPanels", keyof T2>, KE> | Exclude<Extract<"disabledHours", keyof T2>, KE> | Exclude<Extract<"disabledMinutes", keyof T2>, KE> | Exclude<Extract<"disabledSeconds", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"format", keyof T2>, KE> | Exclude<Extract<"valueFormat", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"editable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"rangeSeparator", keyof T2>, KE> | Exclude<Extract<"startPlaceholder", keyof T2>, KE> | Exclude<Extract<"endPlaceholder", keyof T2>, KE> | Exclude<Extract<"defaultValue", keyof T2>, KE> | Exclude<Extract<"defaultTime", keyof T2>, KE> | Exclude<Extract<"isRange", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"editable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"editable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>]: T2[k]; }[P]; }>;
|
|
38
38
|
export declare const createDatePickerOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "calendar-change" | "panel-change" | "visible-change" | "keydown")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"calendar-change", KE> | Exclude<"panel-change", KE> | Exclude<"visible-change", KE> | Exclude<"keydown", KE> : "update:modelValue" | "change" | "focus" | "blur" | "calendar-change" | "panel-change" | "visible-change" | "keydown"]: {
|
|
39
39
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
40
40
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -45,7 +45,7 @@ export declare const createDatePickerOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
|
45
45
|
'visible-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
46
46
|
keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
47
47
|
}[P]; };
|
|
48
|
-
export declare const createInputNumberBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"
|
|
48
|
+
export declare const createInputNumberBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"controls", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"controls", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"step", keyof T2>, KE> | Exclude<Extract<"stepStrictly", keyof T2>, KE> | Exclude<Extract<"controlsPosition", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"precision", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"controls", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"controls", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>]: T2[k]; }[P]; }>;
|
|
49
49
|
export declare const createInputNumberOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "input")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"input", KE> : "update:modelValue" | "change" | "focus" | "blur" | "input"]: {
|
|
50
50
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
51
51
|
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -53,3 +53,13 @@ export declare const createInputNumberOnEmits: <T2 extends AnyFunc, EX extends (
|
|
|
53
53
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
54
54
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
55
55
|
}[P]; };
|
|
56
|
+
export declare const createRadioGroupBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"fill", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"textColor", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
|
|
57
|
+
export declare const createRadioGroupOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> : "update:modelValue" | "change"]: {
|
|
58
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
59
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
60
|
+
}[P]; };
|
|
61
|
+
export declare const createCheckboxGroupBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"fill", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"textColor", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>]: T2[k]; }[P]; }>;
|
|
62
|
+
export declare const createCheckboxGroupOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> : "update:modelValue" | "change"]: {
|
|
63
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
64
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
65
|
+
}[P]; };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits } from 'element-plus';
|
|
1
|
+
import { useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits, radioGroupProps, radioGroupEmits, useCheckboxGroupProps, checkboxGroupEmits } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
3
|
import { openBlock, createElementBlock, createElementVNode } from 'vue';
|
|
4
4
|
|
|
@@ -179,5 +179,9 @@ const createDatePickerBindProps = bindPropsFactory(datePickerProps);
|
|
|
179
179
|
const createDatePickerOnEmits = onEmitsFactory(datePickerEmits);
|
|
180
180
|
const createInputNumberBindProps = bindPropsFactory(inputNumberProps);
|
|
181
181
|
const createInputNumberOnEmits = onEmitsFactory(inputNumberEmits);
|
|
182
|
+
const createRadioGroupBindProps = bindPropsFactory(radioGroupProps);
|
|
183
|
+
const createRadioGroupOnEmits = onEmitsFactory(radioGroupEmits);
|
|
184
|
+
const createCheckboxGroupBindProps = bindPropsFactory(useCheckboxGroupProps);
|
|
185
|
+
const createCheckboxGroupOnEmits = onEmitsFactory(checkboxGroupEmits);
|
|
182
186
|
|
|
183
|
-
export { createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, datePickerEmits, datePickerProps, selectEmits, selectProps };
|
|
187
|
+
export { createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, datePickerEmits, datePickerProps, selectEmits, selectProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
value?: string | number;
|
|
3
|
+
label?: string;
|
|
4
|
+
'trueLabel'?: string | number;
|
|
5
|
+
'falseLabel'?: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
size?: '' | 'default' | 'small' | 'large';
|
|
9
|
+
name?: string;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
validateEvent?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VkfCheckbox } from '@vunk/form/components/checkbox';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfCheckboxSource<P extends string = string> extends VueComponentPropsType<typeof VkfCheckbox>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfCheckbox';
|
|
7
|
+
}
|
|
@@ -4,10 +4,14 @@ import type { VkfInputSource } from './input';
|
|
|
4
4
|
import type { VkfSelectSource } from './select';
|
|
5
5
|
import type { VkfSwitchSource } from './switch';
|
|
6
6
|
import type { VkfInputNumberSource } from './input-number';
|
|
7
|
+
import type { VkfRadioSource } from './radio';
|
|
8
|
+
import type { VkfCheckboxSource } from './checkbox';
|
|
7
9
|
export * from './compoent';
|
|
8
10
|
export * from './date-picker';
|
|
9
11
|
export * from './input';
|
|
10
12
|
export * from './select';
|
|
11
13
|
export * from './switch';
|
|
12
14
|
export * from './input-number';
|
|
13
|
-
export
|
|
15
|
+
export * from './radio';
|
|
16
|
+
export * from './checkbox';
|
|
17
|
+
export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | ComponentSource;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import VkfRadio from '@vunk/form/components/radio';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfRadioSource<P extends string = string> extends VueComponentPropsType<typeof VkfRadio>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfRadio';
|
|
7
|
+
}
|