@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.
@@ -28,6 +28,10 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, cascaderProps), _V
28
28
  optionsUrl: {
29
29
  type: String,
30
30
  default: ""
31
+ },
32
+ readonly: {
33
+ type: Boolean,
34
+ default: void 0
31
35
  }
32
36
  });
33
37
  bindPropsFactory(props);
@@ -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";
@@ -25,6 +25,10 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, cascaderProps), _V
25
25
  optionsUrl: {
26
26
  type: String,
27
27
  default: ""
28
+ },
29
+ readonly: {
30
+ type: Boolean,
31
+ default: void 0
28
32
  }
29
33
  });
30
34
  const createBindProps = bindPropsFactory(props);
@@ -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: (_a = _ctx.fileList) != null ? _a : [],
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
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.36",
3
+ "version": "0.0.1-alpha.38",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {