@vunk/form 1.1.62 → 1.1.63

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.
@@ -34,8 +34,8 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
34
34
  default: ""
35
35
  },
36
36
  preview: {
37
- type: String,
38
- default: ""
37
+ type: Boolean,
38
+ default: false
39
39
  },
40
40
  beforeUpload: {
41
41
  type: Function,
@@ -561,8 +561,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
561
561
  listType: _ctx.listType,
562
562
  disabled: _ctx.readonly || _ctx.disabled,
563
563
  onPreview: _ctx.onPreview,
564
+ preview: _ctx.preview,
564
565
  onRemove: _ctx.handleRemove
565
- }, null, 8, ["file", "listType", "disabled", "onPreview", "onRemove"])
566
+ }, null, 8, ["file", "listType", "disabled", "onPreview", "preview", "onRemove"])
566
567
  ]),
567
568
  default: withCtx(() => [
568
569
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -5,8 +5,8 @@ export declare const props: {
5
5
  default: string;
6
6
  };
7
7
  preview: {
8
- type: StringConstructor;
9
- default: string;
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
10
  };
11
11
  beforeUpload: {
12
12
  type: FunctionConstructor;
@@ -27,8 +27,8 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
27
27
  default: ""
28
28
  },
29
29
  preview: {
30
- type: String,
31
- default: ""
30
+ type: Boolean,
31
+ default: false
32
32
  },
33
33
  beforeUpload: {
34
34
  type: Function,
@@ -10,8 +10,8 @@ declare const _default: import("vue").DefineComponent<{
10
10
  default: string;
11
11
  };
12
12
  preview: {
13
- type: StringConstructor;
14
- default: string;
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
15
  };
16
16
  beforeUpload: {
17
17
  type: FunctionConstructor;
@@ -229,8 +229,8 @@ declare const _default: import("vue").DefineComponent<{
229
229
  default: string;
230
230
  };
231
231
  preview: {
232
- type: StringConstructor;
233
- default: string;
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
234
  };
235
235
  beforeUpload: {
236
236
  type: FunctionConstructor;
@@ -420,7 +420,7 @@ declare const _default: import("vue").DefineComponent<{
420
420
  autoUpload: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
421
421
  listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
422
422
  httpRequest: import("element-plus").UploadRequestHandler;
423
- preview: string;
423
+ preview: boolean;
424
424
  tip: string;
425
425
  }>;
426
426
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "1.1.62",
3
+ "version": "1.1.63",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
1
  import { Media } from '@vunk/core';
2
2
  import { AllTemplatesSource } from '@vunk/form/shared';
3
3
  export declare const CORE_FORM_TEMPLATE_OPTIONS: Media<AllTemplatesSource['templateType']>[];
4
- export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"VkfInput" | "VkfSwitch" | "VkfSelect" | "VkfDatePicker" | "VkfInputNumber" | "VkfRadio" | "VkfCheckbox" | "VkfUpload" | "ElLink" | "VkfColorPicker" | "VkfButton" | "VkfCascader" | "VkfInputLink" | "VkfSlider" | "VkfGeoinput" | "VkfEsriInputGeojson" | "Component" | "ElDivider" | "ElRow" | "ElCol" | "VkfFlex">>;
4
+ export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"VkfButton" | "VkfInput" | "VkfDatePicker" | "VkfSelect" | "VkfSwitch" | "VkfInputNumber" | "VkfRadio" | "VkfCheckbox" | "VkfUpload" | "VkfColorPicker" | "VkfCascader" | "VkfInputLink" | "VkfSlider" | "Component" | "ElRow" | "ElCol" | "VkfFlex" | "ElDivider" | "ElLink" | "VkfGeoinput" | "VkfEsriInputGeojson">>;