@vunk/form 2.16.2 → 2.16.4

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.
@@ -27,7 +27,8 @@ const props = {
27
27
  },
28
28
  // 复用 upload 的其他展示相关属性
29
29
  showFileList: elementPlus.uploadProps.showFileList,
30
- drag: elementPlus.uploadProps.drag
30
+ drag: elementPlus.uploadProps.drag,
31
+ slots: null
31
32
  };
32
33
  const emits = {
33
34
  "update:modelValue": null
@@ -42,6 +43,7 @@ var _sfc_main$1 = vue.defineComponent({
42
43
  emits,
43
44
  setup(props2, { emit }) {
44
45
  const fileList = vue.ref([]);
46
+ const slots = vue.useSlots();
45
47
  const fileToUploadFile = (file) => {
46
48
  const uid = elementPlus.genFileId();
47
49
  const rawFile = file;
@@ -87,25 +89,21 @@ var _sfc_main$1 = vue.defineComponent({
87
89
  action: "#"
88
90
  // 占位符,不会实际触发
89
91
  }));
90
- return {
91
- fileList,
92
- uploadProps,
93
- handleFileListChange
94
- };
92
+ return () => vue.h(
93
+ upload.VkfUpload,
94
+ {
95
+ ...uploadProps.value,
96
+ "onUpdate:file-list": handleFileListChange
97
+ },
98
+ {
99
+ ...slots,
100
+ ...props2.slots
101
+ }
102
+ );
95
103
  }
96
104
  });
97
105
 
98
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
99
- const _component_VkfUpload = vue.resolveComponent("VkfUpload");
100
- return vue.openBlock(), vue.createBlock(_component_VkfUpload, vue.mergeProps(_ctx.uploadProps, { "onUpdate:fileList": _ctx.handleFileListChange }), {
101
- default: vue.withCtx(() => [
102
- vue.renderSlot(_ctx.$slots, "default")
103
- ]),
104
- _: 3
105
- /* FORWARDED */
106
- }, 16, ["onUpdate:fileList"]);
107
- }
108
- var VkfInputFile = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/index.vue"]]);
106
+ var VkfInputFile = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/index.vue"]]);
109
107
 
110
108
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
111
109
  __name: "template",
@@ -1,5 +1,5 @@
1
1
  import { uploadProps, genFileId } from 'element-plus';
2
- import { defineComponent, ref, watch, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createVNode } from 'vue';
2
+ import { defineComponent, ref, useSlots, watch, computed, h, openBlock, createBlock, withCtx, createVNode, mergeProps } from 'vue';
3
3
  import { VkfUpload } from '@vunk/form/components/upload';
4
4
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
5
5
  import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
@@ -23,7 +23,8 @@ const props = {
23
23
  },
24
24
  // 复用 upload 的其他展示相关属性
25
25
  showFileList: uploadProps.showFileList,
26
- drag: uploadProps.drag
26
+ drag: uploadProps.drag,
27
+ slots: null
27
28
  };
28
29
  const emits = {
29
30
  "update:modelValue": null
@@ -38,6 +39,7 @@ var _sfc_main$1 = defineComponent({
38
39
  emits,
39
40
  setup(props2, { emit }) {
40
41
  const fileList = ref([]);
42
+ const slots = useSlots();
41
43
  const fileToUploadFile = (file) => {
42
44
  const uid = genFileId();
43
45
  const rawFile = file;
@@ -83,25 +85,21 @@ var _sfc_main$1 = defineComponent({
83
85
  action: "#"
84
86
  // 占位符,不会实际触发
85
87
  }));
86
- return {
87
- fileList,
88
- uploadProps,
89
- handleFileListChange
90
- };
88
+ return () => h(
89
+ VkfUpload,
90
+ {
91
+ ...uploadProps.value,
92
+ "onUpdate:file-list": handleFileListChange
93
+ },
94
+ {
95
+ ...slots,
96
+ ...props2.slots
97
+ }
98
+ );
91
99
  }
92
100
  });
93
101
 
94
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
95
- const _component_VkfUpload = resolveComponent("VkfUpload");
96
- return openBlock(), createBlock(_component_VkfUpload, mergeProps(_ctx.uploadProps, { "onUpdate:fileList": _ctx.handleFileListChange }), {
97
- default: withCtx(() => [
98
- renderSlot(_ctx.$slots, "default")
99
- ]),
100
- _: 3
101
- /* FORWARDED */
102
- }, 16, ["onUpdate:fileList"]);
103
- }
104
- var VkfInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/index.vue"]]);
102
+ var VkfInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-file/src/index.vue"]]);
105
103
 
106
104
  var _sfc_main = /* @__PURE__ */ defineComponent({
107
105
  __name: "template",
@@ -39,6 +39,7 @@ export declare const props: {
39
39
  readonly default: true;
40
40
  };
41
41
  drag: BooleanConstructor;
42
+ slots: any;
42
43
  };
43
44
  export declare const emits: {
44
45
  'update:modelValue': any;
@@ -1,4 +1,3 @@
1
- import { UploadFile } from 'element-plus';
2
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
2
  modelValue: {
4
3
  type: import("vue").PropType<File | File[] | undefined>;
@@ -39,89 +38,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
38
  readonly default: true;
40
39
  };
41
40
  drag: BooleanConstructor;
42
- }>, {
43
- fileList: import("vue").Ref<{
44
- name: string;
45
- percentage?: number;
46
- status: import("element-plus").UploadStatus;
47
- size?: number;
48
- response?: unknown;
49
- uid: number;
50
- url?: string;
51
- raw?: {
52
- uid: number;
53
- isDirectory?: boolean;
54
- readonly lastModified: number;
55
- readonly name: string;
56
- readonly webkitRelativePath: string;
57
- readonly size: number;
58
- readonly type: string;
59
- arrayBuffer: () => Promise<ArrayBuffer>;
60
- bytes: () => Promise<Uint8Array>;
61
- slice: (start?: number, end?: number, contentType?: string) => Blob;
62
- stream: () => ReadableStream<Uint8Array>;
63
- text: () => Promise<string>;
64
- };
65
- }[], UploadFile[] | {
66
- name: string;
67
- percentage?: number;
68
- status: import("element-plus").UploadStatus;
69
- size?: number;
70
- response?: unknown;
71
- uid: number;
72
- url?: string;
73
- raw?: {
74
- uid: number;
75
- isDirectory?: boolean;
76
- readonly lastModified: number;
77
- readonly name: string;
78
- readonly webkitRelativePath: string;
79
- readonly size: number;
80
- readonly type: string;
81
- arrayBuffer: () => Promise<ArrayBuffer>;
82
- bytes: () => Promise<Uint8Array>;
83
- slice: (start?: number, end?: number, contentType?: string) => Blob;
84
- stream: () => ReadableStream<Uint8Array>;
85
- text: () => Promise<string>;
86
- };
87
- }[]>;
88
- uploadProps: import("vue").ComputedRef<{
89
- fileList: {
90
- name: string;
91
- percentage?: number;
92
- status: import("element-plus").UploadStatus;
93
- size?: number;
94
- response?: unknown;
95
- uid: number;
96
- url?: string;
97
- raw?: {
98
- uid: number;
99
- isDirectory?: boolean;
100
- readonly lastModified: number;
101
- readonly name: string;
102
- readonly webkitRelativePath: string;
103
- readonly size: number;
104
- readonly type: string;
105
- arrayBuffer: () => Promise<ArrayBuffer>;
106
- bytes: () => Promise<Uint8Array>;
107
- slice: (start?: number, end?: number, contentType?: string) => Blob;
108
- stream: () => ReadableStream<Uint8Array>;
109
- text: () => Promise<string>;
110
- };
111
- }[];
112
- multiple: boolean;
113
- accept: string;
114
- disabled: boolean;
115
- limit: number;
116
- listType: "text" | "picture" | "picture-card";
117
- tip: string;
118
- showFileList: boolean;
119
- drag: boolean;
120
- autoUpload: boolean;
121
- action: string;
122
- }>;
123
- handleFileListChange: (newFileList: UploadFile[]) => void;
124
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ slots: any;
42
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
125
45
  'update:modelValue': any;
126
46
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
127
47
  modelValue: {
@@ -163,10 +83,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
163
83
  readonly default: true;
164
84
  };
165
85
  drag: BooleanConstructor;
86
+ slots: any;
166
87
  }>> & Readonly<{
167
88
  "onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
168
89
  }>, {
169
90
  disabled: boolean;
91
+ slots: any;
170
92
  modelValue: File | File[];
171
93
  multiple: boolean;
172
94
  drag: boolean;
@@ -50,89 +50,10 @@ declare const _default: import("vue").DefineComponent<{}, {
50
50
  readonly default: true;
51
51
  };
52
52
  drag: BooleanConstructor;
53
- }>, {
54
- fileList: import("vue").Ref<{
55
- name: string;
56
- percentage?: number;
57
- status: import("element-plus").UploadStatus;
58
- size?: number;
59
- response?: unknown;
60
- uid: number;
61
- url?: string;
62
- raw?: {
63
- uid: number;
64
- isDirectory?: boolean;
65
- readonly lastModified: number;
66
- readonly name: string;
67
- readonly webkitRelativePath: string;
68
- readonly size: number;
69
- readonly type: string;
70
- arrayBuffer: () => Promise<ArrayBuffer>;
71
- bytes: () => Promise<Uint8Array>;
72
- slice: (start?: number, end?: number, contentType?: string) => Blob;
73
- stream: () => ReadableStream<Uint8Array>;
74
- text: () => Promise<string>;
75
- };
76
- }[], import("element-plus").UploadFile[] | {
77
- name: string;
78
- percentage?: number;
79
- status: import("element-plus").UploadStatus;
80
- size?: number;
81
- response?: unknown;
82
- uid: number;
83
- url?: string;
84
- raw?: {
85
- uid: number;
86
- isDirectory?: boolean;
87
- readonly lastModified: number;
88
- readonly name: string;
89
- readonly webkitRelativePath: string;
90
- readonly size: number;
91
- readonly type: string;
92
- arrayBuffer: () => Promise<ArrayBuffer>;
93
- bytes: () => Promise<Uint8Array>;
94
- slice: (start?: number, end?: number, contentType?: string) => Blob;
95
- stream: () => ReadableStream<Uint8Array>;
96
- text: () => Promise<string>;
97
- };
98
- }[]>;
99
- uploadProps: import("vue").ComputedRef<{
100
- fileList: {
101
- name: string;
102
- percentage?: number;
103
- status: import("element-plus").UploadStatus;
104
- size?: number;
105
- response?: unknown;
106
- uid: number;
107
- url?: string;
108
- raw?: {
109
- uid: number;
110
- isDirectory?: boolean;
111
- readonly lastModified: number;
112
- readonly name: string;
113
- readonly webkitRelativePath: string;
114
- readonly size: number;
115
- readonly type: string;
116
- arrayBuffer: () => Promise<ArrayBuffer>;
117
- bytes: () => Promise<Uint8Array>;
118
- slice: (start?: number, end?: number, contentType?: string) => Blob;
119
- stream: () => ReadableStream<Uint8Array>;
120
- text: () => Promise<string>;
121
- };
122
- }[];
123
- multiple: boolean;
124
- accept: string;
125
- disabled: boolean;
126
- limit: number;
127
- listType: "text" | "picture" | "picture-card";
128
- tip: string;
129
- showFileList: boolean;
130
- drag: boolean;
131
- autoUpload: boolean;
132
- action: string;
133
- }>;
134
- handleFileListChange: (newFileList: import("element-plus").UploadFile[]) => void;
135
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ slots: any;
54
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
136
57
  'update:modelValue': any;
137
58
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
138
59
  modelValue: {
@@ -174,10 +95,12 @@ declare const _default: import("vue").DefineComponent<{}, {
174
95
  readonly default: true;
175
96
  };
176
97
  drag: BooleanConstructor;
98
+ slots: any;
177
99
  }>> & Readonly<{
178
100
  "onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
179
101
  }>, {
180
102
  disabled: boolean;
103
+ slots: any;
181
104
  modelValue: File | File[];
182
105
  multiple: boolean;
183
106
  drag: boolean;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
5
6
  var formItem = require('@vunk/form/components/form-item');
6
7
  var utilsVue = require('@vunk/core/shared/utils-vue');
7
8
  var elementPlus = require('element-plus');
8
- var vue = require('vue');
9
9
  var utilsObject = require('@vunk/core/shared/utils-object');
10
10
  var elementPlus$1 = require('@vunk/form/shared/element-plus');
11
11
  var index = require('../index.cjs');
@@ -49,7 +49,11 @@ const props = {
49
49
  confirmExceed: {
50
50
  type: Boolean,
51
51
  default: false
52
- }
52
+ },
53
+ /**
54
+ * @description 同 el-upload 的 slots
55
+ */
56
+ slots: null
53
57
  };
54
58
  const createBindProps = utilsVue.bindPropsFactory(props);
55
59
  const emits = {
@@ -69,7 +73,7 @@ var ctx = /*#__PURE__*/Object.freeze({
69
73
  const restFetch = new utilsFetch.RestFetch({
70
74
  baseURL: ""
71
75
  });
72
- var _sfc_main$1 = vue.defineComponent({
76
+ var _sfc_main$2 = vue.defineComponent({
73
77
  components: {
74
78
  ElProgress: elementPlus.ElProgress,
75
79
  ElIcon: elementPlus.ElIcon,
@@ -425,10 +429,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
425
429
  /* STABLE_FRAGMENT */
426
430
  );
427
431
  }
428
- var FileVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/file.vue"]]);
432
+ var FileVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/file.vue"]]);
429
433
 
430
- var _sfc_main = vue.defineComponent({
431
- name: "VkfUpload",
434
+ var _sfc_main$1 = vue.defineComponent({
432
435
  components: {
433
436
  VkfFormItem: formItem.VkfFormItem,
434
437
  ElUpload: elementPlus.ElUpload,
@@ -600,14 +603,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
600
603
  /* FULL_PROPS */
601
604
  );
602
605
  }
603
- var VkfUpload = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/index.vue"]]);
606
+ var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/index.vue"]]);
607
+
608
+ var _sfc_main = vue.defineComponent({
609
+ name: "VkfUpload",
610
+ props,
611
+ emits,
612
+ setup(props2, { emit, slots }) {
613
+ const coreEmits = createOnEmits(emit);
614
+ return () => vue.h(Core, {
615
+ ...props2,
616
+ ...utilsVue.vOn(coreEmits)
617
+ }, {
618
+ ...props2.slots,
619
+ ...slots
620
+ });
621
+ }
622
+ });
623
+
624
+ var VkfUpload = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/wraper.vue"]]);
604
625
 
605
626
  var types = /*#__PURE__*/Object.freeze({
606
627
  __proto__: null
607
628
  });
608
629
 
609
630
  VkfUpload.install = (app) => {
610
- app.component(VkfUpload.name, VkfUpload);
631
+ app.component(VkfUpload.name || "VkfUpload", VkfUpload);
611
632
  };
612
633
 
613
634
  exports.VkfUpload = VkfUpload;
@@ -1,4 +1,4 @@
1
- import VkfUpload from './src/index.vue';
1
+ import VkfUpload from './src/wraper.vue';
2
2
  export * as __VkfUpload from './src/types';
3
3
  export * as _VkfUploadCtx from './src/ctx';
4
4
  export { VkfUpload, };
@@ -1,7 +1,7 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createCommentVNode, normalizeClass, createBlock, createElementVNode, withModifiers, createVNode, withCtx, toDisplayString, createTextVNode, normalizeStyle, shallowRef, normalizeProps, guardReactiveProps, mergeProps, createSlots, renderSlot, h } from 'vue';
1
2
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
- import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
3
+ import { bindPropsFactory, onEmitsFactory, vOn } from '@vunk/core/shared/utils-vue';
3
4
  import { uploadProps, ElProgress, ElIcon, ElButton, useNamespace, useLocale, ElUpload, ElLink, ElMessageBox, genFileId } from 'element-plus';
4
- import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createCommentVNode, normalizeClass, createBlock, createElementVNode, withModifiers, createVNode, withCtx, toDisplayString, createTextVNode, normalizeStyle, shallowRef, normalizeProps, guardReactiveProps, mergeProps, createSlots, renderSlot } from 'vue';
5
5
  import { pickObject } from '@vunk/core/shared/utils-object';
6
6
  import { createUploadBindProps } from '@vunk/form/shared/element-plus';
7
7
  import { h as check_default, z as zoom_in_default, d as delete_default, i as close_default, j as circle_check_default, k as document_default, a as download_default } from '../index.mjs';
@@ -45,7 +45,11 @@ const props = {
45
45
  confirmExceed: {
46
46
  type: Boolean,
47
47
  default: false
48
- }
48
+ },
49
+ /**
50
+ * @description 同 el-upload 的 slots
51
+ */
52
+ slots: null
49
53
  };
50
54
  const createBindProps = bindPropsFactory(props);
51
55
  const emits = {
@@ -65,7 +69,7 @@ var ctx = /*#__PURE__*/Object.freeze({
65
69
  const restFetch = new RestFetch({
66
70
  baseURL: ""
67
71
  });
68
- var _sfc_main$1 = defineComponent({
72
+ var _sfc_main$2 = defineComponent({
69
73
  components: {
70
74
  ElProgress,
71
75
  ElIcon,
@@ -421,10 +425,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
421
425
  /* STABLE_FRAGMENT */
422
426
  );
423
427
  }
424
- var FileVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/file.vue"]]);
428
+ var FileVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/file.vue"]]);
425
429
 
426
- var _sfc_main = defineComponent({
427
- name: "VkfUpload",
430
+ var _sfc_main$1 = defineComponent({
428
431
  components: {
429
432
  VkfFormItem,
430
433
  ElUpload,
@@ -596,14 +599,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
596
599
  /* FULL_PROPS */
597
600
  );
598
601
  }
599
- var VkfUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/index.vue"]]);
602
+ var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/index.vue"]]);
603
+
604
+ var _sfc_main = defineComponent({
605
+ name: "VkfUpload",
606
+ props,
607
+ emits,
608
+ setup(props2, { emit, slots }) {
609
+ const coreEmits = createOnEmits(emit);
610
+ return () => h(Core, {
611
+ ...props2,
612
+ ...vOn(coreEmits)
613
+ }, {
614
+ ...props2.slots,
615
+ ...slots
616
+ });
617
+ }
618
+ });
619
+
620
+ var VkfUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/upload/src/wraper.vue"]]);
600
621
 
601
622
  var types = /*#__PURE__*/Object.freeze({
602
623
  __proto__: null
603
624
  });
604
625
 
605
626
  VkfUpload.install = (app) => {
606
- app.component(VkfUpload.name, VkfUpload);
627
+ app.component(VkfUpload.name || "VkfUpload", VkfUpload);
607
628
  };
608
629
 
609
630
  export { VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload, VkfUpload as default };
@@ -34,6 +34,10 @@ export declare const props: {
34
34
  type: BooleanConstructor;
35
35
  default: boolean;
36
36
  };
37
+ /**
38
+ * @description 同 el-upload 的 slots
39
+ */
40
+ slots: any;
37
41
  beforeRemove: {
38
42
  readonly type: PropType<(uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => boolean | Promise<boolean>>;
39
43
  readonly required: false;
@@ -276,7 +280,7 @@ export declare const props: {
276
280
  readonly default: true;
277
281
  };
278
282
  };
279
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", 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<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", 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<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"onPreview", 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<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"method", 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<"listType", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"exceedable", keyof T2>, KE> | Exclude<Extract<"confirmExceed", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", 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<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", 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<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: T2[k]; }[P]; }>;
283
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", 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<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", 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<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"onPreview", 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<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"method", 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<"listType", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"exceedable", keyof T2>, KE> | Exclude<Extract<"confirmExceed", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", 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<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", 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<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: T2[k]; }[P]; }>;
280
284
  export declare const emits: {
281
285
  'update:fileList': any;
282
286
  remove: (e: UploadFile) => UploadFile;
@@ -27,6 +27,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
30
+ slots: any;
30
31
  beforeRemove: {
31
32
  readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => boolean | Promise<boolean>>;
32
33
  readonly required: false;
@@ -345,6 +346,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
345
346
  type: BooleanConstructor;
346
347
  default: boolean;
347
348
  };
349
+ slots: any;
348
350
  beforeRemove: {
349
351
  readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => boolean | Promise<boolean>>;
350
352
  readonly required: false;
@@ -607,6 +609,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
607
609
  showMessage: boolean;
608
610
  disabled: boolean;
609
611
  name: string;
612
+ slots: any;
610
613
  data: {};
611
614
  multiple: boolean;
612
615
  onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
@@ -0,0 +1,590 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ tip: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ preview: any;
7
+ beforeUpload: {
8
+ type: FunctionConstructor;
9
+ default: any;
10
+ };
11
+ onDownload: {
12
+ type: import("vue").PropType<import("@vunk/core").Func<import("element-plus").UploadFile>>;
13
+ default: any;
14
+ };
15
+ onExceed: {
16
+ type: import("vue").PropType<import("./types").OnExceed>;
17
+ default: any;
18
+ };
19
+ exceedable: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ confirmExceed: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ slots: any;
28
+ beforeRemove: {
29
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => boolean | Promise<boolean>>;
30
+ readonly required: false;
31
+ readonly validator: ((val: unknown) => boolean) | undefined;
32
+ __epPropKey: true;
33
+ };
34
+ onRemove: {
35
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ } & {
40
+ readonly default: () => void;
41
+ };
42
+ onChange: {
43
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ } & {
48
+ readonly default: () => void;
49
+ };
50
+ onPreview: {
51
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile) => void>;
52
+ readonly required: false;
53
+ readonly validator: ((val: unknown) => boolean) | undefined;
54
+ __epPropKey: true;
55
+ } & {
56
+ readonly default: () => void;
57
+ };
58
+ onSuccess: {
59
+ readonly type: import("vue").PropType<(response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
60
+ readonly required: false;
61
+ readonly validator: ((val: unknown) => boolean) | undefined;
62
+ __epPropKey: true;
63
+ } & {
64
+ readonly default: () => void;
65
+ };
66
+ onProgress: {
67
+ readonly type: import("vue").PropType<(evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
68
+ readonly required: false;
69
+ readonly validator: ((val: unknown) => boolean) | undefined;
70
+ __epPropKey: true;
71
+ } & {
72
+ readonly default: () => void;
73
+ };
74
+ onError: {
75
+ readonly type: import("vue").PropType<(error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
76
+ readonly required: false;
77
+ readonly validator: ((val: unknown) => boolean) | undefined;
78
+ __epPropKey: true;
79
+ } & {
80
+ readonly default: () => void;
81
+ };
82
+ crossorigin: {
83
+ readonly type: import("vue").PropType<"" | "anonymous" | "use-credentials">;
84
+ readonly required: false;
85
+ readonly validator: ((val: unknown) => boolean) | undefined;
86
+ __epPropKey: true;
87
+ };
88
+ action: {
89
+ readonly type: import("vue").PropType<string>;
90
+ readonly required: false;
91
+ readonly validator: ((val: unknown) => boolean) | undefined;
92
+ __epPropKey: true;
93
+ } & {
94
+ readonly default: "#";
95
+ };
96
+ headers: {
97
+ readonly type: import("vue").PropType<Record<string, any> | Headers>;
98
+ readonly required: false;
99
+ readonly validator: ((val: unknown) => boolean) | undefined;
100
+ __epPropKey: true;
101
+ };
102
+ method: {
103
+ readonly type: import("vue").PropType<string>;
104
+ readonly required: false;
105
+ readonly validator: ((val: unknown) => boolean) | undefined;
106
+ __epPropKey: true;
107
+ } & {
108
+ readonly default: "post";
109
+ };
110
+ data: {
111
+ readonly type: import("vue").PropType<unknown>;
112
+ readonly required: false;
113
+ readonly validator: ((val: unknown) => boolean) | undefined;
114
+ __epPropKey: true;
115
+ } & {
116
+ readonly default: () => {};
117
+ };
118
+ multiple: BooleanConstructor;
119
+ name: {
120
+ readonly type: import("vue").PropType<string>;
121
+ readonly required: false;
122
+ readonly validator: ((val: unknown) => boolean) | undefined;
123
+ __epPropKey: true;
124
+ } & {
125
+ readonly default: "file";
126
+ };
127
+ drag: BooleanConstructor;
128
+ withCredentials: BooleanConstructor;
129
+ showFileList: {
130
+ readonly type: import("vue").PropType<boolean>;
131
+ readonly required: false;
132
+ readonly validator: ((val: unknown) => boolean) | undefined;
133
+ __epPropKey: true;
134
+ } & {
135
+ readonly default: true;
136
+ };
137
+ accept: {
138
+ readonly type: import("vue").PropType<string>;
139
+ readonly required: false;
140
+ readonly validator: ((val: unknown) => boolean) | undefined;
141
+ __epPropKey: true;
142
+ } & {
143
+ readonly default: "";
144
+ };
145
+ fileList: {
146
+ readonly type: import("vue").PropType<import("element-plus").UploadUserFile[]>;
147
+ readonly required: false;
148
+ readonly validator: ((val: unknown) => boolean) | undefined;
149
+ __epPropKey: true;
150
+ } & {
151
+ readonly default: () => [];
152
+ };
153
+ autoUpload: {
154
+ readonly type: import("vue").PropType<boolean>;
155
+ readonly required: false;
156
+ readonly validator: ((val: unknown) => boolean) | undefined;
157
+ __epPropKey: true;
158
+ } & {
159
+ readonly default: true;
160
+ };
161
+ listType: {
162
+ readonly type: import("vue").PropType<"text" | "picture" | "picture-card">;
163
+ readonly required: false;
164
+ readonly validator: ((val: unknown) => boolean) | undefined;
165
+ __epPropKey: true;
166
+ } & {
167
+ readonly default: "text";
168
+ };
169
+ httpRequest: {
170
+ readonly type: import("vue").PropType<import("element-plus").UploadRequestHandler>;
171
+ readonly required: false;
172
+ readonly validator: ((val: unknown) => boolean) | undefined;
173
+ __epPropKey: true;
174
+ } & {
175
+ readonly default: import("element-plus").UploadRequestHandler;
176
+ };
177
+ disabled: BooleanConstructor;
178
+ limit: NumberConstructor;
179
+ required: {
180
+ readonly type: import("vue").PropType<boolean>;
181
+ readonly required: false;
182
+ readonly validator: ((val: unknown) => boolean) | undefined;
183
+ __epPropKey: true;
184
+ } & {
185
+ readonly default: undefined;
186
+ };
187
+ formItemSize: {
188
+ type: import("vue").PropType<"default" | "small" | "large">;
189
+ default: "default" | "small" | "large";
190
+ };
191
+ formItemSlots: {
192
+ type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
193
+ default: any;
194
+ };
195
+ elRef: {
196
+ type: import("vue").PropType<any>;
197
+ required: boolean;
198
+ };
199
+ inline: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ readonly: {
204
+ type: BooleanConstructor;
205
+ default: any;
206
+ };
207
+ formItemTip: {
208
+ type: StringConstructor;
209
+ default: any;
210
+ };
211
+ formItemTipClass: any;
212
+ labelTip: {
213
+ type: StringConstructor;
214
+ default: any;
215
+ };
216
+ information: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
220
+ prop: any;
221
+ defaultModelValue: any;
222
+ label: StringConstructor;
223
+ labelWidth: {
224
+ readonly type: import("vue").PropType<string | number>;
225
+ readonly required: false;
226
+ readonly validator: ((val: unknown) => boolean) | undefined;
227
+ __epPropKey: true;
228
+ } & {
229
+ readonly default: "";
230
+ };
231
+ labelPosition: {
232
+ readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
233
+ readonly required: false;
234
+ readonly validator: ((val: unknown) => boolean) | undefined;
235
+ __epPropKey: true;
236
+ } & {
237
+ readonly default: "";
238
+ };
239
+ rules: {
240
+ readonly type: import("vue").PropType<unknown>;
241
+ readonly required: false;
242
+ readonly validator: ((val: unknown) => boolean) | undefined;
243
+ __epPropKey: true;
244
+ };
245
+ error: StringConstructor;
246
+ validateStatus: {
247
+ readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
248
+ readonly required: false;
249
+ readonly validator: ((val: unknown) => boolean) | undefined;
250
+ __epPropKey: true;
251
+ };
252
+ for: StringConstructor;
253
+ inlineMessage: {
254
+ readonly type: import("vue").PropType<string | boolean>;
255
+ readonly required: false;
256
+ readonly validator: ((val: unknown) => boolean) | undefined;
257
+ __epPropKey: true;
258
+ } & {
259
+ readonly default: "";
260
+ };
261
+ showMessage: {
262
+ readonly type: import("vue").PropType<boolean>;
263
+ readonly required: false;
264
+ readonly validator: ((val: unknown) => boolean) | undefined;
265
+ __epPropKey: true;
266
+ } & {
267
+ readonly default: true;
268
+ };
269
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
270
+ [key: string]: any;
271
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
272
+ 'update:fileList': any;
273
+ remove: (e: import("element-plus").UploadFile) => import("element-plus").UploadFile;
274
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
275
+ tip: {
276
+ type: StringConstructor;
277
+ default: string;
278
+ };
279
+ preview: any;
280
+ beforeUpload: {
281
+ type: FunctionConstructor;
282
+ default: any;
283
+ };
284
+ onDownload: {
285
+ type: import("vue").PropType<import("@vunk/core").Func<import("element-plus").UploadFile>>;
286
+ default: any;
287
+ };
288
+ onExceed: {
289
+ type: import("vue").PropType<import("./types").OnExceed>;
290
+ default: any;
291
+ };
292
+ exceedable: {
293
+ type: BooleanConstructor;
294
+ default: boolean;
295
+ };
296
+ confirmExceed: {
297
+ type: BooleanConstructor;
298
+ default: boolean;
299
+ };
300
+ slots: any;
301
+ beforeRemove: {
302
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => boolean | Promise<boolean>>;
303
+ readonly required: false;
304
+ readonly validator: ((val: unknown) => boolean) | undefined;
305
+ __epPropKey: true;
306
+ };
307
+ onRemove: {
308
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
309
+ readonly required: false;
310
+ readonly validator: ((val: unknown) => boolean) | undefined;
311
+ __epPropKey: true;
312
+ } & {
313
+ readonly default: () => void;
314
+ };
315
+ onChange: {
316
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
317
+ readonly required: false;
318
+ readonly validator: ((val: unknown) => boolean) | undefined;
319
+ __epPropKey: true;
320
+ } & {
321
+ readonly default: () => void;
322
+ };
323
+ onPreview: {
324
+ readonly type: import("vue").PropType<(uploadFile: import("element-plus").UploadFile) => void>;
325
+ readonly required: false;
326
+ readonly validator: ((val: unknown) => boolean) | undefined;
327
+ __epPropKey: true;
328
+ } & {
329
+ readonly default: () => void;
330
+ };
331
+ onSuccess: {
332
+ readonly type: import("vue").PropType<(response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
333
+ readonly required: false;
334
+ readonly validator: ((val: unknown) => boolean) | undefined;
335
+ __epPropKey: true;
336
+ } & {
337
+ readonly default: () => void;
338
+ };
339
+ onProgress: {
340
+ readonly type: import("vue").PropType<(evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
341
+ readonly required: false;
342
+ readonly validator: ((val: unknown) => boolean) | undefined;
343
+ __epPropKey: true;
344
+ } & {
345
+ readonly default: () => void;
346
+ };
347
+ onError: {
348
+ readonly type: import("vue").PropType<(error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void>;
349
+ readonly required: false;
350
+ readonly validator: ((val: unknown) => boolean) | undefined;
351
+ __epPropKey: true;
352
+ } & {
353
+ readonly default: () => void;
354
+ };
355
+ crossorigin: {
356
+ readonly type: import("vue").PropType<"" | "anonymous" | "use-credentials">;
357
+ readonly required: false;
358
+ readonly validator: ((val: unknown) => boolean) | undefined;
359
+ __epPropKey: true;
360
+ };
361
+ action: {
362
+ readonly type: import("vue").PropType<string>;
363
+ readonly required: false;
364
+ readonly validator: ((val: unknown) => boolean) | undefined;
365
+ __epPropKey: true;
366
+ } & {
367
+ readonly default: "#";
368
+ };
369
+ headers: {
370
+ readonly type: import("vue").PropType<Record<string, any> | Headers>;
371
+ readonly required: false;
372
+ readonly validator: ((val: unknown) => boolean) | undefined;
373
+ __epPropKey: true;
374
+ };
375
+ method: {
376
+ readonly type: import("vue").PropType<string>;
377
+ readonly required: false;
378
+ readonly validator: ((val: unknown) => boolean) | undefined;
379
+ __epPropKey: true;
380
+ } & {
381
+ readonly default: "post";
382
+ };
383
+ data: {
384
+ readonly type: import("vue").PropType<unknown>;
385
+ readonly required: false;
386
+ readonly validator: ((val: unknown) => boolean) | undefined;
387
+ __epPropKey: true;
388
+ } & {
389
+ readonly default: () => {};
390
+ };
391
+ multiple: BooleanConstructor;
392
+ name: {
393
+ readonly type: import("vue").PropType<string>;
394
+ readonly required: false;
395
+ readonly validator: ((val: unknown) => boolean) | undefined;
396
+ __epPropKey: true;
397
+ } & {
398
+ readonly default: "file";
399
+ };
400
+ drag: BooleanConstructor;
401
+ withCredentials: BooleanConstructor;
402
+ showFileList: {
403
+ readonly type: import("vue").PropType<boolean>;
404
+ readonly required: false;
405
+ readonly validator: ((val: unknown) => boolean) | undefined;
406
+ __epPropKey: true;
407
+ } & {
408
+ readonly default: true;
409
+ };
410
+ accept: {
411
+ readonly type: import("vue").PropType<string>;
412
+ readonly required: false;
413
+ readonly validator: ((val: unknown) => boolean) | undefined;
414
+ __epPropKey: true;
415
+ } & {
416
+ readonly default: "";
417
+ };
418
+ fileList: {
419
+ readonly type: import("vue").PropType<import("element-plus").UploadUserFile[]>;
420
+ readonly required: false;
421
+ readonly validator: ((val: unknown) => boolean) | undefined;
422
+ __epPropKey: true;
423
+ } & {
424
+ readonly default: () => [];
425
+ };
426
+ autoUpload: {
427
+ readonly type: import("vue").PropType<boolean>;
428
+ readonly required: false;
429
+ readonly validator: ((val: unknown) => boolean) | undefined;
430
+ __epPropKey: true;
431
+ } & {
432
+ readonly default: true;
433
+ };
434
+ listType: {
435
+ readonly type: import("vue").PropType<"text" | "picture" | "picture-card">;
436
+ readonly required: false;
437
+ readonly validator: ((val: unknown) => boolean) | undefined;
438
+ __epPropKey: true;
439
+ } & {
440
+ readonly default: "text";
441
+ };
442
+ httpRequest: {
443
+ readonly type: import("vue").PropType<import("element-plus").UploadRequestHandler>;
444
+ readonly required: false;
445
+ readonly validator: ((val: unknown) => boolean) | undefined;
446
+ __epPropKey: true;
447
+ } & {
448
+ readonly default: import("element-plus").UploadRequestHandler;
449
+ };
450
+ disabled: BooleanConstructor;
451
+ limit: NumberConstructor;
452
+ required: {
453
+ readonly type: import("vue").PropType<boolean>;
454
+ readonly required: false;
455
+ readonly validator: ((val: unknown) => boolean) | undefined;
456
+ __epPropKey: true;
457
+ } & {
458
+ readonly default: undefined;
459
+ };
460
+ formItemSize: {
461
+ type: import("vue").PropType<"default" | "small" | "large">;
462
+ default: "default" | "small" | "large";
463
+ };
464
+ formItemSlots: {
465
+ type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
466
+ default: any;
467
+ };
468
+ elRef: {
469
+ type: import("vue").PropType<any>;
470
+ required: boolean;
471
+ };
472
+ inline: {
473
+ type: BooleanConstructor;
474
+ default: boolean;
475
+ };
476
+ readonly: {
477
+ type: BooleanConstructor;
478
+ default: any;
479
+ };
480
+ formItemTip: {
481
+ type: StringConstructor;
482
+ default: any;
483
+ };
484
+ formItemTipClass: any;
485
+ labelTip: {
486
+ type: StringConstructor;
487
+ default: any;
488
+ };
489
+ information: {
490
+ type: BooleanConstructor;
491
+ default: boolean;
492
+ };
493
+ prop: any;
494
+ defaultModelValue: any;
495
+ label: StringConstructor;
496
+ labelWidth: {
497
+ readonly type: import("vue").PropType<string | number>;
498
+ readonly required: false;
499
+ readonly validator: ((val: unknown) => boolean) | undefined;
500
+ __epPropKey: true;
501
+ } & {
502
+ readonly default: "";
503
+ };
504
+ labelPosition: {
505
+ readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
506
+ readonly required: false;
507
+ readonly validator: ((val: unknown) => boolean) | undefined;
508
+ __epPropKey: true;
509
+ } & {
510
+ readonly default: "";
511
+ };
512
+ rules: {
513
+ readonly type: import("vue").PropType<unknown>;
514
+ readonly required: false;
515
+ readonly validator: ((val: unknown) => boolean) | undefined;
516
+ __epPropKey: true;
517
+ };
518
+ error: StringConstructor;
519
+ validateStatus: {
520
+ readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
521
+ readonly required: false;
522
+ readonly validator: ((val: unknown) => boolean) | undefined;
523
+ __epPropKey: true;
524
+ };
525
+ for: StringConstructor;
526
+ inlineMessage: {
527
+ readonly type: import("vue").PropType<string | boolean>;
528
+ readonly required: false;
529
+ readonly validator: ((val: unknown) => boolean) | undefined;
530
+ __epPropKey: true;
531
+ } & {
532
+ readonly default: "";
533
+ };
534
+ showMessage: {
535
+ readonly type: import("vue").PropType<boolean>;
536
+ readonly required: false;
537
+ readonly validator: ((val: unknown) => boolean) | undefined;
538
+ __epPropKey: true;
539
+ } & {
540
+ readonly default: true;
541
+ };
542
+ }>> & Readonly<{
543
+ "onUpdate:fileList"?: (...args: any[] | unknown[]) => any;
544
+ onRemove?: (e: import("element-plus").UploadFile) => any;
545
+ }>, {
546
+ required: boolean;
547
+ formItemSize: "default" | "small" | "large";
548
+ formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
549
+ inline: boolean;
550
+ readonly: boolean;
551
+ formItemTip: string;
552
+ formItemTipClass: any;
553
+ labelTip: string;
554
+ information: boolean;
555
+ prop: any;
556
+ defaultModelValue: any;
557
+ labelWidth: string | number;
558
+ labelPosition: "" | "top" | "left" | "right";
559
+ inlineMessage: string | boolean;
560
+ showMessage: boolean;
561
+ disabled: boolean;
562
+ name: string;
563
+ slots: any;
564
+ data: {};
565
+ multiple: boolean;
566
+ onChange: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
567
+ beforeUpload: Function;
568
+ onRemove: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
569
+ onPreview: (uploadFile: import("element-plus").UploadFile) => void;
570
+ onSuccess: (response: any, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
571
+ onProgress: (evt: import("element-plus").UploadProgressEvent, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
572
+ onError: (error: Error, uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
573
+ onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
574
+ action: string;
575
+ method: string;
576
+ drag: boolean;
577
+ withCredentials: boolean;
578
+ showFileList: boolean;
579
+ accept: string;
580
+ fileList: import("element-plus").UploadUserFile[];
581
+ autoUpload: boolean;
582
+ listType: "text" | "picture" | "picture-card";
583
+ httpRequest: import("element-plus").UploadRequestHandler;
584
+ tip: string;
585
+ preview: any;
586
+ onDownload: (arg: import("element-plus").UploadFile) => any;
587
+ exceedable: boolean;
588
+ confirmExceed: boolean;
589
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
590
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.16.2",
3
+ "version": "2.16.4",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {