@lemon30_npm/csit-vue3 1.0.71 → 1.0.72

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.
@@ -1,8 +1,8 @@
1
1
  import { ElUpload as oe, ElButton as te, ElLink as se, ElTooltip as le, ElDivider as ae } from "element-plus/es";
2
- import { defineComponent as ne, mergeDefaults as ie, useSlots as re, ref as E, watch as de, createElementBlock as l, openBlock as s, createBlock as k, createCommentVNode as n, mergeProps as ue, unref as f, createSlots as me, withCtx as r, renderSlot as U, Fragment as g, createElementVNode as a, toDisplayString as y, renderList as z, normalizeProps as pe, guardReactiveProps as ce, normalizeClass as C, createTextVNode as v, createVNode as h, normalizeStyle as P, nextTick as fe } from "vue";
3
- import R from "./icons/icon-upload-btn.svg.js";
4
- import F from "./icons/icon-upload-btn-hover.svg.js";
5
- import L from "./icons/icon-upload-btn-disabled.svg.js";
2
+ import { defineComponent as ne, mergeDefaults as ie, useSlots as re, ref as E, watch as de, createElementBlock as l, openBlock as s, normalizeClass as w, createBlock as v, createCommentVNode as n, mergeProps as ue, unref as f, createSlots as pe, withCtx as r, renderSlot as S, Fragment as g, createElementVNode as a, toDisplayString as y, renderList as z, normalizeProps as me, guardReactiveProps as ce, createTextVNode as h, createVNode as b, normalizeStyle as P, nextTick as fe } from "vue";
3
+ import T from "./icons/icon-upload-btn.svg.js";
4
+ import R from "./icons/icon-upload-btn-hover.svg.js";
5
+ import F from "./icons/icon-upload-btn-disabled.svg.js";
6
6
  import ge from "./icons/icon-loading-blue.svg.js";
7
7
  import ye from "./icons/icon-upload-success.svg.js";
8
8
  import we from "./icons/icon-upload-retry.svg.js";
@@ -11,43 +11,43 @@ import { ElMessageBox as ve, ElMessage as he } from "element-plus";
11
11
  import { useUpload as be } from "./hooks/useUpload.js";
12
12
  import { useUploadRetry as Be } from "./hooks/useUploadRetry.js";
13
13
  import { downloadFileWithAxios as Ce } from "./utils/file.js";
14
- import { getFileIconByName as _e } from "./utils/file-icon-maps.js";
15
- import { useExposeMethods as Ue } from "./expose/index.js";
16
- import { useCiUploadComputed as Se } from "./computed/index.js";
14
+ import { getFileIconByName as Ue } from "./utils/file-icon-maps.js";
15
+ import { useExposeMethods as Se } from "./expose/index.js";
16
+ import { useCiUploadComputed as _e } from "./computed/index.js";
17
17
  import { defaultProps as Ne } from "./props/index.js";
18
18
  import { useFileSize as Ee } from "./hooks/useFileSize.js";
19
19
  import { handleUploadValidateFail as De } from "./hooks/useUploadValidateFail.js";
20
20
  import { createUploadRules as $e } from "./hooks/rules/createUploadRules.js";
21
21
  import { confirmBeforeUpload as ze } from "./hooks/useConfirmBeforeUpload.js";
22
22
  import { abortUploadFlow as Pe } from "./hooks/useAbortUploadFlow.js";
23
- const Re = { class: "CiUpload" }, Fe = {
23
+ const Te = {
24
24
  key: 0,
25
25
  class: "tip-slot-textInfo"
26
- }, Le = {
26
+ }, Re = {
27
27
  key: 1,
28
28
  class: "default-tip-slot-textInfo"
29
- }, Te = { class: "upload-btn-text" }, Ie = {
29
+ }, Fe = { class: "upload-btn-text" }, Le = {
30
30
  key: 0,
31
31
  class: "tip-slot-textInfo"
32
- }, Ke = {
32
+ }, Ie = {
33
33
  key: 1,
34
34
  class: "default-tip-slot-textInfo"
35
- }, Ve = { class: "file-item-top" }, Me = { class: "file-name-file-icon" }, qe = ["src"], He = { class: "top-right" }, Ae = {
35
+ }, Ke = { class: "file-item-top" }, Ve = { class: "file-name-file-icon" }, Me = ["src"], qe = { class: "top-right" }, He = {
36
36
  key: 0,
37
37
  class: "file-size"
38
- }, Oe = {
38
+ }, Ae = {
39
39
  key: 1,
40
40
  class: "file-operate-btn"
41
- }, We = { class: "file-status-icon-wrapper" }, je = { class: "uploading-percentage" }, Ge = ["onClick"], Je = {
41
+ }, Oe = { class: "file-status-icon-wrapper" }, We = { class: "uploading-percentage" }, je = ["onClick"], Ge = {
42
42
  key: 0,
43
43
  class: "file-item-bottom file-progress-bar"
44
- }, Qe = {
44
+ }, Je = {
45
45
  key: 0,
46
46
  class: "file-item-bottom file-progress-bar download-progress-bar"
47
- }, Xe = {
47
+ }, Qe = {
48
48
  name: "CiUpload"
49
- }, ho = /* @__PURE__ */ ne({
50
- ...Xe,
49
+ }, vo = /* @__PURE__ */ ne({
50
+ ...Qe,
51
51
  props: /* @__PURE__ */ ie({
52
52
  action: {},
53
53
  downloadUrl: {},
@@ -77,25 +77,26 @@ const Re = { class: "CiUpload" }, Fe = {
77
77
  maxFileNameLength: {},
78
78
  minFileNameLength: {},
79
79
  confirmBeforeUpload: { type: Boolean },
80
- confirmBeforeUploadText: {}
80
+ confirmBeforeUploadText: {},
81
+ showUploadSecretTip: { type: Boolean }
81
82
  }, Ne),
82
83
  emits: ["update:fileList", "onSuccess", "onRemove", "onChange", "onError", "onCustomDownload"],
83
- setup(T, { expose: I, emit: K }) {
84
- const { formatFileSize: V } = Ee(), M = re(), D = E(), _ = E(!1), w = E([]), { checkUploadStatus: q } = Ue(w), i = T, { customHttpRequest: H } = be(i.axiosInstance), d = K;
84
+ setup(L, { expose: I, emit: K }) {
85
+ const { formatFileSize: V } = Ee(), M = re(), D = E(), U = E(!1), k = E([]), { checkUploadStatus: q } = Se(k), i = L, { customHttpRequest: H } = be(i.axiosInstance), d = K;
85
86
  I({
86
87
  checkUploadStatus: q
87
88
  });
88
- const { retryUpload: A } = Be(w, d, i);
89
+ const { retryUpload: A } = Be(k, d, i);
89
90
  de(
90
91
  () => i.fileList,
91
92
  (e) => {
92
- w.value = e.map((o) => ({ ...o }));
93
+ k.value = e.map((o) => ({ ...o }));
93
94
  },
94
95
  { immediate: !0 }
95
96
  );
96
- const S = (e) => {
97
+ const _ = (e) => {
97
98
  var o;
98
- _.value = !1, (o = D.value) == null || o.handleRemove(e);
99
+ U.value = !1, (o = D.value) == null || o.handleRemove(e);
99
100
  }, N = (e) => {
100
101
  if (i.customDownload) {
101
102
  d("onCustomDownload", e);
@@ -120,21 +121,21 @@ const Re = { class: "CiUpload" }, Fe = {
120
121
  try {
121
122
  await ze(i.confirmBeforeUploadText);
122
123
  } catch {
123
- return Pe(_);
124
+ return Pe(U);
124
125
  }
125
126
  const o = $e(i);
126
127
  for (const u of o) {
127
- const m = u(e);
128
- if (m !== !0)
129
- return De(m, {
128
+ const p = u(e);
129
+ if (p !== !0)
130
+ return De(p, {
130
131
  rawFile: e,
131
132
  fileList: i.fileList,
132
133
  emit: d,
133
- internalRemoveFlag: _
134
+ internalRemoveFlag: U
134
135
  });
135
136
  }
136
137
  return !0;
137
- }, W = (e, o) => _.value ? !0 : ve.confirm(
138
+ }, W = (e, o) => U.value ? !0 : ve.confirm(
138
139
  `确定删除 ${e.fileName || e.name} 文件?`,
139
140
  "温馨提示",
140
141
  {
@@ -154,27 +155,33 @@ const Re = { class: "CiUpload" }, Fe = {
154
155
  d("update:fileList", [...u, o]), d("onError", o, u);
155
156
  });
156
157
  }, J = (e, o, u) => {
157
- var p, b, B;
158
+ var m, B, C;
158
159
  if (!e) return;
159
- const m = u.find((t) => t.uid === o.uid);
160
- m && (m.fileName = ((p = e == null ? void 0 : e.data) == null ? void 0 : p.fileName) || o.name, m.fileKey = ((b = e == null ? void 0 : e.data) == null ? void 0 : b.fileKey) || "当前接口没有返回fileKey字段", m.fileSize = ((B = e == null ? void 0 : e.data) == null ? void 0 : B.fileSize) || o.size), d("update:fileList", u), d("onSuccess", o, u);
160
+ const p = u.find((t) => t.uid === o.uid);
161
+ p && (p.fileName = ((m = e == null ? void 0 : e.data) == null ? void 0 : m.fileName) || o.name, p.fileKey = ((B = e == null ? void 0 : e.data) == null ? void 0 : B.fileKey) || "当前接口没有返回fileKey字段", p.fileSize = ((C = e == null ? void 0 : e.data) == null ? void 0 : C.fileSize) || o.size), d("update:fileList", u), d("onSuccess", o, u);
161
162
  }, Q = (e, o) => {
162
163
  e.status === "success" && !e.response || (d("update:fileList", o), d("onChange", e, o));
163
164
  }, X = (e, o) => {
164
165
  d("update:fileList", o), d("onRemove", e, o);
165
- }, { hasRealDefaultSlot: Y, finalBeforeUpload: Z, defaultTipSlotTextInfo: $, otherSlots: x } = Se(i, M, O);
166
+ }, { hasRealDefaultSlot: Y, finalBeforeUpload: Z, defaultTipSlotTextInfo: $, otherSlots: x } = _e(i, M, O);
166
167
  return (e, o) => {
167
- const u = te, m = oe, p = se, b = le, B = ae;
168
- return s(), l("div", Re, [
169
- e.readonly ? n("", !0) : (s(), k(m, ue({
168
+ const u = te, p = oe, m = se, B = le, C = ae;
169
+ return s(), l("div", {
170
+ class: w(["CiUpload", {}])
171
+ }, [
172
+ e.readonly ? n("", !0) : (s(), v(p, ue({
170
173
  key: 0,
171
- class: ["ci-el-upload-component", { "is-disabled": e.disabled }],
174
+ class: ["ci-el-upload-component", {
175
+ "is-disabled": e.disabled,
176
+ "is-drag": e.drag,
177
+ "is-disabled-upload-secret": e.showUploadSecretTip && e.drag
178
+ }],
172
179
  ref_key: "uploadRef",
173
180
  ref: D,
174
181
  action: e.action,
175
182
  data: e.data,
176
183
  headers: e.headers,
177
- "file-list": w.value,
184
+ "file-list": k.value,
178
185
  accept: e.accept,
179
186
  limit: e.limit,
180
187
  multiple: e.multiple,
@@ -189,58 +196,58 @@ const Re = { class: "CiUpload" }, Fe = {
189
196
  "on-error": G,
190
197
  "http-request": f(H),
191
198
  "show-file-list": !1
192
- }, e.$attrs), me({
199
+ }, e.$attrs), pe({
193
200
  default: r(() => [
194
- f(Y) ? U(e.$slots, "default", { key: 0 }, void 0, !0) : (s(), l(g, { key: 1 }, [
201
+ f(Y) ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (s(), l(g, { key: 1 }, [
195
202
  e.drag ? (s(), l(g, { key: 0 }, [
196
203
  o[0] || (o[0] = a("img", {
197
204
  class: "upload-btn-icon",
198
- src: R,
205
+ src: T,
199
206
  alt: ""
200
207
  }, null, -1)),
201
208
  o[1] || (o[1] = a("img", {
202
209
  class: "upload-btn-icon-hover",
203
- src: F,
210
+ src: R,
204
211
  alt: ""
205
212
  }, null, -1)),
206
213
  o[2] || (o[2] = a("img", {
207
214
  class: "upload-btn-icon-disabled",
208
- src: L,
215
+ src: F,
209
216
  alt: ""
210
217
  }, null, -1)),
211
218
  o[3] || (o[3] = a("div", { class: "drag-text-info" }, [
212
219
  a("span", { class: "drag-text-info-click" }, "点击上传"),
213
220
  a("span", { class: "drag-text-info-black" }, "或将文件拖拽到这里上传")
214
221
  ], -1)),
215
- e.$slots.tip ? (s(), l("div", Fe, [
216
- U(e.$slots, "tip", {}, void 0, !0)
217
- ])) : (s(), l("div", Le, y(f($)), 1))
218
- ], 64)) : (s(), k(u, {
222
+ e.$slots.tip ? (s(), l("div", Te, [
223
+ S(e.$slots, "tip", {}, void 0, !0)
224
+ ])) : (s(), l("div", Re, y(f($)), 1))
225
+ ], 64)) : (s(), v(u, {
219
226
  key: 1,
220
- class: "upload-btn",
227
+ class: w(["upload-btn", { "is-disabled-upload-secret": e.showUploadSecretTip }]),
221
228
  disabled: e.disabled
222
229
  }, {
223
230
  default: r(() => [
224
231
  o[4] || (o[4] = a("img", {
225
232
  class: "upload-btn-icon",
226
- src: R,
233
+ src: T,
227
234
  alt: ""
228
235
  }, null, -1)),
229
236
  o[5] || (o[5] = a("img", {
230
237
  class: "upload-btn-icon-hover",
231
- src: F,
238
+ src: R,
232
239
  alt: ""
233
240
  }, null, -1)),
234
241
  o[6] || (o[6] = a("img", {
235
242
  class: "upload-btn-icon-disabled",
236
- src: L,
243
+ src: F,
237
244
  alt: ""
238
245
  }, null, -1)),
239
- a("span", Te, y(e.uploadBtnText), 1)
246
+ a("span", Fe, y(e.uploadBtnText), 1)
240
247
  ]),
241
248
  _: 1,
242
249
  __: [4, 5, 6]
243
- }, 8, ["disabled"]))
250
+ }, 8, ["class", "disabled"]))
244
251
  ], 64))
245
252
  ]),
246
253
  _: 2
@@ -248,123 +255,123 @@ const Re = { class: "CiUpload" }, Fe = {
248
255
  e.drag ? void 0 : {
249
256
  name: "tip",
250
257
  fn: r(() => [
251
- e.$slots.tip ? (s(), l("div", Ie, [
252
- U(e.$slots, "tip", {}, void 0, !0)
253
- ])) : (s(), l("div", Ke, y(f($)), 1))
258
+ e.$slots.tip ? (s(), l("div", Le, [
259
+ S(e.$slots, "tip", {}, void 0, !0)
260
+ ])) : (s(), l("div", Ie, y(f($)), 1))
254
261
  ]),
255
262
  key: "0"
256
263
  },
257
264
  z(f(x), (t, c) => ({
258
265
  name: c,
259
266
  fn: r((ee) => [
260
- U(e.$slots, c, pe(ce(ee || {})), void 0, !0)
267
+ S(e.$slots, c, me(ce(ee || {})), void 0, !0)
261
268
  ])
262
269
  }))
263
270
  ]), 1040, ["class", "action", "data", "headers", "file-list", "accept", "limit", "multiple", "drag", "disabled", "before-upload", "http-request"])),
264
- w.value.length ? (s(), l("div", {
271
+ k.value.length ? (s(), l("div", {
265
272
  key: 1,
266
- class: C(["custom-file-list-default", { "is-readonly": e.readonly }])
273
+ class: w(["custom-file-list-default", { "is-readonly": e.readonly }])
267
274
  }, [
268
- (s(!0), l(g, null, z(w.value, (t) => (s(), l("div", {
275
+ (s(!0), l(g, null, z(k.value, (t) => (s(), l("div", {
269
276
  class: "file-item-wrapper",
270
277
  key: t.uid
271
278
  }, [
272
- a("div", Ve, [
273
- a("div", Me, [
279
+ a("div", Ke, [
280
+ a("div", Ve, [
274
281
  e.showFileExtIcon ? (s(), l("img", {
275
282
  key: 0,
276
283
  class: "file-icon",
277
- src: f(_e)(t.fileName || t.name)
278
- }, null, 8, qe)) : n("", !0),
279
- e.showFileNameEllipsisTooltip ? (s(), k(b, {
284
+ src: f(Ue)(t.fileName || t.name)
285
+ }, null, 8, Me)) : n("", !0),
286
+ e.showFileNameEllipsisTooltip ? (s(), v(B, {
280
287
  key: 2,
281
288
  effect: "dark",
282
289
  content: t.fileName || t.name,
283
290
  placement: "right"
284
291
  }, {
285
292
  default: r(() => [
286
- h(p, {
287
- class: C(["top-left file-name", { "is-show-file-name-ellipsis-tooltip": e.showFileNameEllipsisTooltip }]),
293
+ b(m, {
294
+ class: w(["top-left file-name", { "is-show-file-name-ellipsis-tooltip": e.showFileNameEllipsisTooltip }]),
288
295
  disabled: t.status === "downloading" || t.status === "uploading" || t.status === "fail",
289
296
  onClick: (c) => N(t)
290
297
  }, {
291
298
  default: r(() => [
292
- v(y(t.fileName || t.name), 1)
299
+ h(y(t.fileName || t.name), 1)
293
300
  ]),
294
301
  _: 2
295
302
  }, 1032, ["class", "disabled", "onClick"])
296
303
  ]),
297
304
  _: 2
298
- }, 1032, ["content"])) : (s(), k(p, {
305
+ }, 1032, ["content"])) : (s(), v(m, {
299
306
  key: 1,
300
307
  class: "top-left file-name",
301
308
  disabled: t.status === "downloading" || t.status === "uploading" || t.status === "fail",
302
309
  onClick: (c) => N(t)
303
310
  }, {
304
311
  default: r(() => [
305
- v(y(t.fileName || t.name), 1)
312
+ h(y(t.fileName || t.name), 1)
306
313
  ]),
307
314
  _: 2
308
315
  }, 1032, ["disabled", "onClick"]))
309
316
  ]),
310
- a("div", He, [
311
- e.showFileSize ? (s(), l("span", Ae, y(f(V)(t.fileSize || t.size)), 1)) : n("", !0),
312
- t.status !== "fail" ? (s(), l("div", Oe, [
317
+ a("div", qe, [
318
+ e.showFileSize ? (s(), l("span", He, y(f(V)(t.fileSize || t.size)), 1)) : n("", !0),
319
+ t.status !== "fail" ? (s(), l("div", Ae, [
313
320
  t.status !== "uploading" ? (s(), l(g, { key: 0 }, [
314
321
  e.showPreviewBtn ? (s(), l(g, { key: 0 }, [
315
- h(p, {
316
- onClick: (c) => S(t)
322
+ b(m, {
323
+ onClick: (c) => _(t)
317
324
  }, {
318
325
  default: r(() => o[7] || (o[7] = [
319
- v(" 在线预览 ")
326
+ h(" 在线预览 ")
320
327
  ])),
321
328
  _: 2,
322
329
  __: [7]
323
330
  }, 1032, ["onClick"]),
324
- h(B, { direction: "vertical" })
331
+ b(C, { direction: "vertical" })
325
332
  ], 64)) : n("", !0),
326
333
  e.showDownloadBtn ? (s(), l(g, { key: 1 }, [
327
- h(p, {
334
+ b(m, {
328
335
  disabled: t.status === "downloading",
329
336
  onClick: (c) => N(t)
330
337
  }, {
331
338
  default: r(() => [
332
- v(y(t.status === "downloading" && e.showDownloadProgress && !e.customDownload ? `下载中...${t.downloadPercentage || 0}%` : "下载"), 1)
339
+ h(y(t.status === "downloading" && e.showDownloadProgress && !e.customDownload ? `下载中...${t.downloadPercentage || 0}%` : "下载"), 1)
333
340
  ]),
334
341
  _: 2
335
342
  }, 1032, ["disabled", "onClick"]),
336
- e.showDeleteBtn && !e.readonly ? (s(), k(B, {
343
+ e.showDeleteBtn && !e.readonly ? (s(), v(C, {
337
344
  key: 0,
338
345
  direction: "vertical"
339
346
  })) : n("", !0)
340
347
  ], 64)) : n("", !0),
341
- e.showDeleteBtn && !e.readonly ? (s(), k(p, {
348
+ e.showDeleteBtn && !e.readonly ? (s(), v(m, {
342
349
  key: 2,
343
- onClick: (c) => S(t)
350
+ onClick: (c) => _(t)
344
351
  }, {
345
352
  default: r(() => o[8] || (o[8] = [
346
- v("删除")
353
+ h("删除")
347
354
  ])),
348
355
  _: 2,
349
356
  __: [8]
350
357
  }, 1032, ["onClick"])) : n("", !0)
351
358
  ], 64)) : n("", !0)
352
359
  ])) : n("", !0),
353
- a("div", We, [
360
+ a("div", Oe, [
354
361
  t.status === "uploading" ? (s(), l("div", {
355
362
  key: 0,
356
- class: C(t.status)
363
+ class: w(t.status)
357
364
  }, [
358
365
  o[9] || (o[9] = a("img", {
359
366
  class: "uploading-icon",
360
367
  src: ge
361
368
  }, null, -1)),
362
- a("span", je, y(t.percentage) + "%", 1)
369
+ a("span", We, y(t.percentage) + "%", 1)
363
370
  ], 2)) : n("", !0),
364
371
  e.readonly ? n("", !0) : (s(), l(g, { key: 1 }, [
365
372
  t.status === "success" || t.status === "downloading" ? (s(), l("span", {
366
373
  key: 0,
367
- class: C(t.status)
374
+ class: w(t.status)
368
375
  }, o[10] || (o[10] = [
369
376
  a("img", {
370
377
  class: "success-icon",
@@ -374,18 +381,18 @@ const Re = { class: "CiUpload" }, Fe = {
374
381
  ], 64)),
375
382
  t.status === "fail" ? (s(), l("div", {
376
383
  key: 2,
377
- class: C(["fail-icon-wrapper", t.status])
384
+ class: w(["fail-icon-wrapper", t.status])
378
385
  }, [
379
- h(p, {
380
- onClick: (c) => S(t)
386
+ b(m, {
387
+ onClick: (c) => _(t)
381
388
  }, {
382
389
  default: r(() => o[11] || (o[11] = [
383
- v(" 删除 ")
390
+ h(" 删除 ")
384
391
  ])),
385
392
  _: 2,
386
393
  __: [11]
387
394
  }, 1032, ["onClick"]),
388
- h(b, {
395
+ b(B, {
389
396
  effect: "dark",
390
397
  content: "点击重新上传",
391
398
  placement: "bottom"
@@ -395,7 +402,7 @@ const Re = { class: "CiUpload" }, Fe = {
395
402
  class: "retry-icon",
396
403
  src: we,
397
404
  onClick: (c) => f(A)(t)
398
- }, null, 8, Ge)
405
+ }, null, 8, je)
399
406
  ]),
400
407
  _: 2
401
408
  }, 1024),
@@ -408,7 +415,7 @@ const Re = { class: "CiUpload" }, Fe = {
408
415
  ])
409
416
  ]),
410
417
  e.showUploadProgress ? (s(), l(g, { key: 0 }, [
411
- t.status === "uploading" ? (s(), l("div", Je, [
418
+ t.status === "uploading" ? (s(), l("div", Ge, [
412
419
  a("div", {
413
420
  class: "file-progress-inner",
414
421
  style: P({ width: (t.percentage || 0) + "%" })
@@ -416,7 +423,7 @@ const Re = { class: "CiUpload" }, Fe = {
416
423
  ])) : n("", !0)
417
424
  ], 64)) : n("", !0),
418
425
  e.showDownloadProgress ? (s(), l(g, { key: 1 }, [
419
- t.status === "downloading" ? (s(), l("div", Qe, [
426
+ t.status === "downloading" ? (s(), l("div", Je, [
420
427
  a("div", {
421
428
  class: "file-progress-inner",
422
429
  style: P({ width: (t.downloadPercentage || 0) + "%" })
@@ -430,5 +437,5 @@ const Re = { class: "CiUpload" }, Fe = {
430
437
  }
431
438
  });
432
439
  export {
433
- ho as default
440
+ vo as default
434
441
  };
@@ -66,7 +66,9 @@ const e = {
66
66
  * 二次确认提示文案
67
67
  * confirmBeforeUpload = true 时生效
68
68
  */
69
- confirmBeforeUploadText: "确定要上传该文件吗?"
69
+ confirmBeforeUploadText: "确定要上传该文件吗?",
70
+ // 是否展示 '禁止上传国家秘密' 提示文案 - 默认值: false
71
+ showUploadSecretTip: !1
70
72
  };
71
73
  export {
72
74
  e as defaultProps
@@ -52,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ci
52
52
  minFileNameLength: number;
53
53
  confirmBeforeUpload: boolean;
54
54
  confirmBeforeUploadText: string;
55
+ showUploadSecretTip: boolean;
55
56
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
56
57
  uploadRef: unknown;
57
58
  }, HTMLDivElement>, Partial<Record<number, (_: any) => any>> & {
@@ -41,4 +41,5 @@ export declare const defaultProps: {
41
41
  * confirmBeforeUpload = true 时生效
42
42
  */
43
43
  confirmBeforeUploadText: string;
44
+ showUploadSecretTip: boolean;
44
45
  };
@@ -42,6 +42,7 @@ export interface CiUploadProps {
42
42
  * confirmBeforeUpload = true 时生效
43
43
  */
44
44
  confirmBeforeUploadText?: string;
45
+ showUploadSecretTip?: boolean;
45
46
  }
46
47
  export type CiUploadFiles = CiUploadFile[];
47
48
  export interface CiUploadUserFile extends UploadUserFile {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon30_npm/csit-vue3",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "type": "module",
5
5
  "author": "cuiwq",
6
6
  "license": "MIT",