@vunk/form 2.16.7 → 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.
@@ -52,6 +52,7 @@ const props = {
52
52
  slots: null,
53
53
  /**
54
54
  * @description 若 option中含有该字段内容,则渲染为 Group
55
+ * @deprecated use props.options instead
55
56
  */
56
57
  optionChildrenProp: {
57
58
  type: String,
@@ -85,6 +86,18 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
85
86
  optionChildrenProp: {
86
87
  type: String,
87
88
  default: ""
89
+ },
90
+ labelProp: {
91
+ type: String,
92
+ default: "label"
93
+ },
94
+ valueProp: {
95
+ type: String,
96
+ default: "value"
97
+ },
98
+ disabledProp: {
99
+ type: String,
100
+ default: "disabled"
88
101
  }
89
102
  },
90
103
  setup(props, {
@@ -94,24 +107,24 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
94
107
  let _slot;
95
108
  const isGroup = props.optionChildrenProp && Array.isArray(item[props.optionChildrenProp]) && item[props.optionChildrenProp].length > 0;
96
109
  return isGroup ? vue.createVNode(elementPlus.ElOptionGroup, {
97
- "label": item.label,
98
- "key": item.value || item.label,
99
- "disabled": item.disabled
110
+ "label": item[props.labelProp],
111
+ "key": item[props.valueProp] || item[props.labelProp],
112
+ "disabled": item[props.disabledProp]
100
113
  }, _isSlot(_slot = item[props.optionChildrenProp].map(childOption => vue.createVNode(ItemView, vue.mergeProps({
101
114
  "key": childOption.value
102
115
  }, childOption), null))) ? _slot : {
103
116
  default: () => [_slot]
104
117
  }) : vue.createVNode(elementPlus.ElOption, {
105
- "key": item.value,
106
- "value": item.value,
118
+ "key": item[props.valueProp] || item[props.labelProp],
119
+ "value": item[props.valueProp],
107
120
  "class": item.class,
108
121
  "created": item.created,
109
- "disabled": item.disabled,
110
- "label": item.label,
122
+ "disabled": item[props.disabledProp],
123
+ "label": item[props.labelProp],
111
124
  "ref": item.ref,
112
125
  "style": item.style
113
126
  }, {
114
- default: () => slots.option ? slots.option(item) : item.label
127
+ default: () => slots.option ? slots.option(item) : item[props.labelProp]
115
128
  });
116
129
  };
117
130
  return () => {
@@ -230,14 +243,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
230
243
  default: vue.withCtx(() => [
231
244
  vue.createVNode(_component_Options, {
232
245
  data: _ctx.selectOptions,
233
- "option-children-prop": _ctx.optionChildrenProp
246
+ "option-children-prop": _ctx.props.options ?? _ctx.optionChildrenProp,
247
+ "label-prop": _ctx.props.label,
248
+ "value-prop": _ctx.props.value,
249
+ "disabled-prop": _ctx.props.disabled
234
250
  }, {
235
251
  option: vue.withCtx((e) => [
236
252
  vue.renderSlot(_ctx.$slots, "option", vue.normalizeProps(vue.guardReactiveProps(e)))
237
253
  ]),
238
254
  _: 3
239
255
  /* FORWARDED */
240
- }, 8, ["data", "option-children-prop"]),
256
+ }, 8, ["data", "option-children-prop", "label-prop", "value-prop", "disabled-prop"]),
241
257
  vue.renderSlot(_ctx.$slots, "footer")
242
258
  ]),
243
259
  _: 2
@@ -48,6 +48,7 @@ const props = {
48
48
  slots: null,
49
49
  /**
50
50
  * @description 若 option中含有该字段内容,则渲染为 Group
51
+ * @deprecated use props.options instead
51
52
  */
52
53
  optionChildrenProp: {
53
54
  type: String,
@@ -81,6 +82,18 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
81
82
  optionChildrenProp: {
82
83
  type: String,
83
84
  default: ""
85
+ },
86
+ labelProp: {
87
+ type: String,
88
+ default: "label"
89
+ },
90
+ valueProp: {
91
+ type: String,
92
+ default: "value"
93
+ },
94
+ disabledProp: {
95
+ type: String,
96
+ default: "disabled"
84
97
  }
85
98
  },
86
99
  setup(props, {
@@ -90,24 +103,24 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
90
103
  let _slot;
91
104
  const isGroup = props.optionChildrenProp && Array.isArray(item[props.optionChildrenProp]) && item[props.optionChildrenProp].length > 0;
92
105
  return isGroup ? createVNode(ElOptionGroup, {
93
- "label": item.label,
94
- "key": item.value || item.label,
95
- "disabled": item.disabled
106
+ "label": item[props.labelProp],
107
+ "key": item[props.valueProp] || item[props.labelProp],
108
+ "disabled": item[props.disabledProp]
96
109
  }, _isSlot(_slot = item[props.optionChildrenProp].map(childOption => createVNode(ItemView, mergeProps({
97
110
  "key": childOption.value
98
111
  }, childOption), null))) ? _slot : {
99
112
  default: () => [_slot]
100
113
  }) : createVNode(ElOption, {
101
- "key": item.value,
102
- "value": item.value,
114
+ "key": item[props.valueProp] || item[props.labelProp],
115
+ "value": item[props.valueProp],
103
116
  "class": item.class,
104
117
  "created": item.created,
105
- "disabled": item.disabled,
106
- "label": item.label,
118
+ "disabled": item[props.disabledProp],
119
+ "label": item[props.labelProp],
107
120
  "ref": item.ref,
108
121
  "style": item.style
109
122
  }, {
110
- default: () => slots.option ? slots.option(item) : item.label
123
+ default: () => slots.option ? slots.option(item) : item[props.labelProp]
111
124
  });
112
125
  };
113
126
  return () => {
@@ -226,14 +239,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
226
239
  default: withCtx(() => [
227
240
  createVNode(_component_Options, {
228
241
  data: _ctx.selectOptions,
229
- "option-children-prop": _ctx.optionChildrenProp
242
+ "option-children-prop": _ctx.props.options ?? _ctx.optionChildrenProp,
243
+ "label-prop": _ctx.props.label,
244
+ "value-prop": _ctx.props.value,
245
+ "disabled-prop": _ctx.props.disabled
230
246
  }, {
231
247
  option: withCtx((e) => [
232
248
  renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps(e)))
233
249
  ]),
234
250
  _: 3
235
251
  /* FORWARDED */
236
- }, 8, ["data", "option-children-prop"]),
252
+ }, 8, ["data", "option-children-prop", "label-prop", "value-prop", "disabled-prop"]),
237
253
  renderSlot(_ctx.$slots, "footer")
238
254
  ]),
