@vunk/form 0.0.1-alpha.19 → 0.0.1-alpha.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/button/index.d.ts +4 -0
- package/components/button/index.js +121 -0
- package/components/button/src/ctx.d.ts +82 -0
- package/components/button/src/ctx.js +39 -0
- package/components/button/src/index.vue.d.ts +222 -0
- package/components/button/src/types.d.ts +7 -0
- package/components/button/src/types.js +1 -0
- package/components/checkbox/src/ctx.d.ts +4 -0
- package/components/checkbox/src/index.vue.d.ts +13 -3
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +12 -2
- package/components/date-picker/src/ctx.d.ts +4 -0
- package/components/date-picker/src/index.vue.d.ts +15 -5
- package/components/form/index.js +10 -3
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +7 -5
- package/components/form-item/index.css +4 -0
- package/components/form-item/index.js +10 -2
- package/components/form-item/src/ctx.d.ts +5 -1
- package/components/form-item/src/ctx.js +4 -0
- package/components/form-item/src/index.vue.d.ts +9 -0
- package/components/form-item-renderer-template-default/index.js +12 -3
- package/components/input/src/ctx.d.ts +6 -2
- package/components/input/src/index.vue.d.ts +28 -18
- package/components/input-number/src/ctx.d.ts +4 -0
- package/components/input-number/src/index.vue.d.ts +17 -7
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +13 -3
- package/components/select/src/ctx.d.ts +4 -0
- package/components/select/src/index.vue.d.ts +19 -9
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +19 -9
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +16 -6
- package/index.css +5 -0
- package/package.json +1 -1
- package/shared/default-renderer-source/index.d.ts +12 -0
- package/shared/default-renderer-source/index.js +83 -0
- package/shared/element-plus/ctx.d.ts +7 -3
- package/shared/element-plus/index.js +4 -2
- package/shared/types/basic-source/index.d.ts +1 -0
- package/shared/types/renderer-source/button.d.ts +7 -0
- package/shared/types/renderer-source/index.d.ts +3 -1
|
@@ -120,6 +120,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
type: import("vue").PropType<any>;
|
|
121
121
|
required: boolean;
|
|
122
122
|
};
|
|
123
|
+
inline: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
123
127
|
}, {
|
|
124
128
|
formItemBindProps: import("vue").ComputedRef<{
|
|
125
129
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -135,14 +139,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
139
|
formItemSize: "default" | "small" | "large";
|
|
136
140
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
137
141
|
elRef: any;
|
|
142
|
+
inline: boolean;
|
|
138
143
|
}>;
|
|
139
144
|
datePickerBindProps: import("vue").ComputedRef<{
|
|
140
145
|
label: string | undefined;
|
|
141
146
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
142
147
|
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
143
|
-
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
144
148
|
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
145
149
|
id: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown> | undefined;
|
|
150
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
146
151
|
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
147
152
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
148
153
|
popperClass: string;
|
|
@@ -171,11 +176,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
176
|
isRange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
172
177
|
}>;
|
|
173
178
|
datePickerOnEmits: {
|
|
174
|
-
|
|
179
|
+
blur: (...e: any[]) => void;
|
|
175
180
|
change: (...e: any[]) => void;
|
|
176
181
|
focus: (...e: any[]) => void;
|
|
177
|
-
blur: (...e: any[]) => void;
|
|
178
182
|
keydown: (...e: any[]) => void;
|
|
183
|
+
"update:modelValue": (...e: any[]) => void;
|
|
179
184
|
"calendar-change": (...e: any[]) => void;
|
|
180
185
|
"panel-change": (...e: any[]) => void;
|
|
181
186
|
"visible-change": (...e: any[]) => void;
|
|
@@ -311,11 +316,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
311
316
|
type: import("vue").PropType<any>;
|
|
312
317
|
required: boolean;
|
|
313
318
|
};
|
|
319
|
+
inline: {
|
|
320
|
+
type: BooleanConstructor;
|
|
321
|
+
default: boolean;
|
|
322
|
+
};
|
|
314
323
|
}>> & {
|
|
315
324
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
316
325
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
317
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
318
326
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
327
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
319
328
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
320
329
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
321
330
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -329,9 +338,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
329
338
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
330
339
|
formItemSize: "default" | "small" | "large";
|
|
331
340
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
341
|
+
inline: boolean;
|
|
332
342
|
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
333
|
-
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
334
343
|
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
335
345
|
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
336
346
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
337
347
|
popperClass: string;
|
package/components/form/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formProps, formEmits, ElForm } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode, renderSlot } from 'vue';
|
|
3
|
+
import { defineComponent, shallowRef, provide, resolveComponent, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode, renderSlot } from 'vue';
|
|
4
4
|
import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
|
|
5
5
|
import { createFormBindProps, createFormOnEmits } from '@vunk/form/shared/element-plus';
|
|
6
6
|
import { getValue } from '@vunk/core/shared/helper';
|
|
@@ -67,10 +67,17 @@ var script = defineComponent({
|
|
|
67
67
|
setup(props2, { emit }) {
|
|
68
68
|
const formProps = createFormBindProps(props2, ["model"]);
|
|
69
69
|
const formEmits = createFormOnEmits(emit);
|
|
70
|
+
const formRef = shallowRef();
|
|
71
|
+
provide("elFormRef", formRef);
|
|
72
|
+
const getRef = (e) => {
|
|
73
|
+
formRef.value = e;
|
|
74
|
+
props2.elRef(e);
|
|
75
|
+
};
|
|
70
76
|
return {
|
|
71
77
|
formProps,
|
|
72
78
|
formEmits,
|
|
73
|
-
getValue
|
|
79
|
+
getValue,
|
|
80
|
+
getRef
|
|
74
81
|
};
|
|
75
82
|
}
|
|
76
83
|
});
|
|
@@ -81,7 +88,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81
88
|
const _component_ElForm = resolveComponent("ElForm");
|
|
82
89
|
return openBlock(), createBlock(_component_ElForm, mergeProps(_ctx.formProps, toHandlers(_ctx.formEmits), {
|
|
83
90
|
model: _ctx.model || _ctx.data,
|
|
84
|
-
ref: _ctx.
|
|
91
|
+
ref: _ctx.getRef
|
|
85
92
|
}), {
|
|
86
93
|
default: withCtx(() => [
|
|
87
94
|
createVNode(_component_VkfFormItemRenderer, { source: _ctx.formItems }, {
|
|
@@ -52,7 +52,7 @@ export declare const props: {
|
|
|
52
52
|
readonly scrollToError: BooleanConstructor;
|
|
53
53
|
}>> & {
|
|
54
54
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
55
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "
|
|
55
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
56
56
|
$attrs: {
|
|
57
57
|
[x: string]: unknown;
|
|
58
58
|
};
|
|
@@ -310,7 +310,7 @@ export declare const props: {
|
|
|
310
310
|
hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
311
311
|
scrollToError: BooleanConstructor;
|
|
312
312
|
};
|
|
313
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"
|
|
313
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"formItems", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> | Exclude<Extract<"formItems", keyof T2>, KE> : Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"formItems", keyof T2>]: { [k in Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"formItems", keyof T2>]: T2[k]; }[P]; }>;
|
|
314
314
|
export declare const emits: {
|
|
315
315
|
setData: (e: SetDataEvent) => SetDataEvent<any>;
|
|
316
316
|
validate: null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElForm } from 'element-plus';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
data: {
|
|
3
4
|
type: import("vue").PropType<Record<string, any>>;
|
|
@@ -50,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
51
|
readonly scrollToError: BooleanConstructor;
|
|
51
52
|
}>> & {
|
|
52
53
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
53
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "
|
|
54
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
54
55
|
$attrs: {
|
|
55
56
|
[x: string]: unknown;
|
|
56
57
|
};
|
|
@@ -314,8 +315,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
314
315
|
inlineMessage: boolean;
|
|
315
316
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
316
317
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown> | undefined;
|
|
317
|
-
disabled: boolean;
|
|
318
318
|
inline: boolean;
|
|
319
|
+
disabled: boolean;
|
|
319
320
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
320
321
|
labelSuffix: string;
|
|
321
322
|
statusIcon: boolean;
|
|
@@ -327,6 +328,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
327
328
|
validate: (e: import("@vunk/core").SetDataEvent<any>) => void;
|
|
328
329
|
};
|
|
329
330
|
getValue: (obj: any, k: string | number | any[]) => any;
|
|
331
|
+
getRef: (e: InstanceType<typeof ElForm>) => void;
|
|
330
332
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
331
333
|
setData: (e: import("@vunk/core").SetDataEvent<any>) => import("@vunk/core").SetDataEvent<any>;
|
|
332
334
|
validate: null;
|
|
@@ -382,7 +384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
382
384
|
readonly scrollToError: BooleanConstructor;
|
|
383
385
|
}>> & {
|
|
384
386
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
385
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "
|
|
387
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
386
388
|
$attrs: {
|
|
387
389
|
[x: string]: unknown;
|
|
388
390
|
};
|
|
@@ -688,7 +690,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
688
690
|
readonly scrollToError: BooleanConstructor;
|
|
689
691
|
}>> & {
|
|
690
692
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
691
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "
|
|
693
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
692
694
|
$attrs: {
|
|
693
695
|
[x: string]: unknown;
|
|
694
696
|
};
|
|
@@ -919,9 +921,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
919
921
|
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
920
922
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
921
923
|
}> & {} & import("vue").ComponentCustomProperties) => any;
|
|
924
|
+
inline: boolean;
|
|
922
925
|
data: Record<string, any>;
|
|
923
926
|
disabled: boolean;
|
|
924
|
-
inline: boolean;
|
|
925
927
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
926
928
|
labelSuffix: string;
|
|
927
929
|
statusIcon: boolean;
|
|
@@ -34,6 +34,10 @@ const _props = __spreadProps(__spreadValues({}, formItemProps), {
|
|
|
34
34
|
elRef: {
|
|
35
35
|
type: Function,
|
|
36
36
|
required: false
|
|
37
|
+
},
|
|
38
|
+
inline: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
37
41
|
}
|
|
38
42
|
});
|
|
39
43
|
Reflect.deleteProperty(_props, "size");
|
|
@@ -62,7 +66,11 @@ var script = defineComponent({
|
|
|
62
66
|
|
|
63
67
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
68
|
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
65
|
-
return openBlock(), createBlock(_component_ElFormItem, mergeProps(
|
|
69
|
+
return openBlock(), createBlock(_component_ElFormItem, mergeProps({
|
|
70
|
+
class: {
|
|
71
|
+
"vkf-form-item--inline": _ctx.inline
|
|
72
|
+
}
|
|
73
|
+
}, _ctx.formItemBindProps, {
|
|
66
74
|
size: _ctx.formItemSize,
|
|
67
75
|
ref: _ctx.elRef
|
|
68
76
|
}), createSlots({
|
|
@@ -79,7 +87,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79
87
|
])
|
|
80
88
|
};
|
|
81
89
|
})
|
|
82
|
-
]), 1040, ["size"]);
|
|
90
|
+
]), 1040, ["class", "size"]);
|
|
83
91
|
}
|
|
84
92
|
|
|
85
93
|
script.render = render;
|
|
@@ -13,6 +13,10 @@ export declare const props: Omit<{
|
|
|
13
13
|
type: PropType<any>;
|
|
14
14
|
required: boolean;
|
|
15
15
|
};
|
|
16
|
+
inline: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
16
20
|
label: StringConstructor;
|
|
17
21
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
18
22
|
prop: {
|
|
@@ -45,4 +49,4 @@ export declare const props: Omit<{
|
|
|
45
49
|
__epPropKey: true;
|
|
46
50
|
};
|
|
47
51
|
}, "size">;
|
|
48
|
-
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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", 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<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2>]: T2[k]; }[P]; }>;
|
|
52
|
+
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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", 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<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2>]: T2[k]; }[P]; }>;
|
|
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
11
11
|
type: import("vue").PropType<any>;
|
|
12
12
|
required: boolean;
|
|
13
13
|
};
|
|
14
|
+
inline: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
14
18
|
label: StringConstructor;
|
|
15
19
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
16
20
|
prop: {
|
|
@@ -68,6 +72,10 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
68
72
|
type: import("vue").PropType<any>;
|
|
69
73
|
required: boolean;
|
|
70
74
|
};
|
|
75
|
+
inline: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
71
79
|
label: StringConstructor;
|
|
72
80
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
73
81
|
prop: {
|
|
@@ -106,5 +114,6 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
106
114
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
107
115
|
formItemSize: "default" | "small" | "large";
|
|
108
116
|
formItemSlots: import("./types").FormItemSlots;
|
|
117
|
+
inline: boolean;
|
|
109
118
|
}>;
|
|
110
119
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, mergeProps, createCommentVNode, resolveDynamicComponent
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, createCommentVNode, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
3
|
import { VkfInput } from '@vunk/form/components/input';
|
|
4
4
|
import { VkfSwitch } from '@vunk/form/components/switch';
|
|
@@ -11,6 +11,7 @@ import { VkfRadio } from '@vunk/form/components/radio';
|
|
|
11
11
|
import { VkfCheckbox } from '@vunk/form/components/checkbox';
|
|
12
12
|
import { VkfUpload } from '@vunk/form/components/upload';
|
|
13
13
|
import { VkfColorPicker } from '@vunk/form/components/color-picker';
|
|
14
|
+
import { VkfButton } from '@vunk/form/components/button';
|
|
14
15
|
|
|
15
16
|
const props = {
|
|
16
17
|
data: {
|
|
@@ -34,7 +35,8 @@ var script = defineComponent({
|
|
|
34
35
|
VkfRadio,
|
|
35
36
|
VkfCheckbox,
|
|
36
37
|
VkfUpload,
|
|
37
|
-
VkfColorPicker
|
|
38
|
+
VkfColorPicker,
|
|
39
|
+
VkfButton
|
|
38
40
|
},
|
|
39
41
|
emits,
|
|
40
42
|
props,
|
|
@@ -47,8 +49,9 @@ var script = defineComponent({
|
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50
|
-
const
|
|
52
|
+
const _component_VkfButton = resolveComponent("VkfButton");
|
|
51
53
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
54
|
+
const _component_VkfColorPicker = resolveComponent("VkfColorPicker");
|
|
52
55
|
const _component_VkfUpload = resolveComponent("VkfUpload");
|
|
53
56
|
const _component_VkfCheckbox = resolveComponent("VkfCheckbox");
|
|
54
57
|
const _component_VkfRadio = resolveComponent("VkfRadio");
|
|
@@ -58,6 +61,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
61
|
const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
|
|
59
62
|
const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
|
|
60
63
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
64
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
|
|
65
|
+
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
66
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfButton, normalizeProps(mergeProps({ key: 0 }, sourceData)), null, 16)) : createCommentVNode("v-if", true)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
61
70
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
|
|
62
71
|
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
63
72
|
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfColorPicker, mergeProps({
|
|
@@ -101,8 +101,12 @@ export declare const props: {
|
|
|
101
101
|
type: PropType<any>;
|
|
102
102
|
required: boolean;
|
|
103
103
|
};
|
|
104
|
+
inline: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
104
108
|
};
|
|
105
|
-
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<"
|
|
109
|
+
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<"disabled", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", 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<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", 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<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", 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> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", 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<"disabled", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", 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<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", 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<"disabled", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", 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<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: T2[k]; }[P]; }>;
|
|
106
110
|
export declare const emits: {
|
|
107
111
|
"update:modelValue": (value: string) => boolean;
|
|
108
112
|
input: (value: string) => boolean;
|
|
@@ -117,7 +121,7 @@ export declare const emits: {
|
|
|
117
121
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
118
122
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
119
123
|
};
|
|
120
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
124
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("input" | "blur" | "change" | "compositionend" | "compositionstart" | "compositionupdate" | "focus" | "keydown" | "mouseenter" | "mouseleave" | "clear" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"compositionend", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"focus", KE> | Exclude<"keydown", KE> | Exclude<"mouseenter", KE> | Exclude<"mouseleave", KE> | Exclude<"clear", KE> | Exclude<"update:modelValue", KE> : "input" | "blur" | "change" | "compositionend" | "compositionstart" | "compositionupdate" | "focus" | "keydown" | "mouseenter" | "mouseleave" | "clear" | "update:modelValue"]: {
|
|
121
125
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
122
126
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
123
127
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -99,18 +99,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
type: import("vue").PropType<any>;
|
|
100
100
|
required: boolean;
|
|
101
101
|
};
|
|
102
|
+
inline: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
102
106
|
}, {
|
|
103
107
|
inputBindProps: import("vue").ComputedRef<{
|
|
104
108
|
type: string;
|
|
105
109
|
label: string | undefined;
|
|
106
110
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
107
|
-
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
108
111
|
disabled: boolean;
|
|
112
|
+
form: string;
|
|
113
|
+
resize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown> | undefined;
|
|
109
114
|
id: string | undefined;
|
|
115
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
110
116
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
111
117
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
112
|
-
form: string;
|
|
113
|
-
resize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown> | undefined;
|
|
114
118
|
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
115
119
|
prefixIcon: 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>;
|
|
116
120
|
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -139,20 +143,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
143
|
formItemSize: "default" | "small" | "large";
|
|
140
144
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
141
145
|
elRef: any;
|
|
146
|
+
inline: boolean;
|
|
142
147
|
}>;
|
|
143
148
|
inputOnEmits: {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
input: (value: string) => void;
|
|
150
|
+
blur: (value: string) => void;
|
|
151
|
+
change: (value: string) => void;
|
|
152
|
+
compositionend: (value: string) => void;
|
|
153
|
+
compositionstart: (value: string) => void;
|
|
154
|
+
compositionupdate: (value: string) => void;
|
|
155
|
+
focus: (value: string) => void;
|
|
156
|
+
keydown: (value: string) => void;
|
|
157
|
+
mouseenter: (value: string) => void;
|
|
158
|
+
mouseleave: (value: string) => void;
|
|
159
|
+
clear: (value: string) => void;
|
|
160
|
+
"update:modelValue": (value: string) => void;
|
|
156
161
|
};
|
|
157
162
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
158
163
|
"update:modelValue": (value: string) => boolean;
|
|
@@ -268,11 +273,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
273
|
type: import("vue").PropType<any>;
|
|
269
274
|
required: boolean;
|
|
270
275
|
};
|
|
276
|
+
inline: {
|
|
277
|
+
type: BooleanConstructor;
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
271
280
|
}>> & {
|
|
272
281
|
onChange?: ((value: string) => any) | undefined;
|
|
273
282
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
274
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
275
283
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
284
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
276
285
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
277
286
|
onInput?: ((value: string) => any) | undefined;
|
|
278
287
|
onClear?: (() => any) | undefined;
|
|
@@ -290,12 +299,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
299
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
291
300
|
formItemSize: "default" | "small" | "large";
|
|
292
301
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
293
|
-
|
|
302
|
+
inline: boolean;
|
|
294
303
|
disabled: boolean;
|
|
304
|
+
form: string;
|
|
295
305
|
id: string;
|
|
306
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
296
307
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
297
308
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
298
|
-
form: string;
|
|
299
309
|
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
300
310
|
prefixIcon: 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>;
|
|
301
311
|
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -61,6 +61,10 @@ export declare const props: {
|
|
|
61
61
|
type: import("vue").PropType<any>;
|
|
62
62
|
required: boolean;
|
|
63
63
|
};
|
|
64
|
+
inline: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
64
68
|
};
|
|
65
69
|
export declare const emits: {
|
|
66
70
|
change: (prev: number | undefined, cur: number | undefined) => boolean;
|
|
@@ -61,6 +61,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
type: import("vue").PropType<any>;
|
|
62
62
|
required: boolean;
|
|
63
63
|
};
|
|
64
|
+
inline: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
64
68
|
}, {
|
|
65
69
|
formItemBindProps: import("vue").ComputedRef<{
|
|
66
70
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -76,14 +80,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
80
|
formItemSize: "default" | "small" | "large";
|
|
77
81
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
78
82
|
elRef: any;
|
|
83
|
+
inline: boolean;
|
|
79
84
|
}>;
|
|
80
85
|
iBindProps: import("vue").ComputedRef<{
|
|
81
86
|
label: string | undefined;
|
|
82
87
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
83
88
|
name: string | undefined;
|
|
84
|
-
modelValue: number | undefined;
|
|
85
89
|
disabled: boolean;
|
|
86
90
|
id: string | undefined;
|
|
91
|
+
modelValue: number | undefined;
|
|
87
92
|
controls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
93
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
89
94
|
min: number;
|
|
@@ -96,11 +101,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
101
|
precision: number | undefined;
|
|
97
102
|
}>;
|
|
98
103
|
iOnEmits: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
input: (val: number | undefined) => void;
|
|
105
|
+
blur: (val: number | undefined) => void;
|
|
106
|
+
change: (val: number | undefined) => void;
|
|
107
|
+
focus: (val: number | undefined) => void;
|
|
108
|
+
"update:modelValue": (val: number | undefined) => void;
|
|
104
109
|
};
|
|
105
110
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
106
111
|
change: (prev: number | undefined, cur: number | undefined) => boolean;
|
|
@@ -171,11 +176,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
176
|
type: import("vue").PropType<any>;
|
|
172
177
|
required: boolean;
|
|
173
178
|
};
|
|
179
|
+
inline: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
174
183
|
}>> & {
|
|
175
184
|
onChange?: ((prev: number | undefined, cur: number | undefined) => any) | undefined;
|
|
176
185
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
177
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
178
186
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
187
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
179
188
|
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
180
189
|
}, {
|
|
181
190
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -184,6 +193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
193
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
185
194
|
formItemSize: "default" | "small" | "large";
|
|
186
195
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
196
|
+
inline: boolean;
|
|
187
197
|
disabled: boolean;
|
|
188
198
|
id: string;
|
|
189
199
|
controls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -59,6 +59,10 @@ export declare const props: {
|
|
|
59
59
|
type: PropType<any>;
|
|
60
60
|
required: boolean;
|
|
61
61
|
};
|
|
62
|
+
inline: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
62
66
|
};
|
|
63
67
|
export declare const emits: {
|
|
64
68
|
"update:modelValue": (val: string | number | boolean) => boolean;
|