@vunk/form 2.19.23 → 2.19.25

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.
Files changed (100) hide show
  1. package/components/ai-provider/index.cjs +1 -1
  2. package/components/ai-provider/index.d.ts +2 -2
  3. package/components/ai-provider/index.mjs +98 -44
  4. package/components/ai-provider/src/ctx.d.ts +9 -1
  5. package/components/ai-provider/src/index.vue.d.ts +43 -6
  6. package/components/ai-provider/src/types.d.ts +45 -0
  7. package/components/ai-provider/src/use.d.ts +3 -1
  8. package/components/api-tables-select/src/ctx.d.ts +4 -4
  9. package/components/api-tables-select/src/index.vue.d.ts +5 -5
  10. package/components/button/src/ctx.d.ts +4 -4
  11. package/components/button/src/index.vue.d.ts +10 -10
  12. package/components/card-input-collection/src/core.vue.d.ts +10 -10
  13. package/components/card-input-collection/src/ctx.d.ts +4 -4
  14. package/components/card-input-collection/src/index.vue.d.ts +10 -10
  15. package/components/cascader/src/ctx.d.ts +5 -5
  16. package/components/cascader/src/index.vue.d.ts +9 -9
  17. package/components/checkbox/src/ctx.d.ts +5 -5
  18. package/components/checkbox/src/index.vue.d.ts +10 -10
  19. package/components/color-picker/src/ctx.d.ts +4 -4
  20. package/components/color-picker/src/index.vue.d.ts +9 -9
  21. package/components/components.css +1 -1
  22. package/components/date-picker/src/ctx.d.ts +5 -5
  23. package/components/date-picker/src/index.vue.d.ts +9 -9
  24. package/components/date-picker-range/src/ctx.d.ts +4 -4
  25. package/components/date-picker-range/src/index.vue.d.ts +18 -18
  26. package/components/dialog-input-collection/src/ctx.d.ts +4 -4
  27. package/components/dialog-input-collection/src/index.vue.d.ts +9 -9
  28. package/components/download-plus/src/ctx.d.ts +4 -4
  29. package/components/download-plus/src/index.vue.d.ts +10 -10
  30. package/components/editable-text/src/ctx.d.ts +4 -4
  31. package/components/editable-text/src/index.vue.d.ts +9 -9
  32. package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
  33. package/components/esri-input-geojson/src/ctx.d.ts +5 -5
  34. package/components/esri-input-geojson/src/index.vue.d.ts +20 -20
  35. package/components/form/src/ctx.d.ts +1 -1
  36. package/components/form/src/index.vue.d.ts +1 -1
  37. package/components/form-item/index.cjs +1 -1
  38. package/components/form-item/index.mjs +218 -144
  39. package/components/form-item/src/core.vue.d.ts +7 -7
  40. package/components/form-item/src/ctx.d.ts +1 -1
  41. package/components/form-item/src/index.vue.d.ts +1 -1
  42. package/components/form-item/src/use.d.ts +5 -1
  43. package/components/form-item/src/validate-guard.vue.d.ts +25 -0
  44. package/components/information-collection/src/ctx.d.ts +4 -4
  45. package/components/information-collection/src/index.vue.d.ts +9 -9
  46. package/components/information-tag/src/index.vue.d.ts +1 -1
  47. package/components/input/src/ctx.d.ts +5 -5
  48. package/components/input/src/index.vue.d.ts +10 -10
  49. package/components/input-array/src/ctx.d.ts +4 -4
  50. package/components/input-array/src/index.vue.d.ts +9 -9
  51. package/components/input-collection/src/core.vue.d.ts +13 -13
  52. package/components/input-collection/src/ctx.d.ts +4 -4
  53. package/components/input-collection/src/index.vue.d.ts +13 -13
  54. package/components/input-file/src/index.vue.d.ts +10 -10
  55. package/components/input-link/src/ctx.d.ts +4 -4
  56. package/components/input-link/src/index.vue.d.ts +19 -19
  57. package/components/input-number/src/ctx.d.ts +5 -5
  58. package/components/input-number/src/index.vue.d.ts +10 -10
  59. package/components/input-tag/src/ctx.d.ts +5 -5
  60. package/components/input-tag/src/index.vue.d.ts +10 -10
  61. package/components/monaco-editor/src/ctx.d.ts +4 -4
  62. package/components/monaco-editor/src/index.vue.d.ts +10 -10
  63. package/components/radio/src/ctx.d.ts +4 -4
  64. package/components/radio/src/index.vue.d.ts +10 -10
  65. package/components/radio/src/wraper.vue.d.ts +9 -9
  66. package/components/select/src/core.vue.d.ts +10 -10
  67. package/components/select/src/ctx.d.ts +5 -5
  68. package/components/select/src/index.vue.d.ts +9 -9
  69. package/components/slider/src/ctx.d.ts +4 -4
  70. package/components/slider/src/index.vue.d.ts +9 -9
  71. package/components/switch/src/ctx.d.ts +4 -4
  72. package/components/switch/src/index.vue.d.ts +9 -9
  73. package/components/tables-select/src/ctx.d.ts +5 -5
  74. package/components/tables-select/src/index.vue.d.ts +6 -6
  75. package/components/templates-default/src/index.vue.d.ts +141 -141
  76. package/components/templates-esri/src/index.vue.d.ts +20 -20
  77. package/components/templates-variant/src/index.vue.d.ts +18 -18
  78. package/components/time-picker/src/ctx.d.ts +5 -5
  79. package/components/time-picker/src/index.vue.d.ts +9 -9
  80. package/components/upload/index.cjs +1 -1
  81. package/components/upload/index.mjs +106 -104
  82. package/components/upload/src/ctx.d.ts +5 -5
  83. package/components/upload/src/index.vue.d.ts +12 -12
  84. package/components/upload/src/wraper.vue.d.ts +10 -10
  85. package/components/upload-plus/src/ctx.d.ts +4 -4
  86. package/components/upload-plus/src/index.vue.d.ts +9 -9
  87. package/components/van-cascader/src/ctx.d.ts +4 -4
  88. package/components/van-cascader/src/index.vue.d.ts +9 -9
  89. package/components/var-datetime-picker/src/ctx.d.ts +4 -4
  90. package/components/var-datetime-picker/src/index.vue.d.ts +10 -10
  91. package/components/vditor/src/ctx.d.ts +4 -4
  92. package/components/vditor/src/index.vue.d.ts +10 -10
  93. package/index.css +1 -1
  94. package/locale/index.cjs +1 -1
  95. package/locale/index.mjs +9 -3
  96. package/locale/lang/ar.d.ts +2 -0
  97. package/locale/lang/en.d.ts +2 -0
  98. package/locale/lang/zh-cn.d.ts +2 -0
  99. package/package.json +1 -1
  100. package/shared/element-plus/ctx.d.ts +1 -1
@@ -1,10 +1,10 @@
1
- import { defineComponent as T, computed as D, resolveComponent as d, openBlock as r, createElementBlock as w, Fragment as S, normalizeClass as l, createBlock as C, createCommentVNode as v, createElementVNode as E, withModifiers as F, createVNode as s, withCtx as i, toDisplayString as I, createTextVNode as B, normalizeStyle as N, shallowRef as M, normalizeProps as Z, guardReactiveProps as G, mergeProps as q, createSlots as A, renderSlot as H, h as J } from "vue";
1
+ import { defineComponent as B, computed as D, resolveComponent as r, openBlock as d, createElementBlock as k, Fragment as S, normalizeClass as n, createBlock as E, createCommentVNode as v, createElementVNode as I, withModifiers as F, createVNode as s, withCtx as i, toDisplayString as P, createTextVNode as T, normalizeStyle as N, shallowRef as M, normalizeProps as Z, guardReactiveProps as G, mergeProps as q, createSlots as A, renderSlot as H, h as J } from "vue";
2
2
  import { _VkfFormItemCtx as V, VkfFormItem as K } from "@vunk/form/components/form-item";
3
3
  import { bindPropsFactory as Q, onEmitsFactory as W, vOn as X } from "@vunk/core/shared/utils-vue";
4
4
  import { uploadProps as Y, ElButton as _, ElIcon as x, ElProgress as ee, useNamespace as R, ElLink as oe, ElUpload as le, ElMessageBox as ne, genFileId as se } from "element-plus";
5
5
  import { pickObject as te } from "@vunk/core/shared/utils-object";
6
6
  import { createUploadBindProps as ae } from "@vunk/form/shared/element-plus";
7
- import { f as ie, h as re, i as de, j as pe, d as ue, z as me, k as ce } from "../index-DCNYT7Wv.mjs";
7
+ import { f as ie, h as de, i as re, j as pe, d as ue, z as me, k as ce } from "../index-DCNYT7Wv.mjs";
8
8
  import { RestFetch as fe } from "@vunk/core/shared/utils-fetch";
9
9
  import { NOOP as ve } from "@vunk/core/shared/utils-function";
10
10
  import { isCallable as ye } from "@vunk/shared/function";
@@ -65,7 +65,7 @@ const $ = {
65
65
  props: $
66
66
  }, Symbol.toStringTag, { value: "Module" })), ge = new fe({
67
67
  baseURL: ""
68
- }), Ue = T({
68
+ }), Ue = B({
69
69
  components: {
70
70
  ElProgress: ee,
71
71
  ElIcon: x,
@@ -73,8 +73,8 @@ const $ = {
73
73
  ZoomIn: me,
74
74
  Delete: ue,
75
75
  Close: pe,
76
- CircleCheck: de,
77
- Document: re,
76
+ CircleCheck: re,
77
+ Document: de,
78
78
  Download: ie,
79
79
  ElButton: _
80
80
  },
@@ -112,25 +112,25 @@ const $ = {
112
112
  remove: (e) => e
113
113
  },
114
114
  setup(e, { emit: o }) {
115
- const k = R("upload"), p = R("icon"), { tr: U } = O(), u = (t = e.file) => {
115
+ const g = R("upload"), u = R("icon"), { tr: U } = O(), m = (t = e.file) => {
116
116
  o("remove", t);
117
117
  }, y = (t = e.file) => {
118
118
  if (e.onDownload) {
119
119
  e.onDownload(t);
120
120
  return;
121
121
  }
122
- let n = "";
123
- t.url ? n = t.url : t.raw && (n = window.URL.createObjectURL(t.raw)), n && ge.download({
124
- url: n,
122
+ let l = "";
123
+ t.url ? l = t.url : t.raw && (l = window.URL.createObjectURL(t.raw)), l && ge.download({
124
+ url: l,
125
125
  fileName: t.name
126
126
  }, {
127
127
  method: "GET"
128
128
  });
129
129
  }, a = D(() => ye(e.preview) ? e.preview(e.file) : e.preview), b = D(() => e.previewLabel || U("el.upload.preview", "预览"));
130
130
  return {
131
- handleRemove: u,
132
- nsIcon: p,
133
- nsUpload: k,
131
+ handleRemove: m,
132
+ nsIcon: u,
133
+ nsUpload: g,
134
134
  handleDownload: y,
135
135
  handlePreview: (t = e.file) => {
136
136
  a.value && e.onPreview(t);
@@ -141,33 +141,33 @@ const $ = {
141
141
  };
142
142
  }
143
143
  }), he = ["src"];
144
- function Ce(e, o, k, p, U, u) {
145
- const y = d("Document"), a = d("ElIcon"), b = d("Download"), h = d("ElButton"), t = d("ElProgress"), n = d("CircleCheck"), m = d("Check"), c = d("Close"), g = d("ZoomIn"), P = d("Delete");
146
- return r(), w(S, null, [
147
- e.listType === "picture" || e.file.status !== "uploading" && e.listType === "picture-card" ? (r(), w(S, { key: 0 }, [
148
- /\.(svg|png|jpg|jpeg)$/.test(e.file.name) ? (r(), w("img", {
144
+ function Ce(e, o, g, u, U, m) {
145
+ const y = r("Document"), a = r("ElIcon"), b = r("Download"), h = r("ElButton"), t = r("ElProgress"), l = r("CircleCheck"), c = r("Check"), f = r("Close"), w = r("ZoomIn"), C = r("Delete");
146
+ return d(), k(S, null, [
147
+ e.listType === "picture" || e.file.status !== "uploading" && e.listType === "picture-card" ? (d(), k(S, { key: 0 }, [
148
+ /\.(svg|png|jpg|jpeg)$/.test(e.file.name) ? (d(), k("img", {
149
149
  key: 0,
150
- class: l(e.nsUpload.be("list", "item-thumbnail")),
150
+ class: n(e.nsUpload.be("list", "item-thumbnail")),
151
151
  src: e.file.url,
152
152
  alt: ""
153
- }, null, 10, he)) : (r(), C(y, {
153
+ }, null, 10, he)) : (d(), E(y, {
154
154
  key: 1,
155
- class: l([
155
+ class: n([
156
156
  e.nsUpload.be("list", "item-thumbnail"),
157
157
  e.nsIcon.m("document")
158
158
  ])
159
159
  }, null, 8, ["class"]))
160
160
  ], 64)) : v("", !0),
161
- e.listType !== "picture-card" || e.file.status === "uploading" ? (r(), w("div", {
161
+ e.listType !== "picture-card" || e.file.status === "uploading" ? (d(), k("div", {
162
162
  key: 1,
163
- class: l(e.nsUpload.be("list", "item-info"))
163
+ class: n(e.nsUpload.be("list", "item-info"))
164
164
  }, [
165
- E("a", {
166
- class: l(e.nsUpload.be("list", "item-name")),
167
- onClick: o[1] || (o[1] = F((f) => e.handlePreview(e.file), ["prevent"]))
165
+ I("a", {
166
+ class: n(e.nsUpload.be("list", "item-name")),
167
+ onClick: o[1] || (o[1] = F((p) => e.handlePreview(e.file), ["prevent"]))
168
168
  }, [
169
169
  s(a, {
170
- class: l(e.nsIcon.m("document"))
170
+ class: n(e.nsIcon.m("document"))
171
171
  }, {
172
172
  default: i(() => [
173
173
  s(y)
@@ -175,35 +175,35 @@ function Ce(e, o, k, p, U, u) {
175
175
  _: 1
176
176
  }, 8, ["class"]),
177
177
  s(a, {
178
- class: l([
178
+ class: n([
179
179
  e.nsIcon.m("download"),
180
180
  e.nsIcon.m("download-primary")
181
181
  ]),
182
- onClick: o[0] || (o[0] = F((f) => e.handleDownload(e.file), ["stop"]))
182
+ onClick: o[0] || (o[0] = F((p) => e.handleDownload(e.file), ["stop"]))
183
183
  }, {
184
184
  default: i(() => [
185
185
  s(b)
186
186
  ]),
187
187
  _: 1
188
188
  }, 8, ["class"]),
189
- E("span", {
190
- class: l(e.nsUpload.be("list", "item-file-name"))
191
- }, I(e.file.name), 3)
189
+ I("span", {
190
+ class: n(e.nsUpload.be("list", "item-file-name"))
191
+ }, P(e.file.name), 3)
192
192
  ], 2),
193
- e.listType === "picture" ? (r(), w("div", {
193
+ e.listType === "picture" ? (d(), k("div", {
194
194
  key: 0,
195
- class: l(e.nsUpload.be("list", "item-file-actions"))
195
+ class: n(e.nsUpload.be("list", "item-file-actions"))
196
196
  }, [
197
197
  s(h, {
198
198
  disabled: !e.previewable,
199
- class: l(e.nsUpload.be("list", "item-file-action-preview")),
199
+ class: n(e.nsUpload.be("list", "item-file-action-preview")),
200
200
  plain: "",
201
201
  size: "small",
202
202
  round: "",
203
- onClick: o[2] || (o[2] = (f) => e.handlePreview(e.file))
203
+ onClick: o[2] || (o[2] = (p) => e.handlePreview(e.file))
204
204
  }, {
205
205
  default: i(() => [
206
- B(I(e.previewText), 1)
206
+ T(P(e.previewText), 1)
207
207
  ]),
208
208
  _: 1
209
209
  }, 8, ["disabled", "class"]),
@@ -212,15 +212,15 @@ function Ce(e, o, k, p, U, u) {
212
212
  size: "small",
213
213
  round: "",
214
214
  type: "primary",
215
- onClick: o[3] || (o[3] = (f) => e.handleDownload(e.file))
215
+ onClick: o[3] || (o[3] = (p) => e.handleDownload(e.file))
216
216
  }, {
217
217
  default: i(() => [
218
- B(I(e.tr("vkf.common.download", "下载")), 1)
218
+ T(P(e.tr("vkf.common.download", "下载")), 1)
219
219
  ]),
220
220
  _: 1
221
221
  })
222
222
  ], 2)) : v("", !0),
223
- e.file.status === "uploading" ? (r(), C(t, {
223
+ e.file.status === "uploading" ? (d(), E(t, {
224
224
  key: 1,
225
225
  type: e.listType === "picture-card" ? "circle" : "line",
226
226
  "stroke-width": e.listType === "picture-card" ? 6 : 2,
@@ -228,64 +228,64 @@ function Ce(e, o, k, p, U, u) {
228
228
  style: N(e.listType === "picture-card" ? "" : "margin-top: 0.5rem")
229
229
  }, null, 8, ["type", "stroke-width", "percentage", "style"])) : v("", !0)
230
230
  ], 2)) : v("", !0),
231
- E("label", {
232
- class: l(e.nsUpload.be("list", "item-status-label"))
231
+ I("label", {
232
+ class: n(e.nsUpload.be("list", "item-status-label"))
233
233
  }, [
234
- e.listType === "text" ? (r(), C(a, {
234
+ e.listType === "text" ? (d(), E(a, {
235
235
  key: 0,
236
- class: l([
236
+ class: n([
237
237
  e.nsIcon.m("upload-success"),
238
238
  e.nsIcon.m("circle-check")
239
239
  ])
240
240
  }, {
241
241
  default: i(() => [
242
- s(n)
242
+ s(l)
243
243
  ]),
244
244
  _: 1
245
- }, 8, ["class"])) : ["picture-card", "picture"].includes(e.listType) ? (r(), C(a, {
245
+ }, 8, ["class"])) : ["picture-card", "picture"].includes(e.listType) ? (d(), E(a, {
246
246
  key: 1,
247
- class: l([e.nsIcon.m("upload-success"), e.nsIcon.m("check")])
247
+ class: n([e.nsIcon.m("upload-success"), e.nsIcon.m("check")])
248
248
  }, {
249
249
  default: i(() => [
250
- s(m)
250
+ s(c)
251
251
  ]),
252
252
  _: 1
253
253
  }, 8, ["class"])) : v("", !0)
254
254
  ], 2),
255
- e.disabled ? v("", !0) : (r(), C(a, {
255
+ e.disabled ? v("", !0) : (d(), E(a, {
256
256
  key: 2,
257
- class: l(e.nsIcon.m("close")),
258
- onClick: o[4] || (o[4] = (f) => e.handleRemove(e.file))
257
+ class: n(e.nsIcon.m("close")),
258
+ onClick: o[4] || (o[4] = (p) => e.handleRemove(e.file))
259
259
  }, {
260
260
  default: i(() => [
261
- s(c)
261
+ s(f)
262
262
  ]),
263
263
  _: 1
264
264
  }, 8, ["class"])),
265
- e.listType === "picture-card" ? (r(), w("span", {
265
+ e.listType === "picture-card" ? (d(), k("span", {
266
266
  key: 3,
267
- class: l(e.nsUpload.be("list", "item-actions"))
267
+ class: n(e.nsUpload.be("list", "item-actions"))
268
268
  }, [
269
- e.previewable ? (r(), w("span", {
269
+ e.previewable ? (d(), k("span", {
270
270
  key: 0,
271
- class: l(e.nsUpload.be("list", "item-preview")),
272
- onClick: o[5] || (o[5] = (f) => e.handlePreview(e.file))
271
+ class: n(e.nsUpload.be("list", "item-preview")),
272
+ onClick: o[5] || (o[5] = (p) => e.handlePreview(e.file))
273
273
  }, [
274
274
  s(a, {
275
- class: l(e.nsIcon.m("zoom-in"))
275
+ class: n(e.nsIcon.m("zoom-in"))
276
276
  }, {
277
277
  default: i(() => [
278
- s(g)
278
+ s(w)
279
279
  ]),
280
280
  _: 1
281
281
  }, 8, ["class"])
282
282
  ], 2)) : v("", !0),
283
- E("span", {
284
- class: l(e.nsUpload.be("list", "item-download")),
285
- onClick: o[6] || (o[6] = (f) => e.handleDownload(e.file))
283
+ I("span", {
284
+ class: n(e.nsUpload.be("list", "item-download")),
285
+ onClick: o[6] || (o[6] = (p) => e.handleDownload(e.file))
286
286
  }, [
287
287
  s(a, {
288
- class: l(e.nsIcon.m("download"))
288
+ class: n(e.nsIcon.m("download"))
289
289
  }, {
290
290
  default: i(() => [
291
291
  s(b)
@@ -293,16 +293,16 @@ function Ce(e, o, k, p, U, u) {
293
293
  _: 1
294
294
  }, 8, ["class"])
295
295
  ], 2),
296
- e.disabled ? v("", !0) : (r(), w("span", {
296
+ e.disabled ? v("", !0) : (d(), k("span", {
297
297
  key: 1,
298
- class: l(e.nsUpload.be("list", "item-delete")),
299
- onClick: o[7] || (o[7] = (f) => e.handleRemove(e.file))
298
+ class: n(e.nsUpload.be("list", "item-delete")),
299
+ onClick: o[7] || (o[7] = (p) => e.handleRemove(e.file))
300
300
  }, [
301
301
  s(a, {
302
- class: l(e.nsIcon.m("delete"))
302
+ class: n(e.nsIcon.m("delete"))
303
303
  }, {
304
304
  default: i(() => [
305
- s(P)
305
+ s(C)
306
306
  ]),
307
307
  _: 1
308
308
  }, 8, ["class"])
@@ -310,7 +310,7 @@ function Ce(e, o, k, p, U, u) {
310
310
  ], 2)) : v("", !0)
311
311
  ], 64);
312
312
  }
313
- const Ee = /* @__PURE__ */ j(Ue, [["render", Ce]]), Ie = T({
313
+ const Ee = /* @__PURE__ */ j(Ue, [["render", Ce]]), Ie = B({
314
314
  components: {
315
315
  VkfFormItem: K,
316
316
  ElUpload: le,
@@ -320,56 +320,58 @@ const Ee = /* @__PURE__ */ j(Ue, [["render", Ce]]), Ie = T({
320
320
  props: $,
321
321
  emits: L,
322
322
  setup(e, { emit: o }) {
323
- const k = V.createBindProps(e), { tr: p } = O(), U = ae(e, ["disabled", "fileList", "beforeUpload", "onSuccess"]), u = M(), y = (n) => {
324
- u.value?.handleRemove(n), u.value?.abort(n), o("update:fileList", e.fileList);
325
- }, a = (n, m) => {
323
+ const g = V.createBindProps(e), { tr: u } = O(), U = ae(e, ["disabled", "fileList", "beforeUpload", "onSuccess"]), m = M(), y = (l) => {
324
+ m.value?.handleRemove(l), m.value?.abort(l), o("update:fileList", e.fileList);
325
+ }, a = (l, c) => {
326
326
  if (e.onExceed) {
327
- e.onExceed(n, m);
327
+ e.onExceed(l, c);
328
328
  return;
329
329
  }
330
330
  if (e.exceedable) {
331
- const c = () => {
332
- u.value?.clearFiles(), n.forEach((g) => {
333
- g.uid = se(), u.value?.handleStart(g);
334
- }), u.value?.submit();
331
+ const f = () => {
332
+ m.value?.clearFiles();
333
+ const w = e.limit;
334
+ (w && l.length > w ? l.slice(l.length - w) : l).forEach((p) => {
335
+ p.uid = se(), m.value?.handleStart(p);
336
+ }), m.value?.submit();
335
337
  };
336
338
  e.confirmExceed ? ne.confirm(
337
- p("vkf.upload.exceedConfirm", "已超过最大上传数量限制,是否使用新文件重新上传?"),
338
- p("el.messagebox.title", "提示"),
339
+ u("vkf.upload.exceedConfirm", "已超过最大上传数量限制,是否使用新文件重新上传?"),
340
+ u("el.messagebox.title", "提示"),
339
341
  {
340
- confirmButtonText: p("el.upload.continue", "继续"),
341
- cancelButtonText: p("el.messagebox.cancel", "取消"),
342
+ confirmButtonText: u("el.upload.continue", "继续"),
343
+ cancelButtonText: u("el.messagebox.cancel", "取消"),
342
344
  type: "warning"
343
345
  }
344
- ).then(c) : c();
346
+ ).then(f) : f();
345
347
  }
346
348
  }, b = be(e);
347
349
  return {
348
- formItemBindProps: k,
350
+ formItemBindProps: g,
349
351
  pickObject: te,
350
352
  coreBindProps: U,
351
- uploadRef: u,
353
+ uploadRef: m,
352
354
  handleRemove: y,
353
355
  readonly: b,
354
- onSuccess: (n, m, c) => {
355
- m.raw.progress?.(!0), m.percentage = 100, m.status = "success", e.onSuccess?.(n, m, c);
356
+ onSuccess: (l, c, f) => {
357
+ c.raw.progress?.(!0), c.percentage = 100, c.status = "success", e.onSuccess?.(l, c, f);
356
358
  },
357
359
  // onProgress,
358
- beforeUpload: async (n) => {
359
- const m = (c, g) => {
360
- const P = e.fileList.find((f) => f.uid === n.uid);
361
- P && (P.percentage = Number((c * 100).toFixed(2)), g === !1 && (P.status = "uploading"));
360
+ beforeUpload: async (l) => {
361
+ const c = (f, w) => {
362
+ const C = e.fileList.find((p) => p.uid === l.uid);
363
+ C && (C.percentage = Number((f * 100).toFixed(2)), w === !1 && (C.status = "uploading"));
362
364
  };
363
- return n.progress = we(m)(!1), e.beforeUpload ? await e.beforeUpload?.(n) : !0;
365
+ return l.progress = we(c)(!1), e.beforeUpload ? await e.beforeUpload?.(l) : !0;
364
366
  },
365
367
  handleExceed: a,
366
- tr: p
368
+ tr: u
367
369
  };
368
370
  }
369
371
  }), Pe = { class: "el-upload__tip" };
370
- function $e(e, o, k, p, U, u) {
371
- const y = d("ElLink"), a = d("FileVue"), b = d("ElUpload"), h = d("VkfFormItem");
372
- return r(), C(h, Z(G(e.formItemBindProps)), {
372
+ function $e(e, o, g, u, U, m) {
373
+ const y = r("ElLink"), a = r("FileVue"), b = r("ElUpload"), h = r("VkfFormItem");
374
+ return d(), E(h, Z(G(e.formItemBindProps)), {
373
375
  default: i(() => [
374
376
  s(b, q(e.coreBindProps, {
375
377
  ref: "uploadRef",
@@ -402,7 +404,7 @@ function $e(e, o, k, p, U, u) {
402
404
  H(e.$slots, "default", {}, () => [
403
405
  s(y, { type: "primary" }, {
404
406
  default: i(() => [
405
- B(" + " + I(e.tr("vkf.upload.selectFile", "选择文件")), 1)
407
+ T(" + " + P(e.tr("vkf.upload.selectFile", "选择文件")), 1)
406
408
  ]),
407
409
  _: 1
408
410
  })
@@ -413,33 +415,33 @@ function $e(e, o, k, p, U, u) {
413
415
  e.tip ? {
414
416
  name: "tip",
415
417
  fn: i(() => [
416
- E("div", Pe, I(e.tip), 1)
418
+ I("div", Pe, P(e.tip), 1)
417
419
  ]),
418
420
  key: "0"
419
421
  } : void 0
420
422
  ]), 1040, ["class", "file-list", "on-success", "before-upload", "disabled", "on-exceed"]),
421
- E("span", {
422
- class: l(["vkf-upload-empty-tip", {
423
+ I("span", {
424
+ class: n(["vkf-upload-empty-tip", {
423
425
  "is-readonly": e.readonly,
424
426
  "is-empty": e.fileList?.length === 0
425
427
  }])
426
- }, I(e.tr("vkf.upload.empty", "暂无")), 3)
428
+ }, P(e.tr("vkf.upload.empty", "暂无")), 3)
427
429
  ]),
428
430
  _: 3
429
431
  }, 16);
430
432
  }
431
- const Le = /* @__PURE__ */ j(Ie, [["render", $e]]), Ae = T({
433
+ const Le = /* @__PURE__ */ j(Ie, [["render", $e]]), Ae = B({
432
434
  name: "VkfUpload",
433
435
  props: $,
434
436
  emits: L,
435
- setup(e, { emit: o, slots: k }) {
436
- const p = z(o);
437
+ setup(e, { emit: o, slots: g }) {
438
+ const u = z(o);
437
439
  return () => J(Le, {
438
440
  ...e,
439
- ...X(p)
441
+ ...X(u)
440
442
  }, {
441
443
  ...e.slots,
442
- ...k
444
+ ...g
443
445
  });
444
446
  }
445
447
  }), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -141,6 +141,10 @@ export declare const props: {
141
141
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
142
142
  error: StringConstructor;
143
143
  prop: null;
144
+ ai: {
145
+ type: PropType<import("../../ai-provider").AiConfig>;
146
+ default: undefined;
147
+ };
144
148
  labelPosition: {
145
149
  type: PropType<"left" | "right" | "top" | "start" | "end">;
146
150
  default: undefined;
@@ -183,10 +187,6 @@ export declare const props: {
183
187
  type: PropType<import("element-plus").UseTooltipProps>;
184
188
  default: () => {};
185
189
  };
186
- ai: {
187
- type: PropType<import("../../ai-provider").AiConfig>;
188
- default: undefined;
189
- };
190
190
  aiOutput: null;
191
191
  label: StringConstructor;
192
192
  labelWidth: {
@@ -211,7 +211,7 @@ export declare const props: {
211
211
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
212
212
  showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
213
213
  };
214
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"name", keyof T2> | Extract<"headers", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"onError", keyof T2> | Extract<"labelPosition", 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<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"slots", keyof T2> | Extract<"drag", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"method", 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<"directory", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"ai", keyof T2>, KE> | Exclude<Extract<"aiOutput", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", 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<"onChange", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"previewLabel", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"exceedable", keyof T2>, KE> | Exclude<Extract<"confirmExceed", 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<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"method", 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<"directory", keyof T2>, KE> : Extract<"name", keyof T2> | Extract<"headers", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"onError", keyof T2> | Extract<"labelPosition", 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<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"slots", keyof T2> | Extract<"drag", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"method", 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<"directory", keyof T2>]: { [k in Extract<"name", keyof T2> | Extract<"headers", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"onError", keyof T2> | Extract<"labelPosition", 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<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"slots", keyof T2> | Extract<"drag", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"method", 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<"directory", keyof T2>]: T2[k]; }[P]; }>;
214
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"headers", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ai", keyof T2> | Extract<"data", keyof T2> | Extract<"onError", keyof T2> | Extract<"labelPosition", 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<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"method", 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<"directory", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"ai", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"aiOutput", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", 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<"onChange", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"previewLabel", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"onDownload", keyof T2>, KE> | Exclude<Extract<"exceedable", keyof T2>, KE> | Exclude<Extract<"confirmExceed", 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<"crossorigin", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"method", 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<"directory", keyof T2>, KE> : Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"headers", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ai", keyof T2> | Extract<"data", keyof T2> | Extract<"onError", keyof T2> | Extract<"labelPosition", 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<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"method", 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<"directory", keyof T2>]: { [k in Extract<"name", keyof T2> | Extract<"slots", keyof T2> | Extract<"headers", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ai", keyof T2> | Extract<"data", keyof T2> | Extract<"onError", keyof T2> | Extract<"labelPosition", 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<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"tip", keyof T2> | Extract<"preview", keyof T2> | Extract<"previewLabel", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"exceedable", keyof T2> | Extract<"confirmExceed", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"method", 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<"directory", keyof T2>]: T2[k]; }[P]; }>;
215
215
  export declare const emits: {
216
216
  'update:fileList': null;
217
217
  remove: (e: UploadFile) => UploadFile;
@@ -133,6 +133,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
133
133
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
134
134
  error: StringConstructor;
135
135
  prop: null;
136
+ ai: {
137
+ type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
138
+ default: undefined;
139
+ };
136
140
  labelPosition: {
137
141
  type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
138
142
  default: undefined;
@@ -175,10 +179,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
175
179
  type: import("vue").PropType<import("element-plus").UseTooltipProps>;
176
180
  default: () => {};
177
181
  };
178
- ai: {
179
- type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
180
- default: undefined;
181
- };
182
182
  aiOutput: null;
183
183
  label: StringConstructor;
184
184
  labelWidth: {
@@ -211,11 +211,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
211
211
  coreBindProps: import("vue").ComputedRef<{
212
212
  name: string;
213
213
  headers: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | null)[], unknown, unknown> | undefined;
214
+ data: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | null)[], unknown, unknown>;
214
215
  onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
215
216
  onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
216
217
  onProgress: (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
217
218
  drag: boolean;
218
- data: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | null)[], unknown, unknown>;
219
219
  multiple: boolean;
220
220
  onExceed: ((files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | undefined;
221
221
  beforeRemove: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils/typescript.mjs").Awaitable<boolean>) | undefined;
@@ -385,6 +385,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
385
385
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
386
386
  error: StringConstructor;
387
387
  prop: null;
388
+ ai: {
389
+ type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
390
+ default: undefined;
391
+ };
388
392
  labelPosition: {
389
393
  type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
390
394
  default: undefined;
@@ -427,10 +431,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
427
431
  type: import("vue").PropType<import("element-plus").UseTooltipProps>;
428
432
  default: () => {};
429
433
  };
430
- ai: {
431
- type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
432
- default: undefined;
433
- };
434
434
  aiOutput: null;
435
435
  label: StringConstructor;
436
436
  labelWidth: {
@@ -460,6 +460,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
460
460
  }>, {
461
461
  name: string;
462
462
  required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
463
+ ai: import("../../ai-provider/index.ts").AiConfig;
464
+ data: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | null)[], unknown, unknown>;
463
465
  onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
464
466
  labelPosition: "start" | "left" | "right" | "top" | "end";
465
467
  formItemSize: "small" | "default" | "large";
@@ -470,14 +472,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
470
472
  labelTip: string;
471
473
  information: boolean;
472
474
  labelTipProps: import("element-plus").UseTooltipProps;
473
- ai: import("../../ai-provider/index.ts").AiConfig;
474
475
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
475
476
  showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
476
477
  disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
477
478
  onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
478
479
  onProgress: (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
479
480
  drag: boolean;
480
- data: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | ((new (...args: any[]) => import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | (() => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus/es/utils/typescript.mjs").Mutable<Record<string, any>>> | ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript.mjs").Awaitable<import("element-plus").UploadData>)) | null)[], unknown, unknown>;
481
481
  multiple: boolean;
482
482
  onExceed: ((files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | undefined;
483
483
  tip: string;
@@ -662,6 +662,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
662
662
  };
663
663
  }, "size">>> & Readonly<{}>, {
664
664
  required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
665
+ ai: import("../../ai-provider/index.ts").AiConfig;
665
666
  labelPosition: "start" | "left" | "right" | "top" | "end";
666
667
  formItemSize: "small" | "default" | "large";
667
668
  formItemSlots: import("../../form-item/src/types.ts").FormItemSlots;
@@ -671,7 +672,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
671
672
  labelTip: string;
672
673
  information: boolean;
673
674
  labelTipProps: import("element-plus").UseTooltipProps;
674
- ai: import("../../ai-provider/index.ts").AiConfig;
675
675
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
676
676
  showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
677
677
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;