239
255
  _: 2
@@ -1558,6 +1558,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1558
1558
  type: StringConstructor;
1559
1559
  default: string;
1560
1560
  };
1561
+ labelProp: {
1562
+ type: StringConstructor;
1563
+ default: string;
1564
+ };
1565
+ valueProp: {
1566
+ type: StringConstructor;
1567
+ default: string;
1568
+ };
1569
+ disabledProp: {
1570
+ type: StringConstructor;
1571
+ default: string;
1572
+ };
1561
1573
  }>, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1562
1574
  data: {
1563
1575
  type: import("vue").PropType<import("@vunk/shared").NormalObject[]>;
@@ -1567,8 +1579,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1567
1579
  type: StringConstructor;
1568
1580
  default: string;
1569
1581
  };
1582
+ labelProp: {
1583
+ type: StringConstructor;
1584
+ default: string;
1585
+ };
1586
+ valueProp: {
1587
+ type: StringConstructor;
1588
+ default: string;
1589
+ };
1590
+ disabledProp: {
1591
+ type: StringConstructor;
1592
+ default: string;
1593
+ };
1570
1594
  }>> & Readonly<{}>, {
1571
1595
  optionChildrenProp: string;
1596
+ labelProp: string;
1597
+ valueProp: string;
1598
+ disabledProp: string;
1572
1599
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1573
1600
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1574
1601
  export default _default;
@@ -45,6 +45,7 @@ export declare const props: {
45
45
  slots: any;
46
46
  /**
47
47
  * @description 若 option中含有该字段内容,则渲染为 Group
48
+ * @deprecated use props.options instead
48
49
  */
49
50
  optionChildrenProp: {
50
51
  type: StringConstructor;
@@ -9,6 +9,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  type: StringConstructor;
10
10
  default: string;
11
11
  };
12
+ labelProp: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ valueProp: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ disabledProp: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
12
24
  }>, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
25
  data: {
14
26
  type: PropType<NormalObject[]>;
@@ -18,7 +30,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
18
30
  type: StringConstructor;
19
31
  default: string;
20
32
  };
33
+ labelProp: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ valueProp: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ disabledProp: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
21
45
  }>> & Readonly<{}>, {
22
46
  optionChildrenProp: string;
47
+ labelProp: string;
48
+ valueProp: string;
49
+ disabledProp: string;
23
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
51
  export default _default;
@@ -11,3 +11,9 @@ export interface Source<P = string> extends VueComponentPropsType<typeof VkfSele
11
11
  prop: P;
12
12
  templateType: 'VkfSelect';
13
13
  }
14
+ export interface Props {
15
+ label?: string;
16
+ value?: string;
17
+ disabled?: string;
18
+ options?: string;
19
+ }
@@ -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.7",
3
+ "version": "2.16.9",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {