@vunk/form 0.0.1-alpha.6 → 0.0.1-alpha.7
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.
|
@@ -24,6 +24,14 @@ var __spreadValues = (a, b) => {
|
|
|
24
24
|
};
|
|
25
25
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
26
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), inputProps), {
|
|
27
|
+
maxlength: {
|
|
28
|
+
type: Number,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
minlength: {
|
|
32
|
+
type: Number,
|
|
33
|
+
required: false
|
|
34
|
+
},
|
|
27
35
|
inputSlots: {
|
|
28
36
|
type: Object,
|
|
29
37
|
default: void 0
|
|
@@ -66,7 +74,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
74
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
67
75
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
68
76
|
default: withCtx(() => [
|
|
69
|
-
createVNode(_component_ElInput, mergeProps(
|
|
77
|
+
createVNode(_component_ElInput, mergeProps({
|
|
78
|
+
maxlength: _ctx.maxlength,
|
|
79
|
+
minlength: _ctx.minlength
|
|
80
|
+
}, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits)), createSlots({
|
|
70
81
|
default: withCtx(() => [
|
|
71
82
|
renderSlot(_ctx.$slots, "default")
|
|
72
83
|
]),
|
|
@@ -80,7 +91,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
80
91
|
])
|
|
81
92
|
};
|
|
82
93
|
})
|
|
83
|
-
]), 1040)
|
|
94
|
+
]), 1040, ["maxlength", "minlength"])
|
|
84
95
|
]),
|
|
85
96
|
_: 3
|
|
86
97
|
}, 16);
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { InputSlots } from './types';
|
|
3
3
|
export declare const props: {
|
|
4
|
+
maxlength: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
minlength: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
4
12
|
inputSlots: {
|
|
5
13
|
type: PropType<InputSlots>;
|
|
6
14
|
default: any;
|
|
@@ -90,7 +98,7 @@ export declare const props: {
|
|
|
90
98
|
required: boolean;
|
|
91
99
|
};
|
|
92
100
|
};
|
|
93
|
-
export declare const createBindProps: <T2 extends Record<string, any>, EX extends ("required" | "type" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "size" | "formItemSize" | "formItemSlots" | "elRef" | "tabindex" | "validateEvent" | "id" | "clearable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "required" | "type" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "size" | "formItemSize" | "formItemSlots" | "elRef" | "tabindex" | "validateEvent" | "id" | "clearable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "inputSlots">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
|
|
101
|
+
export declare const createBindProps: <T2 extends Record<string, any>, EX extends ("required" | "type" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "size" | "formItemSize" | "formItemSlots" | "elRef" | "tabindex" | "validateEvent" | "id" | "clearable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "maxlength" | "minlength" | "inputSlots")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "required" | "type" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "size" | "formItemSize" | "formItemSlots" | "elRef" | "tabindex" | "validateEvent" | "id" | "clearable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "maxlength" | "minlength" | "inputSlots">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
|
|
94
102
|
export declare const emits: {
|
|
95
103
|
"update:modelValue": (value: string) => boolean;
|
|
96
104
|
input: (value: string) => boolean;
|
|
@@ -22,6 +22,14 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
24
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), inputProps), {
|
|
25
|
+
maxlength: {
|
|
26
|
+
type: Number,
|
|
27
|
+
required: false
|
|
28
|
+
},
|
|
29
|
+
minlength: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: false
|
|
32
|
+
},
|
|
25
33
|
inputSlots: {
|
|
26
34
|
type: Object,
|
|
27
35
|
default: void 0
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
maxlength: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
minlength: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
2
10
|
inputSlots: {
|
|
3
11
|
type: import("vue").PropType<import("./types").InputSlots>;
|
|
4
12
|
default: any;
|
|
@@ -118,6 +126,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
126
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
119
127
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
120
128
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
maxlength: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
required: boolean;
|
|
132
|
+
};
|
|
133
|
+
minlength: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
required: boolean;
|
|
136
|
+
};
|
|
121
137
|
inputSlots: {
|
|
122
138
|
type: import("vue").PropType<import("./types").InputSlots>;
|
|
123
139
|
default: any;
|