@vunk/form 2.16.8 → 2.16.9

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.
@@ -24,6 +24,10 @@ const props = {
24
24
  default: ""
25
25
  },
26
26
  preview: null,
27
+ previewLabel: {
28
+ type: String,
29
+ default: "\u9884\u89C8"
30
+ },
27
31
  beforeUpload: {
28
32
  type: Function,
29
33
  default: void 0
@@ -110,6 +114,10 @@ var _sfc_main$2 = vue.defineComponent({
110
114
  preview: {
111
115
  type: [Boolean, Function],
112
116
  default: false
117
+ },
118
+ previewLabel: {
119
+ type: String,
120
+ default: "\u9884\u89C8"
113
121
  }
114
122
  },
115
123
  emits: {
@@ -255,20 +263,24 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
255
263
  class: vue.normalizeClass(_ctx.nsUpload.be("list", "item-file-actions"))
256
264
  },
257
265
  [
258
- vue.createCommentVNode(" \u9884\u89C8 "),
259
266
  vue.createVNode(_component_ElButton, {
260
267
  disabled: !_ctx.previewable,
268
+ class: vue.normalizeClass(_ctx.nsUpload.be("list", "item-file-action-preview")),
261
269
  plain: "",
262
270
  size: "small",
263
271
  round: "",
264
272
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handlePreview(_ctx.file))
265
273
  }, {
266
- default: vue.withCtx(() => _cache[8] || (_cache[8] = [
267
- vue.createTextVNode(" \u9884\u89C8 ")
268
- ])),
269
- _: 1,
270
- __: [8]
271
- }, 8, ["disabled"]),
274
+ default: vue.withCtx(() => [
275
+ vue.createTextVNode(
276
+ vue.toDisplayString(_ctx.previewLabel),
277
+ 1
278
+ /* TEXT */
279
+ )
280
+ ]),
281
+ _: 1
282
+ /* STABLE */
283
+ }, 8, ["disabled", "class"]),
272
284
  vue.createCommentVNode(" \u4E0B\u8F7D "),
273
285
  vue.createVNode(_component_ElButton, {
274
286
  plain: "",
@@ -277,11 +289,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
277
289
  type: "primary",
278
290
  onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleDownload(_ctx.file))
279
291
  }, {
280
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
292
+ default: vue.withCtx(() => _cache[8] || (_cache[8] = [
281
293
  vue.createTextVNode(" \u4E0B\u8F7D ")
282
294
  ])),
283
295
  _: 1,
284
- __: [9]
296
+ __: [8]
285
297
  })
286
298
  ],
287
299
  2
@@ -552,8 +564,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
552
564
  "on-preview": _ctx.onPreview,
553
565
  preview: _ctx.preview,
554
566
  "on-download": _ctx.onDownload,
567
+ "preview-label": _ctx.previewLabel,
555
568
  onRemove: _ctx.handleRemove
556
- }, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "onRemove"])
569
+ }, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "preview-label", "onRemove"])
557
570
  ]),
558
571
  default: vue.withCtx(() => [
559
572
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
@@ -20,6 +20,10 @@ const props = {
20
20
  default: ""
21
21
  },
22
22
  preview: null,
23
+ previewLabel: {
24
+ type: String,
25
+ default: "\u9884\u89C8"
26
+ },
23
27
  beforeUpload: {
24
28
  type: Function,
25
29
  default: void 0
@@ -106,6 +110,10 @@ var _sfc_main$2 = defineComponent({
106
110
  preview: {
107
111
  type: [Boolean, Function],
108
112
  default: false
113
+ },
114
+ previewLabel: {
115
+ type: String,
116
+ default: "\u9884\u89C8"
109
117
  }
110
118
  },
111
119
  emits: {
@@ -251,20 +259,24 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
251
259
  class: normalizeClass(_ctx.nsUpload.be("list", "item-file-actions"))
252
260
  },
253
261
  [
254
- createCommentVNode(" \u9884\u89C8 "),
255
262
  createVNode(_component_ElButton, {
256
263
  disabled: !_ctx.previewable,
264
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-file-action-preview")),
257
265
  plain: "",
258
266
  size: "small",
259
267
  round: "",
260
268
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handlePreview(_ctx.file))
261
269
  }, {
262
- default: withCtx(() => _cache[8] || (_cache[8] = [
263
- createTextVNode(" \u9884\u89C8 ")
264
- ])),
265
- _: 1,
266
- __: [8]
267
- }, 8, ["disabled"]),
270
+ default: withCtx(() => [
271
+ createTextVNode(
272
+ toDisplayString(_ctx.previewLabel),
273
+ 1
274
+ /* TEXT */
275
+ )
276
+ ]),
277
+ _: 1
278
+ /* STABLE */
279
+ }, 8, ["disabled", "class"]),
268
280
  createCommentVNode(" \u4E0B\u8F7D "),
269
281
  createVNode(_component_ElButton, {
270
282
  plain: "",
@@ -273,11 +285,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
273
285
  type: "primary",
274
286
  onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleDownload(_ctx.file))
275
287
  }, {
276
- default: withCtx(() => _cache[9] || (_cache[9] = [
288
+ default: withCtx(() => _cache[8] || (_cache[8] = [
277
289
  createTextVNode(" \u4E0B\u8F7D ")
278
290
  ])),
279
291
  _: 1,
280
- __: [9]
292
+ __: [8]
281
293
  })
282
294
  ],
283
295
  2
@@ -548,8 +560,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
548
560
  "on-preview": _ctx.onPreview,
549
561
  preview: _ctx.preview,
550
562
  "on-download": _ctx.onDownload,
563
+ "preview-label": _ctx.previewLabel,
551
564
  onRemove: _ctx.handleRemove
552
- }, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "onRemove"])
565
+ }, null, 8, ["file", "list-type", "disabled", "on-preview", "preview", "on-download", "preview-label", "onRemove"])
553
566
  ]),
554
567
  default: withCtx(() => [
555
568
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -8,6 +8,10 @@ export declare const props: {
8
8
  default: string;
9
9
  };
10
10
  preview: any;
11
+ previewLabel: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
11
15
  beforeUpload: {
12
16
  type: FunctionConstructor;
13
17
  default: any;
@@ -280,7 +284,7 @@ export declare const props: {
280
284
  readonly default: true;
281
285
  };
282
286
  };
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]; }>;
287
+ 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<"previewLabel", 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<"previewLabel", 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<"previewLabel", 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<"previewLabel", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2>]: T2[k]; }[P]; }>;
284
288
  export declare const emits: {
285
289
  'update:fileList': any;
286
290
  remove: (e: UploadFile) => UploadFile;
@@ -26,6 +26,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
26
26
  type: (BooleanConstructor | FunctionConstructor)[];
27
27
  default: boolean;
28
28
  };
29
+ previewLabel: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
29
33
  }>, {
30
34
  handleRemove: (file?: UploadFile) => void;
31
35
  t: import("element-plus").Translator;
@@ -95,6 +99,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
95
99
  type: (BooleanConstructor | FunctionConstructor)[];
96
100
  default: boolean;
97
101
  };
102
+ previewLabel: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
98
106
  }>> & Readonly<{
99
107
  onRemove?: (e: UploadFile) => any;
100
108
  }>, {
@@ -103,6 +111,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
103
111
  listType: "text" | "picture" | "picture-card";
104
112
  file: UploadFile;
105
113
  preview: boolean | Function;
114
+ previewLabel: string;
106
115
  onDownload: (arg: UploadFile) => any;
107
116
  }, {}, {
108
117
  ElProgress: {
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7
7
  default: string;
8
8
  };
9
9
  preview: any;
10
+ previewLabel: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  beforeUpload: {
11
15
  type: FunctionConstructor;
12
16
  default: any;
@@ -326,6 +330,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
326
330
  default: string;
327
331
  };
328
332
  preview: any;
333
+ previewLabel: {
334
+ type: StringConstructor;
335
+ default: string;
336
+ };
329
337
  beforeUpload: {
330
338
  type: FunctionConstructor;
331
339
  default: any;
@@ -632,6 +640,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
632
640
  httpRequest: import("element-plus").UploadRequestHandler;
633
641
  tip: string;
634
642
  preview: any;
643
+ previewLabel: string;
635
644
  onDownload: (arg: UploadFile) => any;
636
645
  exceedable: boolean;
637
646
  confirmExceed: boolean;
@@ -1293,6 +1302,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1293
1302
  type: (BooleanConstructor | FunctionConstructor)[];
1294
1303
  default: boolean;
1295
1304
  };
1305
+ previewLabel: {
1306
+ type: StringConstructor;
1307
+ default: string;
1308
+ };
1296
1309
  }>, {
1297
1310
  handleRemove: (file?: UploadFile) => void;
1298
1311
  t: import("element-plus").Translator;
@@ -1362,6 +1375,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1362
1375
  type: (BooleanConstructor | FunctionConstructor)[];
1363
1376
  default: boolean;
1364
1377
  };
1378
+ previewLabel: {
1379
+ type: StringConstructor;
1380
+ default: string;
1381
+ };
1365
1382
  }>> & Readonly<{
1366
1383
  onRemove?: (e: UploadFile) => any;
1367
1384
  }>, {
@@ -1370,6 +1387,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1370
1387
  listType: "text" | "picture" | "picture-card";
1371
1388
  file: UploadFile;
1372
1389
  preview: boolean | Function;
1390
+ previewLabel: string;
1373
1391
  onDownload: (arg: UploadFile) => any;
1374
1392
  }, {}, {
1375
1393
  ElProgress: {
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4
4
  default: string;
5
5
  };
6
6
  preview: any;
7
+ previewLabel: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
7
11
  beforeUpload: {
8
12
  type: FunctionConstructor;
9
13
  default: any;
@@ -277,6 +281,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
277
281
  default: string;
278
282
  };
279
283
  preview: any;
284
+ previewLabel: {
285
+ type: StringConstructor;
286
+ default: string;
287
+ };
280
288
  beforeUpload: {
281
289
  type: FunctionConstructor;
282
290
  default: any;
@@ -583,6 +591,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
583
591
  httpRequest: import("element-plus").UploadRequestHandler;
584
592
  tip: string;
585
593
  preview: any;
594
+ previewLabel: string;
586
595
  onDownload: (arg: import("element-plus").UploadFile) => any;
587
596
  exceedable: boolean;
588
597
  confirmExceed: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.16.8",
3
+ "version": "2.16.9",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {