@vunk/form 1.1.18 → 1.1.19
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 +1 -0
- package/components/checkbox/index.js +12 -1
- package/components/checkbox/src/ctx.d.ts +5 -0
- package/components/checkbox/src/ctx.js +4 -1
- package/components/input-number/index.js +3 -0
- package/components/input-number/src/ctx.d.ts +8 -0
- package/components/input-number/src/ctx.js +4 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
2
|
import { checkboxGroupProps, checkboxGroupEmits, ElCheckbox, ElCheckboxGroup, ElCheckboxButton } from 'element-plus';
|
|
3
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
4
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, Fragment, renderList, resolveDynamicComponent, createTextVNode, toDisplayString } from 'vue';
|
|
4
5
|
import { createCheckboxGroupBindProps, createCheckboxGroupOnEmits } from '@vunk/form/shared/element-plus';
|
|
5
6
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
@@ -42,7 +43,17 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
42
43
|
default: void 0
|
|
43
44
|
}
|
|
44
45
|
});
|
|
46
|
+
const createBindProps = bindPropsFactory(props);
|
|
45
47
|
const emits = __spreadValues({}, checkboxGroupEmits);
|
|
48
|
+
const createOnEmits = onEmitsFactory(emits);
|
|
49
|
+
|
|
50
|
+
var ctx = /*#__PURE__*/Object.freeze({
|
|
51
|
+
__proto__: null,
|
|
52
|
+
props: props,
|
|
53
|
+
createBindProps: createBindProps,
|
|
54
|
+
emits: emits,
|
|
55
|
+
createOnEmits: createOnEmits
|
|
56
|
+
});
|
|
46
57
|
|
|
47
58
|
var _export_sfc = (sfc, props) => {
|
|
48
59
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -124,4 +135,4 @@ VkfCheckbox.install = (app) => {
|
|
|
124
135
|
app.component(VkfCheckbox.name, VkfCheckbox);
|
|
125
136
|
};
|
|
126
137
|
|
|
127
|
-
export { VkfCheckbox, types as __VkfCheckbox, VkfCheckbox as default };
|
|
138
|
+
export { VkfCheckbox, ctx as _VkfCheckboxCtx, types as __VkfCheckbox, VkfCheckbox as default };
|
|
@@ -80,7 +80,12 @@ export declare const props: {
|
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", 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> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"options", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", 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<"type", 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> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"fill", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"textColor", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"type", 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> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"options", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", 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> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"options", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
|
|
83
84
|
export declare const emits: {
|
|
84
85
|
"update:modelValue": (val: import("element-plus").CheckboxGroupValueType) => boolean;
|
|
85
86
|
change: (val: import("element-plus").CheckboxValueType[]) => boolean;
|
|
86
87
|
};
|
|
88
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").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"]: {
|
|
89
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
90
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
91
|
+
}[P]; };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
2
2
|
import { checkboxGroupProps, checkboxGroupEmits } from 'element-plus';
|
|
3
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __defProps = Object.defineProperties;
|
|
@@ -38,6 +39,8 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
38
39
|
default: void 0
|
|
39
40
|
}
|
|
40
41
|
});
|
|
42
|
+
const createBindProps = bindPropsFactory(props);
|
|
41
43
|
const emits = __spreadValues({}, checkboxGroupEmits);
|
|
44
|
+
const createOnEmits = onEmitsFactory(emits);
|
|
42
45
|
|
|
43
|
-
export { emits, props };
|
|
46
|
+
export { createBindProps, createOnEmits, emits, props };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
2
3
|
import { inputNumberProps, inputNumberEmits, ElInputNumber } from 'element-plus';
|
|
3
4
|
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, toDisplayString, createCommentVNode } from 'vue';
|
|
4
5
|
import { createInputNumberBindProps, createInputNumberOnEmits } from '@vunk/form/shared/element-plus';
|
|
@@ -33,7 +34,9 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
33
34
|
default: ""
|
|
34
35
|
}
|
|
35
36
|
});
|
|
37
|
+
bindPropsFactory(props);
|
|
36
38
|
const emits = __spreadValues({}, inputNumberEmits);
|
|
39
|
+
onEmitsFactory(emits);
|
|
37
40
|
|
|
38
41
|
var _export_sfc = (sfc, props) => {
|
|
39
42
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -78,6 +78,7 @@ export declare const props: {
|
|
|
78
78
|
default: string;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", 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> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", 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<"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> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"step", keyof T2>, KE> | Exclude<Extract<"stepStrictly", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"controls", keyof T2>, KE> | Exclude<Extract<"controlsPosition", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"precision", keyof T2>, KE> | Exclude<Extract<"unit", keyof T2>, KE> : Extract<"required", 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> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2>]: { [k in Extract<"required", 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> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"name", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2>]: T2[k]; }[P]; }>;
|
|
81
82
|
export declare const emits: {
|
|
82
83
|
change: (cur: number | undefined, prev: number | undefined) => boolean;
|
|
83
84
|
blur: (e: FocusEvent) => boolean;
|
|
@@ -85,3 +86,10 @@ export declare const emits: {
|
|
|
85
86
|
input: (val: number | null | undefined) => boolean;
|
|
86
87
|
"update:modelValue": (val: number | undefined) => boolean;
|
|
87
88
|
};
|
|
89
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change" | "focus" | "blur")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"input", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> : "update:modelValue" | "input" | "change" | "focus" | "blur"]: {
|
|
90
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
91
|
+
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
92
|
+
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
93
|
+
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
94
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
95
|
+
}[P]; };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
2
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
2
3
|
import { inputNumberProps, inputNumberEmits } from 'element-plus';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
@@ -30,6 +31,8 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
30
31
|
default: ""
|
|
31
32
|
}
|
|
32
33
|
});
|
|
34
|
+
const createBindProps = bindPropsFactory(props);
|
|
33
35
|
const emits = __spreadValues({}, inputNumberEmits);
|
|
36
|
+
const createOnEmits = onEmitsFactory(emits);
|
|
34
37
|
|
|
35
|
-
export { emits, props };
|
|
38
|
+
export { createBindProps, createOnEmits, emits, props };
|