@vunk/form 0.0.1-alpha.36 → 0.0.1-alpha.38
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.
|
@@ -3,6 +3,10 @@ export declare const props: {
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
+
readonly: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
6
10
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
7
11
|
label: StringConstructor;
|
|
8
12
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
@@ -44,10 +48,6 @@ export declare const props: {
|
|
|
44
48
|
type: BooleanConstructor;
|
|
45
49
|
default: boolean;
|
|
46
50
|
};
|
|
47
|
-
readonly: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: undefined;
|
|
50
|
-
};
|
|
51
51
|
size: {
|
|
52
52
|
type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
53
53
|
validator: (val: string) => val is "" | "default" | "small" | "large";
|
|
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
+
readonly: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
6
10
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
7
11
|
label: StringConstructor;
|
|
8
12
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
@@ -44,10 +48,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
48
|
type: BooleanConstructor;
|
|
45
49
|
default: boolean;
|
|
46
50
|
};
|
|
47
|
-
readonly: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: undefined;
|
|
50
|
-
};
|
|
51
51
|
size: {
|
|
52
52
|
type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
53
53
|
validator: (val: string) => val is "" | "default" | "small" | "large";
|
|
@@ -170,6 +170,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
170
|
type: StringConstructor;
|
|
171
171
|
default: string;
|
|
172
172
|
};
|
|
173
|
+
readonly: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: undefined;
|
|
176
|
+
};
|
|
173
177
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
174
178
|
label: StringConstructor;
|
|
175
179
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
@@ -211,10 +215,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
215
|
type: BooleanConstructor;
|
|
212
216
|
default: boolean;
|
|
213
217
|
};
|
|
214
|
-
readonly: {
|
|
215
|
-
type: BooleanConstructor;
|
|
216
|
-
default: undefined;
|
|
217
|
-
};
|
|
218
218
|
size: {
|
|
219
219
|
type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
220
220
|
validator: (val: string) => val is "" | "default" | "small" | "large";
|
|
@@ -437,15 +437,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
437
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
438
438
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
439
439
|
default: withCtx(() => {
|
|
440
|
-
var _a;
|
|
440
|
+
var _a, _b, _c;
|
|
441
441
|
return [
|
|
442
442
|
createVNode(_component_ElUpload, mergeProps({
|
|
443
443
|
class: ["vkf-upload", {
|
|
444
444
|
"is-readonly": _ctx.readonly,
|
|
445
|
-
"is-empty": _ctx.fileList.length === 0
|
|
445
|
+
"is-empty": ((_a = _ctx.fileList) == null ? void 0 : _a.length) === 0
|
|
446
446
|
}]
|
|
447
447
|
}, _ctx.coreBindProps, {
|
|
448
|
-
fileList: (
|
|
448
|
+
fileList: (_b = _ctx.fileList) != null ? _b : [],
|
|
449
449
|
"onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:fileList", $event)),
|
|
450
450
|
ref: "uploadRef",
|
|
451
451
|
disabled: _ctx.readonly || _ctx.disabled
|
|
@@ -480,7 +480,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
480
480
|
createElementVNode("span", {
|
|
481
481
|
class: normalizeClass(["vkf-upload-empty-tip", {
|
|
482
482
|
"is-readonly": _ctx.readonly,
|
|
483
|
-
"is-empty": _ctx.fileList.length === 0
|
|
483
|
+
"is-empty": ((_c = _ctx.fileList) == null ? void 0 : _c.length) === 0
|
|
484
484
|
}])
|
|
485
485
|
}, "\u6682\u65E0", 2)
|
|
486
486
|
];
|