@vunk/form 1.1.14 → 1.1.16
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/src/ctx.d.ts +4 -0
- package/components/button/src/index.vue.d.ts +10 -0
- package/components/cascader/index.css +10 -0
- package/components/cascader/index.js +6 -2
- package/components/cascader/src/ctx.d.ts +5 -1
- package/components/cascader/src/index.vue.d.ts +10 -0
- package/components/checkbox/src/ctx.d.ts +4 -0
- package/components/checkbox/src/index.vue.d.ts +10 -0
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +10 -0
- package/components/date-picker/src/ctx.d.ts +4 -0
- package/components/date-picker/src/index.vue.d.ts +10 -0
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +5 -5
- package/components/form-item/index.css +17 -0
- package/components/form-item/index.js +57 -11
- 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 +14 -3
- package/components/geoinput/src/ctx.d.ts +4 -0
- package/components/geoinput/src/index.vue.d.ts +11 -0
- package/components/geoinput-read/src/core.vue.d.ts +10 -0
- package/components/geoinput-read/src/ctx.d.ts +5 -1
- package/components/geoinput-read/src/index.vue.d.ts +10 -0
- package/components/geoinput-update/src/ctx.d.ts +5 -1
- package/components/geoinput-update/src/index.vue.d.ts +10 -0
- package/components/input/src/ctx.d.ts +5 -1
- package/components/input/src/index.vue.d.ts +10 -0
- package/components/input-link/src/ctx.d.ts +4 -0
- package/components/input-link/src/index.vue.d.ts +10 -0
- package/components/input-number/src/ctx.d.ts +4 -0
- package/components/input-number/src/index.vue.d.ts +10 -0
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +10 -0
- package/components/select/src/ctx.d.ts +4 -0
- package/components/select/src/index.vue.d.ts +10 -0
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +10 -0
- package/components/upload/index.css +3 -0
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/index.vue.d.ts +10 -0
- package/components/upload-plus/src/ctx.d.ts +4 -0
- package/components/upload-plus/src/index.vue.d.ts +10 -0
- package/components/van-cascader/src/ctx.d.ts +4 -0
- package/components/van-cascader/src/index.vue.d.ts +10 -0
- package/index.css +31 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +1 -1
|
@@ -194,6 +194,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
194
|
type: BooleanConstructor;
|
|
195
195
|
default: undefined;
|
|
196
196
|
};
|
|
197
|
+
labelPosition: {
|
|
198
|
+
type: import("vue").PropType<"right">;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
197
201
|
}, {
|
|
198
202
|
formItemBindProps: import("vue").ComputedRef<{
|
|
199
203
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -211,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
215
|
elRef: any;
|
|
212
216
|
inline: boolean;
|
|
213
217
|
readonly: boolean | undefined;
|
|
218
|
+
labelPosition: "right";
|
|
214
219
|
}>;
|
|
215
220
|
selectBindProps: import("vue").ComputedRef<{
|
|
216
221
|
size: "" | "default" | "small" | "large" | undefined;
|
|
@@ -523,6 +528,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
523
528
|
type: BooleanConstructor;
|
|
524
529
|
default: undefined;
|
|
525
530
|
};
|
|
531
|
+
labelPosition: {
|
|
532
|
+
type: import("vue").PropType<"right">;
|
|
533
|
+
default: string;
|
|
534
|
+
};
|
|
526
535
|
}>> & {
|
|
527
536
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
528
537
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -540,6 +549,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
540
549
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
541
550
|
inline: boolean;
|
|
542
551
|
readonly: boolean;
|
|
552
|
+
labelPosition: "right";
|
|
543
553
|
disabled: boolean;
|
|
544
554
|
loading: boolean;
|
|
545
555
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
@@ -95,6 +95,10 @@ export declare const props: {
|
|
|
95
95
|
type: BooleanConstructor;
|
|
96
96
|
default: undefined;
|
|
97
97
|
};
|
|
98
|
+
labelPosition: {
|
|
99
|
+
type: import("vue").PropType<"right">;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
98
102
|
};
|
|
99
103
|
export declare const emits: {
|
|
100
104
|
"update:modelValue": (val: string | number | boolean) => boolean;
|
|
@@ -95,6 +95,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
type: BooleanConstructor;
|
|
96
96
|
default: undefined;
|
|
97
97
|
};
|
|
98
|
+
labelPosition: {
|
|
99
|
+
type: import("vue").PropType<"right">;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
98
102
|
}, {
|
|
99
103
|
formItemBindProps: import("vue").ComputedRef<{
|
|
100
104
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -112,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
116
|
elRef: any;
|
|
113
117
|
inline: boolean;
|
|
114
118
|
readonly: boolean | undefined;
|
|
119
|
+
labelPosition: "right";
|
|
115
120
|
}>;
|
|
116
121
|
switchBindProps: import("vue").ComputedRef<{
|
|
117
122
|
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;
|
|
@@ -241,6 +246,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
241
246
|
type: BooleanConstructor;
|
|
242
247
|
default: undefined;
|
|
243
248
|
};
|
|
249
|
+
labelPosition: {
|
|
250
|
+
type: import("vue").PropType<"right">;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
244
253
|
}>> & {
|
|
245
254
|
onChange?: ((val: string | number | boolean) => any) | undefined;
|
|
246
255
|
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
@@ -254,6 +263,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
254
263
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
255
264
|
inline: boolean;
|
|
256
265
|
readonly: boolean;
|
|
266
|
+
labelPosition: "right";
|
|
257
267
|
name: string;
|
|
258
268
|
value: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
259
269
|
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -156,8 +156,12 @@ export declare const props: {
|
|
|
156
156
|
type: BooleanConstructor;
|
|
157
157
|
default: undefined;
|
|
158
158
|
};
|
|
159
|
+
labelPosition: {
|
|
160
|
+
type: import("vue").PropType<"right">;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
159
163
|
};
|
|
160
|
-
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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", 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<"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<"name", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>]: T2[k]; }[P]; }>;
|
|
164
|
+
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<"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<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", 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<"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<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", 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<"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<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", 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<"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<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>]: T2[k]; }[P]; }>;
|
|
161
165
|
export declare const emits: {
|
|
162
166
|
'update:fileList': null;
|
|
163
167
|
remove: (e: UploadFile) => UploadFile;
|
|
@@ -161,6 +161,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
161
|
type: BooleanConstructor;
|
|
162
162
|
default: undefined;
|
|
163
163
|
};
|
|
164
|
+
labelPosition: {
|
|
165
|
+
type: import("vue").PropType<"right">;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
164
168
|
}, {
|
|
165
169
|
formItemBindProps: import("vue").ComputedRef<{
|
|
166
170
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -178,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
182
|
elRef: any;
|
|
179
183
|
inline: boolean;
|
|
180
184
|
readonly: boolean | undefined;
|
|
185
|
+
labelPosition: "right";
|
|
181
186
|
}>;
|
|
182
187
|
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
|
|
183
188
|
excludes?: EX | undefined;
|
|
@@ -375,6 +380,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
375
380
|
type: BooleanConstructor;
|
|
376
381
|
default: undefined;
|
|
377
382
|
};
|
|
383
|
+
labelPosition: {
|
|
384
|
+
type: import("vue").PropType<"right">;
|
|
385
|
+
default: string;
|
|
386
|
+
};
|
|
378
387
|
}>> & {
|
|
379
388
|
onRemove?: ((e: UploadFile) => any) | undefined;
|
|
380
389
|
"onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
|
|
@@ -388,6 +397,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
388
397
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
389
398
|
inline: boolean;
|
|
390
399
|
readonly: boolean;
|
|
400
|
+
labelPosition: "right";
|
|
391
401
|
name: string;
|
|
392
402
|
data: Record<string, any>;
|
|
393
403
|
disabled: boolean;
|
|
@@ -53,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
type: BooleanConstructor;
|
|
54
54
|
default: undefined;
|
|
55
55
|
};
|
|
56
|
+
labelPosition: {
|
|
57
|
+
type: import("vue").PropType<"right">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
56
60
|
}, {
|
|
57
61
|
formItemBindProps: import("vue").ComputedRef<{
|
|
58
62
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -70,6 +74,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
74
|
elRef: any;
|
|
71
75
|
inline: boolean;
|
|
72
76
|
readonly: boolean | undefined;
|
|
77
|
+
labelPosition: "right";
|
|
73
78
|
}>;
|
|
74
79
|
handleFileChange: (e: Event) => void;
|
|
75
80
|
uuid: string;
|
|
@@ -148,6 +153,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
153
|
type: BooleanConstructor;
|
|
149
154
|
default: undefined;
|
|
150
155
|
};
|
|
156
|
+
labelPosition: {
|
|
157
|
+
type: import("vue").PropType<"right">;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
151
160
|
}>>, {
|
|
152
161
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
153
162
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
@@ -158,6 +167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
158
167
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
159
168
|
inline: boolean;
|
|
160
169
|
readonly: boolean;
|
|
170
|
+
labelPosition: "right";
|
|
161
171
|
dictId: string;
|
|
162
172
|
}>;
|
|
163
173
|
export default _default;
|
|
@@ -48,6 +48,10 @@ export declare const props: {
|
|
|
48
48
|
type: BooleanConstructor;
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
|
+
labelPosition: {
|
|
52
|
+
type: import("vue").PropType<"right">;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
51
55
|
size: {
|
|
52
56
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
53
57
|
readonly required: false;
|
|
@@ -50,6 +50,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
|
+
labelPosition: {
|
|
54
|
+
type: import("vue").PropType<"right">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
53
57
|
size: {
|
|
54
58
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
55
59
|
readonly required: false;
|
|
@@ -118,6 +122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
122
|
elRef: any;
|
|
119
123
|
inline: boolean;
|
|
120
124
|
readonly: boolean | undefined;
|
|
125
|
+
labelPosition: "right";
|
|
121
126
|
}>;
|
|
122
127
|
fieldValue: import("vue").Ref<string>;
|
|
123
128
|
popupShow: import("vue").Ref<boolean>;
|
|
@@ -184,6 +189,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
189
|
type: BooleanConstructor;
|
|
185
190
|
default: boolean;
|
|
186
191
|
};
|
|
192
|
+
labelPosition: {
|
|
193
|
+
type: import("vue").PropType<"right">;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
187
196
|
size: {
|
|
188
197
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
189
198
|
readonly required: false;
|
|
@@ -252,6 +261,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
252
261
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
253
262
|
inline: boolean;
|
|
254
263
|
readonly: boolean;
|
|
264
|
+
labelPosition: "right";
|
|
255
265
|
props: import("element-plus").CascaderProps;
|
|
256
266
|
disabled: boolean;
|
|
257
267
|
clearable: boolean;
|
package/index.css
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
|
|
2
|
+
.el-cascader.is-readonly{
|
|
3
|
+
--el-readonly-cursor: text;
|
|
4
|
+
--el-disabled-bg-color: initial;
|
|
5
|
+
--el-disabled-text-color: var(--el-input-text-color);
|
|
6
|
+
}
|
|
7
|
+
.el-cascader.is-readonly .el-input.is-disabled .el-input__inner,
|
|
8
|
+
.el-cascader.is-readonly .el-input.is-disabled{
|
|
9
|
+
cursor: var(--el-readonly-cursor);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
2
13
|
.el-checkbox-group.is-readonly .el-checkbox,
|
|
3
14
|
.el-checkbox-group.is-readonly{
|
|
4
15
|
--el-readonly-cursor: auto;
|
|
@@ -38,6 +49,23 @@
|
|
|
38
49
|
}
|
|
39
50
|
|
|
40
51
|
|
|
52
|
+
|
|
53
|
+
.vkf-form-item.vkf-form-item--label-right.el-form-item{
|
|
54
|
+
display: flex;
|
|
55
|
+
}
|
|
56
|
+
.vkf-form-item.vkf-form-item--label-right.el-form-item .el-form-item__label{
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
.vkf-form-item.vkf-form-item--label-right.el-form-item.el-form-item--default .el-form-item__label{
|
|
62
|
+
height: 32px;
|
|
63
|
+
line-height: 32px;
|
|
64
|
+
margin-bottom: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
41
69
|
.vkf-form-item--inline{
|
|
42
70
|
display: inline-flex;
|
|
43
71
|
}
|
|
@@ -182,6 +210,9 @@
|
|
|
182
210
|
|
|
183
211
|
|
|
184
212
|
|
|
213
|
+
.vkf-upload {
|
|
214
|
+
width: 100%;
|
|
215
|
+
}
|
|
185
216
|
.vkf-upload-empty-tip{
|
|
186
217
|
display: none;
|
|
187
218
|
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export declare const createInputOnEmits: <T2 extends import("@vunk/core").AnyFun
|
|
|
13
13
|
compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
14
14
|
compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
15
15
|
}[P]; };
|
|
16
|
-
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"
|
|
16
|
+
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", 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<"inline", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, 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<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"requireAsteriskPosition", 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<"scrollIntoViewOptions", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2>]: T2[k]; }[P]; }>;
|
|
17
17
|
export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "validate"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> : "validate"]: {
|
|
18
18
|
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
19
19
|
}[P]; };
|