agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp28

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 (151) hide show
  1. package/dist/index.full.min.js +1381 -1349
  2. package/dist/style.css +42 -22
  3. package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
  4. package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
  5. package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
  6. package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
  7. package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
  8. package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
  9. package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
  10. package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
  11. package/es/chat-embed/src/header.vue2.mjs +16 -16
  12. package/es/chat-embed/src/index.vue2.mjs +161 -161
  13. package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
  14. package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
  15. package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
  16. package/es/date-picker-range/index.vue2.mjs +39 -39
  17. package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
  18. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
  19. package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
  20. package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
  21. package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
  22. package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
  23. package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
  24. package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  25. package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  26. package/es/empty-state/index.vue.mjs +2 -2
  27. package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
  28. package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
  29. package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
  30. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
  31. package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
  32. package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
  33. package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
  34. package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
  35. package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
  36. package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
  37. package/es/json-view/json-view-dialog.vue.mjs +5 -5
  38. package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
  39. package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
  40. package/es/row-form/index.vue2.mjs +31 -31
  41. package/es/row-form/operation.vue.mjs +13 -13
  42. package/es/secret-info/index.vue.mjs +1 -1
  43. package/es/src/components/Affix/index.vue2.mjs +26 -26
  44. package/es/src/components/Scrollbar/index.vue.mjs +22 -22
  45. package/es/src/views/error-page/401.vue.mjs +8 -8
  46. package/es/src/views/error-page/404.vue.mjs +8 -8
  47. package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
  48. package/es/src/views/layout/components/Menubar/Item.vue2.mjs +2 -2
  49. package/es/src/views/super-icon/index.mjs +7 -0
  50. package/es/src/views/super-icon/src/index.vue.mjs +7 -0
  51. package/es/src/views/super-icon/src/index.vue2.mjs +13 -0
  52. package/es/src/views/super-icon/src/index.vue3.mjs +4 -0
  53. package/es/src/views/svg-icon/src/svg-icon.vue2.mjs +14 -0
  54. package/es/style.css +907 -887
  55. package/es/super-grid/src/columns-config.vue.mjs +1 -1
  56. package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
  57. package/es/super-grid/src/components/select-input.vue.mjs +55 -55
  58. package/es/super-grid/src/row-detail.vue.mjs +1 -1
  59. package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
  60. package/es/super-grid/src/search-form-number.vue.mjs +4 -5
  61. package/es/super-grid/src/super-grid.vue.mjs +1 -1
  62. package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
  63. package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
  64. package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
  65. package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
  66. package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
  67. package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
  68. package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
  69. package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
  70. package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  71. package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  72. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
  73. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
  74. package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
  75. package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
  76. package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
  77. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
  78. package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
  79. package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
  80. package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
  81. package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
  82. package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
  83. package/lib/chat-embed/src/header.vue2.cjs +17 -17
  84. package/lib/chat-embed/src/index.vue2.cjs +123 -123
  85. package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
  86. package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
  87. package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
  88. package/lib/date-picker-range/index.vue2.cjs +11 -11
  89. package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
  90. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
  91. package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
  92. package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
  93. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
  94. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
  95. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
  96. package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  97. package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  98. package/lib/empty-state/index.vue.cjs +2 -2
  99. package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
  100. package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
  101. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
  102. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
  103. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
  104. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
  105. package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
  106. package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
  107. package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
  108. package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
  109. package/lib/json-view/json-view-dialog.vue.cjs +6 -6
  110. package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
  111. package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
  112. package/lib/row-form/index.vue2.cjs +31 -31
  113. package/lib/row-form/operation.vue.cjs +13 -13
  114. package/lib/secret-info/index.vue.cjs +1 -1
  115. package/lib/src/components/Affix/index.vue2.cjs +28 -28
  116. package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
  117. package/lib/src/views/error-page/401.vue.cjs +7 -7
  118. package/lib/src/views/error-page/404.vue.cjs +4 -4
  119. package/lib/src/views/layout/components/Menubar/Item.vue.cjs +1 -1
  120. package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +2 -2
  121. package/lib/src/views/super-icon/index.cjs +5 -0
  122. package/lib/src/views/super-icon/src/index.vue.cjs +5 -0
  123. package/lib/src/views/super-icon/src/index.vue2.cjs +10 -0
  124. package/lib/src/views/super-icon/src/index.vue3.cjs +2 -0
  125. package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +12 -0
  126. package/lib/style.css +920 -900
  127. package/lib/super-grid/src/columns-config.vue.cjs +1 -1
  128. package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
  129. package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
  130. package/lib/super-grid/src/row-detail.vue.cjs +1 -1
  131. package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
  132. package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
  133. package/lib/super-grid/src/super-grid.vue.cjs +1 -1
  134. package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
  135. package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
  136. package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
  137. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
  138. package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
  139. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
  140. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
  141. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
  142. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  143. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  144. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
  145. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
  146. package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
  147. package/package.json +2 -2
  148. package/src/views/layout/components/Menubar/Item.vue +1 -1
  149. package/src/views/super-icon/index.js +6 -0
  150. package/src/views/super-icon/src/index.vue +52 -0
  151. package/src/views/svg-icon/src/svg-icon.vue +5 -8
@@ -28,12 +28,12 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
28
28
  e.ref([]);
29
29
  let C = e.ref(false);
30
30
  e.ref(false);
31
- const w = e.ref(), k = e.ref(false), { t: F } = i.useI18n(), U = e.ref(null);
32
- function S(e2) {
31
+ const w = e.ref(), k = e.ref(false), F = p, { t: U } = i.useI18n(), S = e.ref(null);
32
+ function O(e2) {
33
33
  const t2 = e2.file;
34
- t2 && p("remove", { rmFiles: [t2], serverFiles: d.value, index: e2.index });
34
+ t2 && F("remove", { rmFiles: [t2], serverFiles: d.value, index: e2.index });
35
35
  }
36
- function O() {
36
+ function x() {
37
37
  b.value = "image/*", m.value ? function() {
38
38
  let e2 = ["album"];
39
39
  "openCameraAndChoosePhoto" === f.openCameraOrChoosePhoto ? e2 = ["album", "camera"] : "openChoosePhoto" === f.openCameraOrChoosePhoto ? e2 = ["album"] : "openCamera" === f.openCameraOrChoosePhoto && (e2 = ["camera"]);
@@ -41,7 +41,7 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
41
41
  if (f.multiple && (t2 = 20, f.limit))
42
42
  if (d.value && d.value.length > 0) {
43
43
  if (f.limit === d.value.length)
44
- return void a.ElMessage({ showClose: true, type: "warning", message: F("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + f.limit });
44
+ return void a.ElMessage({ showClose: true, type: "warning", message: U("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + f.limit });
45
45
  t2 = f.limit - d.value.length;
46
46
  } else
47
47
  t2 = f.limit;
@@ -56,7 +56,7 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
56
56
  }(e3.files).then(async (e4) => {
57
57
  let t3 = [];
58
58
  try {
59
- t3 = await T(e4);
59
+ t3 = await z(e4);
60
60
  } catch (l2) {
61
61
  console.error("压缩图片失败", l2), t3 = e4;
62
62
  }
@@ -64,12 +64,12 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
64
64
  const e5 = new FormData();
65
65
  if (f.limitFileSize, f.multiple) {
66
66
  if (d.value && d.value.length > 0 && d.value.length + t3.length > f.limit)
67
- return void a.ElMessage({ showClose: true, type: "warning", message: F("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + f.limit });
67
+ return void a.ElMessage({ showClose: true, type: "warning", message: U("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + f.limit });
68
68
  for (let l2 = 0; l2 < t3.length; l2++)
69
69
  e5.append("files", t3[l2]);
70
70
  } else
71
71
  e5.append("file", t3[0]);
72
- z(e5);
72
+ L(e5);
73
73
  }
74
74
  });
75
75
  });
@@ -77,30 +77,30 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
77
77
  w.value.click();
78
78
  });
79
79
  }
80
- function x(e2) {
80
+ function P(e2) {
81
81
  b.value = "", e2 && "image" === e2 ? b.value = "image/*" : e2 && "video" === e2 && (b.value = "video/*"), setTimeout(() => {
82
82
  k.value = false, w.value.click();
83
83
  });
84
84
  }
85
- function P(e2, t2) {
85
+ function N(e2, t2) {
86
86
  let l2 = true;
87
- return e2.size > 1024 * t2 * 1024 && (a.ElMessage({ showClose: true, type: "warning", message: F("imatrixUIMessage.exceedFileSize", { fileName: e2.name, fileSize: t2 }) }), l2 = false), l2;
87
+ return e2.size > 1024 * t2 * 1024 && (a.ElMessage({ showClose: true, type: "warning", message: U("imatrixUIMessage.exceedFileSize", { fileName: e2.name, fileSize: t2 }) }), l2 = false), l2;
88
88
  }
89
- function N(e2) {
89
+ function R(e2) {
90
90
  if (d.value || (d.value = []), f.multiple)
91
91
  d.value = d.value.concat(e2);
92
92
  else {
93
93
  const t2 = JSON.parse(JSON.stringify(d.value));
94
- d.value = [], d.value.push(e2), p("remove", { rmFiles: t2, serverFiles: d.value, index: 0 });
94
+ d.value = [], d.value.push(e2), F("remove", { rmFiles: t2, serverFiles: d.value, index: 0 });
95
95
  }
96
- w.value.value = null, C.value = false, U.value.changeFileList(d.value), p("uploadend", d.value);
96
+ w.value.value = null, C.value = false, S.value.changeFileList(d.value), F("uploadend", d.value);
97
97
  }
98
- function R() {
98
+ function T() {
99
99
  !function() {
100
100
  const e2 = w.value.files;
101
101
  if (e2 && e2.length > 0) {
102
102
  if (m.value && !f.multiple && e2.length > 1)
103
- return a.ElMessage({ showClose: true, type: "warning", message: F("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": 1" }), void (w.value.value = null);
103
+ return a.ElMessage({ showClose: true, type: "warning", message: U("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": 1" }), void (w.value.value = null);
104
104
  C.value = true, async function() {
105
105
  const e3 = new FormData(), t2 = [], l2 = [];
106
106
  let o2 = f.limitFileSize;
@@ -109,7 +109,7 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
109
109
  const i2 = w.value.files;
110
110
  for (let e4 = 0; e4 < i2.length; e4++) {
111
111
  const l3 = i2[e4];
112
- if (a2 = P(l3, o2), !a2)
112
+ if (a2 = N(l3, o2), !a2)
113
113
  break;
114
114
  t2.push(l3.name);
115
115
  }
@@ -127,7 +127,7 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
127
127
  return void console.error("未选择任何文件");
128
128
  let n2 = [];
129
129
  try {
130
- n2 = await T(l2);
130
+ n2 = await z(l2);
131
131
  } catch (e4) {
132
132
  console.error("压缩图片失败", e4), n2 = l2;
133
133
  }
@@ -137,13 +137,13 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
137
137
  e3.append("limitFileSize", o2);
138
138
  } else
139
139
  e3.append("file", n2[0]);
140
- z(e3);
140
+ L(e3);
141
141
  }();
142
142
  } else
143
- w.value.value = null, p("uploadend", d.value);
143
+ w.value.value = null, F("uploadend", d.value);
144
144
  }();
145
145
  }
146
- function T(e2) {
146
+ function z(e2) {
147
147
  const t2 = [];
148
148
  for (let l2 = 0; l2 < e2.length; l2++)
149
149
  t2.push(new Promise((t3, a2) => {
@@ -155,16 +155,16 @@ const e = require("vue"), t = require("../../../src/utils/common-util.cjs"), l =
155
155
  }));
156
156
  return Promise.all(t2);
157
157
  }
158
- function z(e2) {
158
+ function L(e2) {
159
159
  e2.append("systemCode", f.systemCode), window.$vueApp.config.globalProperties.$http.post(y.value, e2, { headers: { "Content-Type": "multipart/form-data", Authorization: l.getToken() } }).then((e3) => {
160
- e3 ? f.multiple ? e3.length > 0 ? N(e3) : console.error("多选时上传后返回值异常") : N(e3) : console.error("上传后返回值异常");
160
+ e3 ? f.multiple ? e3.length > 0 ? R(e3) : console.error("多选时上传后返回值异常") : R(e3) : console.error("上传后返回值异常");
161
161
  }).catch(() => {
162
162
  C.value = false;
163
163
  });
164
164
  }
165
165
  return (t2, l2) => {
166
166
  const o2 = e.resolveComponent("el-button"), a2 = e.resolveComponent("el-drawer");
167
- return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(n, { ref_key: "fileUploadRef", ref: U, disabled: s2.disabled, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limitFileSize: s2.limitFileSize, fileList: d.value, beforeRemove: s2.beforeRemove, onRemove: [s2.onRemove, S], beforeDownload: s2.beforeDownload, baseURL: h.value, watermark: s2.watermark, onChooseFile: O }, null, 8, ["disabled", "systemCode", "accept", "multiple", "limitFileSize", "fileList", "beforeRemove", "onRemove", "beforeDownload", "baseURL", "watermark"]), "openChoosePhoto" === s2.openCameraOrChoosePhoto || "openCameraAndChoosePhoto" === s2.openCameraOrChoosePhoto ? (e.openBlock(), e.createElementBlock("input", { key: 0, ref_key: "fileRef", ref: w, type: "file", multiple: c.value, name: "file", accept: e.unref(b), style: { display: "none" }, onChange: R }, null, 40, r)) : (e.openBlock(), e.createElementBlock("input", { key: 1, ref_key: "fileRef", ref: w, type: "file", multiple: c.value, capture: "environment", name: "file", accept: e.unref(b), style: { display: "none" }, onChange: R }, null, 40, u)), e.createVNode(a2, { modelValue: k.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e2) => k.value = e2), direction: "btt", onClose: l2[3] || (l2[3] = (e2) => k.value = false) }, { default: e.withCtx(() => [e.createElementVNode("div", null, [e.createVNode(o2, { link: "", onClick: l2[0] || (l2[0] = (e2) => x("image")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("fsUpload.image")), 1)]), _: 1 })]), e.createElementVNode("div", null, [e.createVNode(o2, { link: "", onClick: l2[1] || (l2[1] = (e2) => x("video")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("fsUpload.video")), 1)]), _: 1 })])]), _: 1 }, 8, ["modelValue"])]);
167
+ return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(n, { ref_key: "fileUploadRef", ref: S, disabled: s2.disabled, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limitFileSize: s2.limitFileSize, fileList: d.value, beforeRemove: s2.beforeRemove, onRemove: [s2.onRemove, O], beforeDownload: s2.beforeDownload, baseURL: h.value, watermark: s2.watermark, onChooseFile: x }, null, 8, ["disabled", "systemCode", "accept", "multiple", "limitFileSize", "fileList", "beforeRemove", "onRemove", "beforeDownload", "baseURL", "watermark"]), "openChoosePhoto" === s2.openCameraOrChoosePhoto || "openCameraAndChoosePhoto" === s2.openCameraOrChoosePhoto ? (e.openBlock(), e.createElementBlock("input", { key: 0, ref_key: "fileRef", ref: w, type: "file", multiple: c.value, name: "file", accept: e.unref(b), style: { display: "none" }, onChange: T }, null, 40, r)) : (e.openBlock(), e.createElementBlock("input", { key: 1, ref_key: "fileRef", ref: w, type: "file", multiple: c.value, capture: "environment", name: "file", accept: e.unref(b), style: { display: "none" }, onChange: T }, null, 40, u)), e.createVNode(a2, { modelValue: k.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e2) => k.value = e2), direction: "btt", onClose: l2[3] || (l2[3] = (e2) => k.value = false) }, { default: e.withCtx(() => [e.createElementVNode("div", null, [e.createVNode(o2, { link: "", onClick: l2[0] || (l2[0] = (e2) => P("image")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("fsUpload.image")), 1)]), _: 1 })]), e.createElementVNode("div", null, [e.createVNode(o2, { link: "", onClick: l2[1] || (l2[1] = (e2) => P("video")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("fsUpload.video")), 1)]), _: 1 })])]), _: 1 }, 8, ["modelValue"])]);
168
168
  };
169
169
  } });
170
170
  module.exports = s;
@@ -3,30 +3,30 @@ const e = require("vue"), t = require("@element-plus/icons-vue"), o = require(".
3
3
  } }, onRemove: { type: Function, default: () => {
4
4
  } }, beforeDownload: { type: Function, default: () => {
5
5
  } }, accept: { type: String, default: "" }, limitFileSize: { type: Number, default: 30 }, baseURL: { type: String, default: "" }, watermark: { type: Object, default: () => ({}) } }, emits: ["chooseFile", "remove"], setup(u2, { expose: m, emit: d }) {
6
- const p = u2;
6
+ const p = u2, f = d;
7
7
  e.ref(""), e.ref(false);
8
- const f = e.ref(false);
9
- let v = p.baseURL;
10
- const w = window.$vueApp.config.globalProperties.baseAPI, y = e.ref(p.fileList);
11
- y.value ? JSON.stringify(y.value) : y.value;
12
- const b = () => {
13
- d("chooseFile");
14
- }, h = (e2) => l.isImage(e2.showName ? e2.showName : e2.name);
15
- function g(e2, t2) {
16
- e2 = k(e2);
8
+ const v = e.ref(false);
9
+ let w = p.baseURL;
10
+ const y = window.$vueApp.config.globalProperties.baseAPI, b = e.ref(p.fileList);
11
+ b.value ? JSON.stringify(b.value) : b.value;
12
+ const h = () => {
13
+ f("chooseFile");
14
+ }, g = (e2) => l.isImage(e2.showName ? e2.showName : e2.name);
15
+ function k(e2, t2) {
16
+ e2 = N(e2);
17
17
  const o2 = i.getToken();
18
- let l2 = v + "/common/super-form/downloads?jwt=" + o2;
19
- return a.isPlateSys(p.systemCode) && (l2 = w + "/component/super-form/downloads?jwt=" + o2), l2 = a.getReplaceUrlDomain(l2), l2 + "&showName=" + encodeURI(e2) + "&serverPath=" + t2;
18
+ let l2 = w + "/common/super-form/downloads?jwt=" + o2;
19
+ return a.isPlateSys(p.systemCode) && (l2 = y + "/component/super-form/downloads?jwt=" + o2), l2 = a.getReplaceUrlDomain(l2), l2 + "&showName=" + encodeURI(e2) + "&serverPath=" + t2;
20
20
  }
21
- const k = (e2) => (e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2);
22
- function N(e2) {
23
- d("remove", e2);
21
+ const N = (e2) => (e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2);
22
+ function C(e2) {
23
+ f("remove", e2);
24
24
  }
25
25
  return m({ changeFileList: function(e2) {
26
- y.value = e2;
26
+ b.value = e2;
27
27
  } }), (l2, i2) => {
28
28
  const a2 = e.resolveComponent("el-text"), m2 = e.resolveComponent("el-icon"), d2 = e.resolveComponent("el-upload");
29
- return e.openBlock(), e.createBlock(d2, { action: "#", "list-type": "picture-card", "file-list": y.value, "auto-upload": false, disabled: true }, e.createSlots({ file: e.withCtx(({ file: t2 }) => [e.createElementVNode("div", r, [h(t2) ? (e.openBlock(), e.createElementBlock("img", { key: 1, class: "el-upload-list__item-thumbnail", src: g(t2.showName ? t2.showName : t2.name, t2.serverPath), alt: "" }, null, 8, c)) : (e.openBlock(), e.createElementBlock("div", s, [e.createElementVNode("div", n, e.toDisplayString(t2.name), 1)])), e.createVNode(o, { disabled: f.value, "file-list": y.value, file: t2, "system-code": u2.systemCode, watermark: u2.watermark, "before-remove": u2.beforeRemove, "on-remove": u2.onRemove, "before-download": u2.beforeDownload, onRemove: N }, null, 8, ["disabled", "file-list", "file", "system-code", "watermark", "before-remove", "on-remove", "before-download"])])]), _: 2 }, [f.value ? void 0 : { name: "tip", fn: e.withCtx(() => [e.createVNode(a2, { size: "small", style: { padding: "10px", "font-weight": "600" } }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.accept) + " " + e.toDisplayString(u2.limitFileSize ? l2.$t("imatrixUIMessage.uploadFileTip", { fileSize: u2.limitFileSize }) : ""), 1)]), _: 1 })]), key: "0" }, f.value ? void 0 : { name: "trigger", fn: e.withCtx(() => [e.createVNode(m2, { onClick: b }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Plus))]), _: 1 })]), key: "1" }]), 1032, ["file-list"]);
29
+ return e.openBlock(), e.createBlock(d2, { action: "#", "list-type": "picture-card", "file-list": b.value, "auto-upload": false, disabled: true }, e.createSlots({ file: e.withCtx(({ file: t2 }) => [e.createElementVNode("div", r, [g(t2) ? (e.openBlock(), e.createElementBlock("img", { key: 1, class: "el-upload-list__item-thumbnail", src: k(t2.showName ? t2.showName : t2.name, t2.serverPath), alt: "" }, null, 8, c)) : (e.openBlock(), e.createElementBlock("div", s, [e.createElementVNode("div", n, e.toDisplayString(t2.name), 1)])), e.createVNode(o, { disabled: v.value, "file-list": b.value, file: t2, "system-code": u2.systemCode, watermark: u2.watermark, "before-remove": u2.beforeRemove, "on-remove": u2.onRemove, "before-download": u2.beforeDownload, onRemove: C }, null, 8, ["disabled", "file-list", "file", "system-code", "watermark", "before-remove", "on-remove", "before-download"])])]), _: 2 }, [v.value ? void 0 : { name: "tip", fn: e.withCtx(() => [e.createVNode(a2, { size: "small", style: { padding: "10px", "font-weight": "600" } }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.accept) + " " + e.toDisplayString(u2.limitFileSize ? l2.$t("imatrixUIMessage.uploadFileTip", { fileSize: u2.limitFileSize }) : ""), 1)]), _: 1 })]), key: "0" }, v.value ? void 0 : { name: "trigger", fn: e.withCtx(() => [e.createVNode(m2, { onClick: h }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Plus))]), _: 1 })]), key: "1" }]), 1032, ["file-list"]);
30
30
  };
31
31
  } });
32
32
  module.exports = u;
@@ -9,21 +9,21 @@ const e = require("vue"), o = require("element-plus"), t = require("vue-i18n"),
9
9
  return "file-upload";
10
10
  } }, listCode: { type: String, default: null }, openCameraOrChoosePhoto: { type: String, default: "openCameraAndChoosePhoto" }, beforeUpload: { type: Function, default: () => {
11
11
  } }, watermark: { type: Object, default: () => ({}) } }, emits: ["uploadend", "remove", "pickup-file", "close"], setup(n2, { expose: i, emit: p }) {
12
- const r = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/deleteFile", { t: d } = t.useI18n(), u = e.ref(null), s = e.ref(null), c = e.ref([]), f = e.ref(null), m = navigator.userAgent;
13
- function v(e2) {
14
- p("uploadend", e2);
12
+ const r = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/deleteFile", d = p, { t: u } = t.useI18n(), s = e.ref(null), c = e.ref(null), f = e.ref([]), m = e.ref(null), v = navigator.userAgent;
13
+ function b(e2) {
14
+ d("uploadend", e2);
15
15
  }
16
- function b({ rmFiles: e2, serverFiles: t2, newFiles: l2 }) {
16
+ function y({ rmFiles: e2, serverFiles: t2, newFiles: l2 }) {
17
17
  e2 && e2.length > 0 && (e2.forEach((e3) => {
18
- e3.serverPath && c.value && c.value.indexOf(e3.serverPath) < 0 && c.value.push(e3.serverPath);
19
- }), c.value && c.value.length > 0 && window.$vueApp.config.globalProperties.$http.post(r, c.value).then(() => {
20
- o.ElMessage({ showClose: true, message: d("fsUpload.updateSuccess"), type: "success" });
21
- }), p("remove", { rmFiles: e2, serverFiles: t2, newFiles: l2 }));
18
+ e3.serverPath && f.value && f.value.indexOf(e3.serverPath) < 0 && f.value.push(e3.serverPath);
19
+ }), f.value && f.value.length > 0 && window.$vueApp.config.globalProperties.$http.post(r, f.value).then(() => {
20
+ o.ElMessage({ showClose: true, message: u("fsUpload.updateSuccess"), type: "success" });
21
+ }), d("remove", { rmFiles: e2, serverFiles: t2, newFiles: l2 }));
22
22
  }
23
- return s.value = m, m.indexOf(" uni-app ") > 0 ? u.value = "app" : u.value = "browser", i({ pickFileDone: function(e2) {
24
- "app" === u.value && f.value.pickFileDone(e2);
23
+ return c.value = v, v.indexOf(" uni-app ") > 0 ? s.value = "app" : s.value = "browser", i({ pickFileDone: function(e2) {
24
+ "app" === s.value && m.value.pickFileDone(e2);
25
25
  }, uploadFileDone: function(e2) {
26
- "app" === u.value && f.value.uploadFileDone(e2);
27
- } }), (o2, t2) => (e.openBlock(), e.createElementBlock("div", null, ["app" === u.value ? (e.openBlock(), e.createBlock(l, { key: 0, ref_key: "fileUploadRef", ref: f, "file-list": n2.fileList, multiple: n2.multiple, disabled: n2.disabled, fileInfo: n2.fileInfo, systemCode: n2.systemCode, accept: n2.accept, limit: n2.limit, limitFileSize: n2.limitFileSize, placeholder: n2.placeholder, action: n2.action, headers: n2.headers, beforeUpload: n2.beforeUpload, onSuccess: n2.onSuccess, beforeRemove: n2.beforeRemove, onRemove: [n2.onRemove, b], beforeDownload: n2.beforeDownload, pageContext: n2.pageContext, configure: n2.configure, openFsUpload: n2.openFsUpload, componentId: n2.componentId, componentName: n2.componentName, listCode: n2.listCode, openCameraOrChoosePhoto: n2.openCameraOrChoosePhoto, watermark: n2.watermark, onUploadend: v }, null, 8, ["file-list", "multiple", "disabled", "fileInfo", "systemCode", "accept", "limit", "limitFileSize", "placeholder", "action", "headers", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])) : "browser" === u.value ? (e.openBlock(), e.createBlock(a, { key: 1, ref_key: "fileUploadRef", ref: f, "file-list": n2.fileList, multiple: n2.multiple, disabled: n2.disabled, fileInfo: n2.fileInfo, systemCode: n2.systemCode, accept: n2.accept, limit: n2.limit, limitFileSize: n2.limitFileSize, placeholder: n2.placeholder, action: n2.action, headers: n2.headers, beforeUpload: n2.beforeUpload, onSuccess: n2.onSuccess, beforeRemove: n2.beforeRemove, onRemove: [n2.onRemove, b], beforeDownload: n2.beforeDownload, pageContext: n2.pageContext, configure: n2.configure, openFsUpload: n2.openFsUpload, componentId: n2.componentId, componentName: n2.componentName, listCode: n2.listCode, openCameraOrChoosePhoto: n2.openCameraOrChoosePhoto, watermark: n2.watermark, onUploadend: v }, null, 8, ["file-list", "multiple", "disabled", "fileInfo", "systemCode", "accept", "limit", "limitFileSize", "placeholder", "action", "headers", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])) : e.createCommentVNode("", true)]));
26
+ "app" === s.value && m.value.uploadFileDone(e2);
27
+ } }), (o2, t2) => (e.openBlock(), e.createElementBlock("div", null, ["app" === s.value ? (e.openBlock(), e.createBlock(l, { key: 0, ref_key: "fileUploadRef", ref: m, "file-list": n2.fileList, multiple: n2.multiple, disabled: n2.disabled, fileInfo: n2.fileInfo, systemCode: n2.systemCode, accept: n2.accept, limit: n2.limit, limitFileSize: n2.limitFileSize, placeholder: n2.placeholder, action: n2.action, headers: n2.headers, beforeUpload: n2.beforeUpload, onSuccess: n2.onSuccess, beforeRemove: n2.beforeRemove, onRemove: [n2.onRemove, y], beforeDownload: n2.beforeDownload, pageContext: n2.pageContext, configure: n2.configure, openFsUpload: n2.openFsUpload, componentId: n2.componentId, componentName: n2.componentName, listCode: n2.listCode, openCameraOrChoosePhoto: n2.openCameraOrChoosePhoto, watermark: n2.watermark, onUploadend: b }, null, 8, ["file-list", "multiple", "disabled", "fileInfo", "systemCode", "accept", "limit", "limitFileSize", "placeholder", "action", "headers", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])) : "browser" === s.value ? (e.openBlock(), e.createBlock(a, { key: 1, ref_key: "fileUploadRef", ref: m, "file-list": n2.fileList, multiple: n2.multiple, disabled: n2.disabled, fileInfo: n2.fileInfo, systemCode: n2.systemCode, accept: n2.accept, limit: n2.limit, limitFileSize: n2.limitFileSize, placeholder: n2.placeholder, action: n2.action, headers: n2.headers, beforeUpload: n2.beforeUpload, onSuccess: n2.onSuccess, beforeRemove: n2.beforeRemove, onRemove: [n2.onRemove, y], beforeDownload: n2.beforeDownload, pageContext: n2.pageContext, configure: n2.configure, openFsUpload: n2.openFsUpload, componentId: n2.componentId, componentName: n2.componentName, listCode: n2.listCode, openCameraOrChoosePhoto: n2.openCameraOrChoosePhoto, watermark: n2.watermark, onUploadend: b }, null, 8, ["file-list", "multiple", "disabled", "fileInfo", "systemCode", "accept", "limit", "limitFileSize", "placeholder", "action", "headers", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])) : e.createCommentVNode("", true)]));
28
28
  } });
29
29
  module.exports = n;
@@ -5,28 +5,28 @@ const e = require("vue"), t = require("../../src/utils/common-util.cjs"), o = re
5
5
  } }, beforeDownload: { type: Function, default: () => {
6
6
  } }, pageContext: { type: Object, default: () => ({}) }, configure: { type: Object, default: () => ({}) }, beforeUpload: { type: Function, default: () => {
7
7
  } }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, limit: { type: Number, default: 0 }, watermark: { type: Object, default: () => ({}) } }, emits: ["on-error"], setup(u2, { emit: p }) {
8
- const c = u2, { t: f } = r.useI18n(), m = t.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), b = t.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI), g = e.ref(""), v = e.ref(), y = e.ref(false), h = e.ref(""), w = e.ref(0), x = e.ref(c.limitFileSize), N = e.computed(() => {
9
- const e2 = Math.max(0, Math.min(100, Number(w.value || 0)));
8
+ const c = p, { t: f } = r.useI18n(), m = u2, b = t.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), g = t.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI), v = e.ref(""), y = e.ref(), h = e.ref(false), w = e.ref(""), x = e.ref(0), N = e.ref(m.limitFileSize), C = e.computed(() => {
9
+ const e2 = Math.max(0, Math.min(100, Number(x.value || 0)));
10
10
  return { background: `linear-gradient(90deg, #409EFF ${e2}%, rgba(255,255,255,0.92) ${e2}%)`, color: e2 >= 50 ? "#fff" : "#303133", transition: "background 0.3s linear" };
11
11
  });
12
- if (c.action)
13
- g.value = c.action;
12
+ if (m.action)
13
+ v.value = m.action;
14
14
  else {
15
- let e2 = m + "/common/fs-upload";
16
- t.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (e2 = b + "/component/super-form/uploads"), g.value = e2;
15
+ let e2 = b + "/common/fs-upload";
16
+ t.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (e2 = g + "/component/super-form/uploads"), v.value = e2;
17
17
  }
18
- c.headers && c.headers.Authorization || (c.headers.Authorization = o.getToken());
19
- const C = (e2) => {
18
+ m.headers && m.headers.Authorization || (m.headers.Authorization = o.getToken());
19
+ const S = (e2) => {
20
20
  var _a;
21
- if (0 !== ((_a = c.fileList) == null ? void 0 : _a.length) && c.limit > 0 && c.fileList.length >= c.limit)
22
- return a.ElMessage({ type: "warning", message: f("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + c.limit, showClose: true }), false;
23
- if (x.value || (x.value = 30), e2.size > 1024 * x.value * 1024)
24
- return a.ElMessage({ type: "warning", message: f("imatrixUIMessage.exceedFileSize", { fileSize: x.value }), showClose: true }), false;
25
- return c.beforeUpload({ fileObj: e2, files: [e2], isMobile: false, pageContext: c.pageContext, configureObj: c.configure });
26
- }, S = (e2, t2, o2) => {
27
- a.ElMessage({ message: f("fsUpload.uploadSucceeded"), type: "success", placement: "top" }), c.fileList.push({ showName: e2.name, serverPath: e2.serverPath }), c.onSuccess(e2, t2, o2), y.value = false, w.value = 0;
28
- }, k = (e2, t2) => {
29
- y.value = false, w.value = 0;
21
+ if (0 !== ((_a = m.fileList) == null ? void 0 : _a.length) && m.limit > 0 && m.fileList.length >= m.limit)
22
+ return a.ElMessage({ type: "warning", message: f("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + m.limit, showClose: true }), false;
23
+ if (N.value || (N.value = 30), e2.size > 1024 * N.value * 1024)
24
+ return a.ElMessage({ type: "warning", message: f("imatrixUIMessage.exceedFileSize", { fileSize: N.value }), showClose: true }), false;
25
+ return m.beforeUpload({ fileObj: e2, files: [e2], isMobile: false, pageContext: m.pageContext, configureObj: m.configure });
26
+ }, k = (e2, t2, o2) => {
27
+ a.ElMessage({ message: f("fsUpload.uploadSucceeded"), type: "success", placement: "top" }), m.fileList.push({ showName: e2.name, serverPath: e2.serverPath }), m.onSuccess(e2, t2, o2), h.value = false, x.value = 0;
28
+ }, B = (e2, t2) => {
29
+ h.value = false, x.value = 0;
30
30
  let o2 = f("fsUpload.uploadFailed");
31
31
  try {
32
32
  const e3 = t2 && t2.xhr && (t2.xhr.response || t2.xhr.responseText);
@@ -36,20 +36,20 @@ const e = require("vue"), t = require("../../src/utils/common-util.cjs"), o = re
36
36
  }
37
37
  } catch (e3) {
38
38
  }
39
- a.ElMessage({ type: "error", message: o2 }), p("on-error", e2);
39
+ a.ElMessage({ type: "error", message: o2 }), c("on-error", e2);
40
40
  };
41
- function B(e2, t2, o2) {
41
+ function F(e2, t2, o2) {
42
42
  try {
43
- h.value = t2.name;
43
+ w.value = t2.name;
44
44
  const o3 = e2 && e2.percent ? Math.floor(e2.percent) : 0;
45
- y.value = true, w.value = 100 === o3 ? 99 : o3;
45
+ h.value = true, x.value = 100 === o3 ? 99 : o3;
46
46
  } catch (e3) {
47
- y.value = false, w.value = 0;
47
+ h.value = false, x.value = 0;
48
48
  }
49
49
  }
50
50
  return (t2, o2) => {
51
51
  const a2 = e.resolveComponent("el-button"), r2 = e.resolveComponent("el-text"), p2 = e.resolveComponent("el-upload"), c2 = e.resolveComponent("el-tag");
52
- return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createElementVNode("div", i, [u2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(p2, { key: 0, ref_key: "buttonUploadRef", ref: v, class: "upload-demo", accept: u2.accept, "show-file-list": false, "auto-upload": "", headers: u2.headers, disabled: !u2.openFsUpload, action: g.value, multiple: u2.multiple, "before-upload": C, "before-remove": u2.beforeRemove, "on-success": S, "on-error": k, "on-progress": B }, { tip: e.withCtx(() => [e.createVNode(r2, null, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.accept) + " " + e.toDisplayString(t2.$t("imatrixUIMessage.uploadFileTip", { fileSize: u2.limitFileSize })), 1)]), _: 1 })]), default: e.withCtx(() => [e.createVNode(a2, { size: "small", type: "primary" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.placeholder), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "headers", "disabled", "action", "multiple", "before-remove"]))]), y.value ? (e.openBlock(), e.createElementBlock("div", s, [e.createVNode(c2, { style: e.normalizeStyle(N.value), size: "large", class: "fs-upload-tag" }, { default: e.withCtx(() => [e.createTextVNode(" 上传中: "), e.createElementVNode("span", n, e.toDisplayString(h.value), 1), e.createElementVNode("span", d, e.toDisplayString(w.value) + "%", 1)]), _: 1 }, 8, ["style"])])) : e.createCommentVNode("", true), u2.fileList && u2.fileList.length > 0 ? (e.openBlock(), e.createBlock(l, { key: 1, disabled: u2.disabled, "disabled-no-preview": u2.disabledNoPreview, "disabled-no-download": u2.disabledNoDownload, "file-list": u2.fileList, "system-code": u2.systemCode, "before-remove": u2.beforeRemove, watermark: u2.watermark, "on-remove": u2.onRemove, "before-download": u2.beforeDownload, downloadable: u2.downloadable }, null, 8, ["disabled", "disabled-no-preview", "disabled-no-download", "file-list", "system-code", "before-remove", "watermark", "on-remove", "before-download", "downloadable"])) : e.createCommentVNode("", true)], 64);
52
+ return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createElementVNode("div", i, [u2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(p2, { key: 0, ref_key: "buttonUploadRef", ref: y, class: "upload-demo", accept: u2.accept, "show-file-list": false, "auto-upload": "", headers: u2.headers, disabled: !u2.openFsUpload, action: v.value, multiple: u2.multiple, "before-upload": S, "before-remove": u2.beforeRemove, "on-success": k, "on-error": B, "on-progress": F }, { tip: e.withCtx(() => [e.createVNode(r2, null, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.accept) + " " + e.toDisplayString(t2.$t("imatrixUIMessage.uploadFileTip", { fileSize: u2.limitFileSize })), 1)]), _: 1 })]), default: e.withCtx(() => [e.createVNode(a2, { size: "small", type: "primary" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.placeholder), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "headers", "disabled", "action", "multiple", "before-remove"]))]), h.value ? (e.openBlock(), e.createElementBlock("div", s, [e.createVNode(c2, { style: e.normalizeStyle(C.value), size: "large", class: "fs-upload-tag" }, { default: e.withCtx(() => [o2[0] || (o2[0] = e.createTextVNode(" 上传中: ", -1)), e.createElementVNode("span", n, e.toDisplayString(w.value), 1), e.createElementVNode("span", d, e.toDisplayString(x.value) + "%", 1)]), _: 1 }, 8, ["style"])])) : e.createCommentVNode("", true), u2.fileList && u2.fileList.length > 0 ? (e.openBlock(), e.createBlock(l, { key: 1, disabled: u2.disabled, "disabled-no-preview": u2.disabledNoPreview, "disabled-no-download": u2.disabledNoDownload, "file-list": u2.fileList, "system-code": u2.systemCode, "before-remove": u2.beforeRemove, watermark: u2.watermark, "on-remove": u2.onRemove, "before-download": u2.beforeDownload, downloadable: u2.downloadable }, null, 8, ["disabled", "disabled-no-preview", "disabled-no-download", "file-list", "system-code", "before-remove", "watermark", "on-remove", "before-download", "downloadable"])) : e.createCommentVNode("", true)], 64);
53
53
  };
54
54
  } });
55
55
  module.exports = u;
@@ -5,28 +5,28 @@ const e = require("vue"), t = require("@element-plus/icons-vue"), o = require(".
5
5
  } }, beforeDownload: { type: Function, default: () => {
6
6
  } }, pageContext: { type: Object, default: () => ({}) }, configure: { type: Object, default: () => ({}) }, beforeUpload: { type: Function, default: () => {
7
7
  } }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, limit: { type: Number, default: 0 }, watermark: { type: Object, default: () => ({}) } }, emits: ["on-error"], setup(p2, { emit: c }) {
8
- const f = p2, { t: m } = i.useI18n(), g = o.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), v = o.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI), y = e.ref(""), b = e.ref(f.limitFileSize), h = e.ref(false), w = e.ref(""), x = e.ref(0), N = e.ref(), C = e.computed(() => {
9
- const e2 = Math.max(0, Math.min(100, Number(x.value || 0)));
8
+ const f = c, { t: m } = i.useI18n(), g = p2, v = o.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), y = o.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI), b = e.ref(""), h = e.ref(g.limitFileSize), w = e.ref(false), x = e.ref(""), N = e.ref(0), C = e.ref(), S = e.computed(() => {
9
+ const e2 = Math.max(0, Math.min(100, Number(N.value || 0)));
10
10
  return { background: `linear-gradient(90deg, #409EFF ${e2}%, rgba(255,255,255,0.92) ${e2}%)`, color: e2 >= 50 ? "#fff" : "#303133", transition: "background 0.3s linear" };
11
11
  });
12
- if (f.action)
13
- y.value = f.action;
12
+ if (g.action)
13
+ b.value = g.action;
14
14
  else {
15
- let e2 = g + "/common/fs-upload";
16
- o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (e2 = v + "/component/super-form/uploads"), y.value = e2;
15
+ let e2 = v + "/common/fs-upload";
16
+ o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (e2 = y + "/component/super-form/uploads"), b.value = e2;
17
17
  }
18
- f.headers && f.headers.Authorization || (f.headers.Authorization = l.getToken());
19
- const S = (e2) => {
18
+ g.headers && g.headers.Authorization || (g.headers.Authorization = l.getToken());
19
+ const k = (e2) => {
20
20
  var _a;
21
- if (0 !== ((_a = f.fileList) == null ? void 0 : _a.length) && f.limit > 0 && f.fileList.length >= f.limit)
22
- return r.ElMessage({ type: "warning", message: m("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + f.limit, showClose: true }), false;
23
- if (b.value || (b.value = 30), e2.size > 1024 * b.value * 1024)
24
- return r.ElMessage({ type: "warning", message: m("imatrixUIMessage.exceedFileSize", { fileSize: b.value }), showClose: true }), false;
25
- return f.beforeUpload({ fileObj: e2, files: [e2], isMobile: false, pageContext: f.pageContext, configureObj: f.configure });
26
- }, k = (e2, t2, o2) => {
27
- r.ElMessage.success(m("fsUpload.uploadSucceeded")), f.fileList.push({ showName: e2.name, serverPath: e2.serverPath }), f.onSuccess(e2, t2, o2), h.value = false, x.value = 0;
28
- }, B = (e2, t2) => {
29
- h.value = false, x.value = 0;
21
+ if (0 !== ((_a = g.fileList) == null ? void 0 : _a.length) && g.limit > 0 && g.fileList.length >= g.limit)
22
+ return r.ElMessage({ type: "warning", message: m("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + g.limit, showClose: true }), false;
23
+ if (h.value || (h.value = 30), e2.size > 1024 * h.value * 1024)
24
+ return r.ElMessage({ type: "warning", message: m("imatrixUIMessage.exceedFileSize", { fileSize: h.value }), showClose: true }), false;
25
+ return g.beforeUpload({ fileObj: e2, files: [e2], isMobile: false, pageContext: g.pageContext, configureObj: g.configure });
26
+ }, B = (e2, t2, o2) => {
27
+ r.ElMessage.success(m("fsUpload.uploadSucceeded")), g.fileList.push({ showName: e2.name, serverPath: e2.serverPath }), g.onSuccess(e2, t2, o2), w.value = false, N.value = 0;
28
+ }, F = (e2, t2) => {
29
+ w.value = false, N.value = 0;
30
30
  let o2 = m("fsUpload.uploadFailed");
31
31
  try {
32
32
  const e3 = t2 && t2.xhr && (t2.xhr.response || t2.xhr.responseText);
@@ -36,20 +36,20 @@ const e = require("vue"), t = require("@element-plus/icons-vue"), o = require(".
36
36
  }
37
37
  } catch (e3) {
38
38
  }
39
- r.ElMessage({ type: "error", message: o2 }), c("on-error", e2);
39
+ r.ElMessage({ type: "error", message: o2 }), f("on-error", e2);
40
40
  };
41
- function F(e2, t2, o2) {
41
+ function U(e2, t2, o2) {
42
42
  try {
43
- w.value = t2.name;
43
+ x.value = t2.name;
44
44
  const o3 = e2 && e2.percent ? Math.floor(e2.percent) : 0;
45
- h.value = true, x.value = 100 === o3 ? 99 : o3;
45
+ w.value = true, N.value = 100 === o3 ? 99 : o3;
46
46
  } catch (e3) {
47
- h.value = false, x.value = 0;
47
+ w.value = false, N.value = 0;
48
48
  }
49
49
  }
50
50
  return (o2, l2) => {
51
51
  const r2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("el-text"), c2 = e.resolveComponent("el-upload"), f2 = e.resolveComponent("el-tag");
52
- return e.openBlock(), e.createElementBlock(e.Fragment, null, [p2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(c2, { key: 0, ref_key: "buttonUploadRef", ref: N, class: "upload-demo", style: { width: "100%" }, accept: p2.accept, "show-file-list": false, drag: "", headers: p2.headers, action: y.value, multiple: p2.multiple, "before-upload": S, "on-success": k, "before-remove": p2.beforeRemove, "on-error": B, "on-progress": F }, { tip: e.withCtx(() => [e.createVNode(i2, null, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(p2.accept) + " " + e.toDisplayString(o2.$t("imatrixUIMessage.uploadFileTip", { fileSize: p2.limitFileSize })), 1)]), _: 1 })]), default: e.withCtx(() => [e.createVNode(r2, { class: "el-icon--upload" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.UploadFilled))]), _: 1 }), e.createElementVNode("div", s, e.toDisplayString(p2.placeholder), 1)]), _: 1 }, 8, ["accept", "headers", "action", "multiple", "before-remove"])), h.value ? (e.openBlock(), e.createElementBlock("div", n, [e.createVNode(f2, { style: e.normalizeStyle(C.value), size: "large", class: "fs-upload-tag" }, { default: e.withCtx(() => [e.createTextVNode(" 上传中: "), e.createElementVNode("span", d, e.toDisplayString(w.value), 1), e.createElementVNode("span", u, e.toDisplayString(x.value) + "%", 1)]), _: 1 }, 8, ["style"])])) : e.createCommentVNode("", true), p2.fileList && p2.fileList.length > 0 ? (e.openBlock(), e.createBlock(a, { key: 2, disabled: p2.disabled, "disabled-no-preview": p2.disabledNoPreview, "disabled-no-download": p2.disabledNoDownload, "file-list": p2.fileList, "system-code": p2.systemCode, watermark: p2.watermark, "before-remove": p2.beforeRemove, "on-remove": p2.onRemove, "before-download": p2.beforeDownload }, null, 8, ["disabled", "disabled-no-preview", "disabled-no-download", "file-list", "system-code", "watermark", "before-remove", "on-remove", "before-download"])) : e.createCommentVNode("", true)], 64);
52
+ return e.openBlock(), e.createElementBlock(e.Fragment, null, [p2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(c2, { key: 0, ref_key: "buttonUploadRef", ref: C, class: "upload-demo", style: { width: "100%" }, accept: p2.accept, "show-file-list": false, drag: "", headers: p2.headers, action: b.value, multiple: p2.multiple, "before-upload": k, "on-success": B, "before-remove": p2.beforeRemove, "on-error": F, "on-progress": U }, { tip: e.withCtx(() => [e.createVNode(i2, null, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(p2.accept) + " " + e.toDisplayString(o2.$t("imatrixUIMessage.uploadFileTip", { fileSize: p2.limitFileSize })), 1)]), _: 1 })]), default: e.withCtx(() => [e.createVNode(r2, { class: "el-icon--upload" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.UploadFilled))]), _: 1 }), e.createElementVNode("div", s, e.toDisplayString(p2.placeholder), 1)]), _: 1 }, 8, ["accept", "headers", "action", "multiple", "before-remove"])), w.value ? (e.openBlock(), e.createElementBlock("div", n, [e.createVNode(f2, { style: e.normalizeStyle(S.value), size: "large", class: "fs-upload-tag" }, { default: e.withCtx(() => [l2[0] || (l2[0] = e.createTextVNode(" 上传中: ", -1)), e.createElementVNode("span", d, e.toDisplayString(x.value), 1), e.createElementVNode("span", u, e.toDisplayString(N.value) + "%", 1)]), _: 1 }, 8, ["style"])])) : e.createCommentVNode("", true), p2.fileList && p2.fileList.length > 0 ? (e.openBlock(), e.createBlock(a, { key: 2, disabled: p2.disabled, "disabled-no-preview": p2.disabledNoPreview, "disabled-no-download": p2.disabledNoDownload, "file-list": p2.fileList, "system-code": p2.systemCode, watermark: p2.watermark, "before-remove": p2.beforeRemove, "on-remove": p2.onRemove, "before-download": p2.beforeDownload }, null, 8, ["disabled", "disabled-no-preview", "disabled-no-download", "file-list", "system-code", "watermark", "before-remove", "on-remove", "before-download"])) : e.createCommentVNode("", true)], 64);
53
53
  };
54
54
  } });
55
55
  module.exports = p;
@@ -4,53 +4,53 @@ const e = require("vue"), o = require("@element-plus/icons-vue"), t = require(".
4
4
  } }, beforeDownload: { type: Function, default: () => {
5
5
  } }, file: { type: Object, default: null }, baseURL: { type: String, default: null }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, watermark: { type: Object, default: () => ({}) } }, emits: ["remove"], setup(f2, { emit: v }) {
6
6
  var _a, _b, _c, _d, _e;
7
- const k = f2, { t: h } = n.useI18n();
8
- let g = k.baseURL ? k.baseURL : window.$vueApp.config.globalProperties.baseURL, N = window.$vueApp.config.globalProperties.baseAPI;
9
- g = t.getRelativeBaseUrl(g), N = t.getRelativeBaseUrl(N), k.watermark.content || (k.watermark.isShowWatermark = void 0 === ((_b = (_a = k.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = k.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", k.watermark.content = (_e = (_d = k.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content);
10
- const b = e.ref(false), y = e.ref({}), C = e.ref([]), B = e.ref(t.isMobileBrowser());
11
- let P = null;
7
+ const { t: k } = n.useI18n(), h = f2;
8
+ let g = h.baseURL ? h.baseURL : window.$vueApp.config.globalProperties.baseURL, N = window.$vueApp.config.globalProperties.baseAPI;
9
+ g = t.getRelativeBaseUrl(g), N = t.getRelativeBaseUrl(N), h.watermark.content || (h.watermark.isShowWatermark = void 0 === ((_b = (_a = h.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = h.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", h.watermark.content = (_e = (_d = h.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content);
10
+ const b = e.ref(false), y = e.ref({}), C = e.ref([]), B = e.ref(t.isMobileBrowser()), P = v;
11
+ let V = null;
12
12
  i.getWatermarkSetting().then((e2) => {
13
- P = e2;
13
+ V = e2;
14
14
  });
15
- const V = (e2) => {
16
- x(k.beforeDownload) ? k.beforeDownload(k.pageContext, k.configure, e2).then((o2) => {
17
- false === o2 || R(e2);
18
- }) : false === k.beforeDownload(k.pageContext, k.configure, e2) || R(e2);
19
- }, R = (e2) => {
15
+ const R = (e2) => {
16
+ S(h.beforeDownload) ? h.beforeDownload(h.pageContext, h.configure, e2).then((o2) => {
17
+ false === o2 || U(e2);
18
+ }) : false === h.beforeDownload(h.pageContext, h.configure, e2) || U(e2);
19
+ }, U = (e2) => {
20
20
  var _a2, _b2;
21
21
  const o2 = l.getToken(), a2 = (e2.showName ? e2.showName : e2.name).replace("#", "~~").replace("?", "~$").replace("&", "$");
22
22
  let r2 = false;
23
- P && P.useRange && P.useRange.indexOf("annex") >= 0 && (r2 = (_a2 = k.watermark) == null ? void 0 : _a2.isShowWatermark);
24
- let n2 = (_b2 = k.watermark) == null ? void 0 : _b2.content;
23
+ V && V.useRange && V.useRange.indexOf("annex") >= 0 && (r2 = (_a2 = h.watermark) == null ? void 0 : _a2.isShowWatermark);
24
+ let n2 = (_b2 = h.watermark) == null ? void 0 : _b2.content;
25
25
  n2 || (n2 = "");
26
26
  let i2 = g + "/common/super-form/downloads?showName=" + encodeURI(a2) + "&serverPath=" + e2.serverPath + "&jwt=" + o2 + "&isShowWatermark=" + r2 + "&watermark=" + encodeURI(n2);
27
- t.isPlateSys(k.systemCode) && (i2 = N + "/component/super-form/downloads?showName=" + encodeURI(a2) + "&serverPath=" + e2.serverPath + "&jwt=" + o2), window.location.href = i2;
28
- }, U = (e2) => {
27
+ t.isPlateSys(h.systemCode) && (i2 = N + "/component/super-form/downloads?showName=" + encodeURI(a2) + "&serverPath=" + e2.serverPath + "&jwt=" + o2), window.location.href = i2;
28
+ }, x = (e2) => {
29
29
  let o2 = true;
30
- if (k.beforeRemove && "function" == typeof k.beforeRemove) {
30
+ if (h.beforeRemove && "function" == typeof h.beforeRemove) {
31
31
  const t3 = true;
32
- o2 = k.beforeRemove(k.pageContext, k.configure, e2, t3);
32
+ o2 = h.beforeRemove(h.pageContext, h.configure, e2, t3);
33
33
  }
34
34
  if (void 0 !== o2 && !o2)
35
35
  return;
36
- const t2 = k.fileList.findIndex((o3) => o3.serverPath === e2.uuid || o3.serverPath === e2.serverPath);
37
- k.fileList, k.fileList.splice(t2, 1), v("remove", { file: e2, index: t2 }), k.onRemove(e2);
38
- }, x = (e2) => e2 && "[object Promise]" === Object.prototype.toString.call(e2), S = (e2, o2) => {
39
- if (k.fileList, k.disabled && k.disabledNoPreview)
36
+ const t2 = h.fileList.findIndex((o3) => o3.serverPath === e2.uuid || o3.serverPath === e2.serverPath);
37
+ h.fileList, h.fileList.splice(t2, 1), P("remove", { file: e2, index: t2 }), h.onRemove(e2);
38
+ }, S = (e2) => e2 && "[object Promise]" === Object.prototype.toString.call(e2), _ = (e2, o2) => {
39
+ if (h.fileList, h.disabled && h.disabledNoPreview)
40
40
  return;
41
41
  let t2 = false;
42
42
  if (e2 && a.isImage(e2) && (t2 = true), t2) {
43
- y.value.src = j(e2, o2);
43
+ y.value.src = I(e2, o2);
44
44
  const t3 = [];
45
- k.fileList.forEach((e3) => {
45
+ h.fileList.forEach((e3) => {
46
46
  const o3 = e3.showName ? e3.showName : e3.name;
47
- t3.push(j(o3, e3.serverPath));
47
+ t3.push(I(o3, e3.serverPath));
48
48
  }), C.value = t3, b.value = true;
49
49
  } else
50
- _(e2, o2);
51
- }, _ = (e2, o2) => {
50
+ j(e2, o2);
51
+ }, j = (e2, o2) => {
52
52
  const a2 = l.getToken();
53
- if (e2 = e2 = I(e2), window.$vueApp.config.globalProperties.customPreviewUrl)
53
+ if (e2 = e2 = E(e2), window.$vueApp.config.globalProperties.customPreviewUrl)
54
54
  window.open(t.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + o2 + "&showName=" + encodeURI(e2), e2);
55
55
  else {
56
56
  let l2, r2 = g;
@@ -63,22 +63,22 @@ const e = require("vue"), o = require("@element-plus/icons-vue"), t = require(".
63
63
  l2 = r2 + "/common/fs-upload/preview?jwt=" + a2, l2 = l2 + "&showName=" + encodeURI(e2) + "&serverPath=" + o2, l2 = t.getRelativeBaseUrl(l2), window.open(l2, e2);
64
64
  }
65
65
  };
66
- function j(e2, o2) {
66
+ function I(e2, o2) {
67
67
  var _a2, _b2;
68
- e2 = I(e2);
68
+ e2 = E(e2);
69
69
  const a2 = l.getToken();
70
70
  let r2 = false;
71
- P && P.useRange && P.useRange.indexOf("annex") >= 0 && (r2 = (_a2 = k.watermark) == null ? void 0 : _a2.isShowWatermark);
72
- let n2 = (_b2 = k.watermark) == null ? void 0 : _b2.content;
71
+ V && V.useRange && V.useRange.indexOf("annex") >= 0 && (r2 = (_a2 = h.watermark) == null ? void 0 : _a2.isShowWatermark);
72
+ let n2 = (_b2 = h.watermark) == null ? void 0 : _b2.content;
73
73
  n2 || (n2 = "");
74
74
  let i2 = g + "/common/super-form/downloads?jwt=" + a2 + "&isShowWatermark=" + r2 + "&watermark=" + encodeURI(n2);
75
- return t.isPlateSys(k.systemCode) && (i2 = N + "/component/super-form/downloads?jwt=" + a2 + "&isShowWatermark=" + r2 + "&watermark=" + encodeURI(n2)), i2 = t.getReplaceUrlDomain(i2), i2 + "&showName=" + encodeURI(e2) + "&serverPath=" + o2;
75
+ return t.isPlateSys(h.systemCode) && (i2 = N + "/component/super-form/downloads?jwt=" + a2 + "&isShowWatermark=" + r2 + "&watermark=" + encodeURI(n2)), i2 = t.getReplaceUrlDomain(i2), i2 + "&showName=" + encodeURI(e2) + "&serverPath=" + o2;
76
76
  }
77
- const I = (e2) => (e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2);
77
+ const E = (e2) => (e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2);
78
78
  return (t2, l2) => {
79
- const n2 = e.resolveComponent("super-icon"), i2 = e.resolveComponent("el-tooltip"), v2 = e.resolveComponent("el-tag"), k2 = e.resolveComponent("zoom-in"), g2 = e.resolveComponent("el-icon"), N2 = e.resolveComponent("Delete"), P2 = e.resolveComponent("el-image"), R2 = e.resolveComponent("el-dialog");
80
- return e.openBlock(), e.createElementBlock("div", null, [B.value ? (e.openBlock(), e.createElementBlock("span", w, [(x2 = f2.file.showName ? f2.file.showName : f2.file.name, !B.value || x2 && a.isImage(x2) ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: "el-upload-list__item-preview", onClick: l2[0] || (l2[0] = (e2) => S(f2.file.showName ? f2.file.showName : f2.file.name, f2.file.serverPath)) }, [e.createVNode(g2, null, { default: e.withCtx(() => [e.createVNode(k2)]), _: 1 })])) : e.createCommentVNode("", true)), f2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("span", { key: 1, class: "el-upload-list__item-delete", onClick: l2[1] || (l2[1] = (e2) => V(f2.file)) }, [e.createVNode(g2, null, { default: e.withCtx(() => [e.createVNode(e.unref(o.Download))]), _: 1 })])), f2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("span", { key: 2, class: "el-upload-list__item-delete", onClick: l2[2] || (l2[2] = (e2) => U(f2.file)) }, [e.createVNode(g2, null, { default: e.withCtx(() => [e.createVNode(N2)]), _: 1 })]))])) : (e.openBlock(), e.createElementBlock("div", s, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(f2.fileList, (o2, t3) => (e.openBlock(), e.createElementBlock("div", { key: t3, style: { width: "100%" } }, [e.createVNode(v2, { color: "white", size: "large", class: "amb-fs-preview-tag" }, { default: e.withCtx(() => [e.createElementVNode("div", c, [e.createVNode(n2, { iconValue: e.unref(r.getFileIconByName)(o2.showName) }, null, 8, ["iconValue"]), f2.disabled && f2.disabledNoPreview ? (e.openBlock(), e.createElementBlock("span", d, [e.createElementVNode("span", m, e.toDisplayString(o2.showName), 1)])) : e.createCommentVNode("", true), f2.disabled && f2.disabledNoPreview ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 1, content: e.unref(h)("fsUpload.preview"), placement: "top" }, { default: e.withCtx(() => [e.createElementVNode("span", { style: { cursor: "pointer" }, onClick: (e2) => S(o2.showName, o2.serverPath) }, [e.createElementVNode("span", u, e.toDisplayString(o2.showName), 1)], 8, p)]), _: 2 }, 1032, ["content"])), f2.disabled && f2.disabledNoDownload ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 2, content: e.unref(h)("fsUpload.download"), placement: "top" }, { default: e.withCtx(() => [e.createVNode(n2, { class: "fs-preview-icon", onClick: (e2) => V(o2), iconValue: "amb-color-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), f2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 3, content: e.unref(h)("fsUpload.delete"), placement: "top" }, { default: e.withCtx(() => [e.createVNode(n2, { class: "fs-preview-icon", onClick: (e2) => U(o2), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"]))])]), _: 2 }, 1024)]))), 128))])), e.createVNode(R2, { modelValue: b.value, "onUpdate:modelValue": l2[3] || (l2[3] = (e2) => b.value = e2), title: e.unref(h)("fsUpload.preview"), width: "500" }, { default: e.withCtx(() => [e.createVNode(P2, { "preview-src-list": C.value, src: y.value.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"])]);
81
- var x2;
79
+ const n2 = e.resolveComponent("super-icon"), i2 = e.resolveComponent("el-tooltip"), v2 = e.resolveComponent("el-tag"), h2 = e.resolveComponent("zoom-in"), g2 = e.resolveComponent("el-icon"), N2 = e.resolveComponent("Delete"), P2 = e.resolveComponent("el-image"), V2 = e.resolveComponent("el-dialog");
80
+ return e.openBlock(), e.createElementBlock("div", null, [B.value ? (e.openBlock(), e.createElementBlock("span", w, [(U2 = f2.file.showName ? f2.file.showName : f2.file.name, !B.value || U2 && a.isImage(U2) ? (e.openBlock(), e.createElementBlock("span", { key: 0, class: "el-upload-list__item-preview", onClick: l2[0] || (l2[0] = (e2) => _(f2.file.showName ? f2.file.showName : f2.file.name, f2.file.serverPath)) }, [e.createVNode(g2, null, { default: e.withCtx(() => [e.createVNode(h2)]), _: 1 })])) : e.createCommentVNode("", true)), f2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("span", { key: 1, class: "el-upload-list__item-delete", onClick: l2[1] || (l2[1] = (e2) => R(f2.file)) }, [e.createVNode(g2, null, { default: e.withCtx(() => [e.createVNode(e.unref(o.Download))]), _: 1 })])), f2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("span", { key: 2, class: "el-upload-list__item-delete", onClick: l2[2] || (l2[2] = (e2) => x(f2.file)) }, [e.createVNode(g2, null, { default: e.withCtx(() => [e.createVNode(N2)]), _: 1 })]))])) : (e.openBlock(), e.createElementBlock("div", s, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(f2.fileList, (o2, t3) => (e.openBlock(), e.createElementBlock("div", { key: t3, style: { width: "100%" } }, [e.createVNode(v2, { color: "white", size: "large", class: "amb-fs-preview-tag" }, { default: e.withCtx(() => [e.createElementVNode("div", c, [e.createVNode(n2, { iconValue: e.unref(r.getFileIconByName)(o2.showName) }, null, 8, ["iconValue"]), f2.disabled && f2.disabledNoPreview ? (e.openBlock(), e.createElementBlock("span", d, [e.createElementVNode("span", m, e.toDisplayString(o2.showName), 1)])) : e.createCommentVNode("", true), f2.disabled && f2.disabledNoPreview ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 1, content: e.unref(k)("fsUpload.preview"), placement: "top" }, { default: e.withCtx(() => [e.createElementVNode("span", { style: { cursor: "pointer" }, onClick: (e2) => _(o2.showName, o2.serverPath) }, [e.createElementVNode("span", u, e.toDisplayString(o2.showName), 1)], 8, p)]), _: 2 }, 1032, ["content"])), f2.disabled && f2.disabledNoDownload ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 2, content: e.unref(k)("fsUpload.download"), placement: "top" }, { default: e.withCtx(() => [e.createVNode(n2, { class: "fs-preview-icon", onClick: (e2) => R(o2), iconValue: "amb-color-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), f2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 3, content: e.unref(k)("fsUpload.delete"), placement: "top" }, { default: e.withCtx(() => [e.createVNode(n2, { class: "fs-preview-icon", onClick: (e2) => x(o2), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"]))])]), _: 2 }, 1024)]))), 128))])), e.createVNode(V2, { modelValue: b.value, "onUpdate:modelValue": l2[3] || (l2[3] = (e2) => b.value = e2), title: e.unref(k)("fsUpload.preview"), width: "500" }, { default: e.withCtx(() => [e.createVNode(P2, { "preview-src-list": C.value, src: y.value.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"])]);
81
+ var U2;
82
82
  };
83
83
  } });
84
84
  module.exports = f;