yc-vep-ui 0.3.56 → 0.3.58

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.
@@ -2192,7 +2192,7 @@ var _hoisted_1$4 = { style: {
2192
2192
  }), StaffSelect_exports = /* @__PURE__ */ __exportAll$1({ default: () => StaffSelect_default }), StaffSelect_default = index_vue_vue_type_script_setup_true_lang_default$3, _hoisted_1$3 = { class: "file-left" }, _hoisted_2$1 = { class: "file-name" }, _hoisted_3 = {
2193
2193
  key: 0,
2194
2194
  class: "file-size"
2195
- }, _hoisted_4 = ["onClick"], _hoisted_5 = ["onClick"], _hoisted_6 = { class: "file-actions" }, _hoisted_7 = {
2195
+ }, _hoisted_4 = ["onClick"], _hoisted_5 = ["onClick"], _hoisted_6 = ["onClick"], _hoisted_7 = { class: "file-actions" }, _hoisted_8 = {
2196
2196
  key: 0,
2197
2197
  class: "success-icon"
2198
2198
  }, file_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
@@ -2230,11 +2230,14 @@ var _hoisted_1$4 = { style: {
2230
2230
  function y(e) {
2231
2231
  if (!e.downloadUrl) return;
2232
2232
  let n = document.createElement("a");
2233
- n.href = e.downloadUrl, n.download = e.name || "download", document.body.appendChild(n), n.click(), document.body.removeChild(n);
2233
+ n.href = e.downloadUrl?.includes("token") ? e.downloadUrl : `${e.downloadUrl}?token=${localStorage.getItem("TOKEN")}`, n.download = e.name || "download", document.body.appendChild(n), n.click(), document.body.removeChild(n);
2234
+ }
2235
+ function b(e) {
2236
+ e.downloadUrl && (navigator.clipboard.writeText(e.downloadUrl), VepMessage.success("复制成功"));
2234
2237
  }
2235
2238
  return (e, r) => {
2236
- let l = resolveComponent("el-button"), b = resolveComponent("el-upload");
2237
- return openBlock(), createBlock(b, mergeProps(e.$attrs, {
2239
+ let l = resolveComponent("el-button"), x = resolveComponent("el-upload");
2240
+ return openBlock(), createBlock(x, mergeProps(e.$attrs, {
2238
2241
  style: { width: "100%" },
2239
2242
  action: n.action,
2240
2243
  "file-list": d.value,
@@ -2262,11 +2265,16 @@ var _hoisted_1$4 = { style: {
2262
2265
  class: "download-btn",
2263
2266
  onClick: withModifiers((n) => y(e), ["stop"])
2264
2267
  }, "下载", 8, _hoisted_4)) : createCommentVNode("", !0),
2268
+ e.downloadUrl ? (openBlock(), createElementBlock("span", {
2269
+ key: 2,
2270
+ class: "copy-btn",
2271
+ onClick: withModifiers((n) => b(e), ["stop"])
2272
+ }, "复制", 8, _hoisted_5)) : createCommentVNode("", !0),
2265
2273
  createElementVNode("span", {
2266
2274
  class: "remove-btn",
2267
2275
  onClick: withModifiers((n) => v(e), ["stop"])
2268
- }, "删除", 8, _hoisted_5)
2269
- ]), createElementVNode("div", _hoisted_6, [u.value !== !1 && (e.status === "success" || !e.status) ? (openBlock(), createElementBlock("span", _hoisted_7, [...r[2] ||= [createElementVNode("svg", {
2276
+ }, "删除", 8, _hoisted_6)
2277
+ ]), createElementVNode("div", _hoisted_7, [u.value !== !1 && (e.status === "success" || !e.status) ? (openBlock(), createElementBlock("span", _hoisted_8, [...r[2] ||= [createElementVNode("svg", {
2270
2278
  viewBox: "0 0 1024 1024",
2271
2279
  width: "16",
2272
2280
  height: "16"
@@ -2304,7 +2312,7 @@ var _hoisted_1$4 = { style: {
2304
2312
  ]);
2305
2313
  };
2306
2314
  }
2307
- }), file_default = /* @__PURE__ */ _plugin_vue_export_helper_default(file_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a4cb786d"]]), _hoisted_1$2 = ["src"], image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2315
+ }), file_default = /* @__PURE__ */ _plugin_vue_export_helper_default(file_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0f683650"]]), _hoisted_1$2 = ["src"], image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2308
2316
  __name: "image",
2309
2317
  props: {
2310
2318
  icon: {},
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-CNSSdhjL.js";
1
+ import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-B_nqUyXC.js";
2
2
  export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
package/dist/index.css CHANGED
@@ -176,13 +176,13 @@
176
176
  }
177
177
  }
178
178
 
179
- .hide-upload-text[data-v-a4cb786d] .el-upload--text {
179
+ .hide-upload-text[data-v-0f683650] .el-upload--text {
180
180
  display: none;
181
181
  }
182
- .hide-upload-list[data-v-a4cb786d] .el-upload-list {
182
+ .hide-upload-list[data-v-0f683650] .el-upload-list {
183
183
  display: none;
184
184
  }
185
- .upload-file-item[data-v-a4cb786d] {
185
+ .upload-file-item[data-v-0f683650] {
186
186
  display: flex;
187
187
  align-items: center;
188
188
  justify-content: space-between;
@@ -190,13 +190,13 @@
190
190
  font-size: 14px;
191
191
  line-height: 1.5;
192
192
  }
193
- .file-left[data-v-a4cb786d] {
193
+ .file-left[data-v-0f683650] {
194
194
  display: flex;
195
195
  align-items: center;
196
196
  flex: 1;
197
197
  overflow: hidden;
198
198
  }
199
- .file-icon[data-v-a4cb786d] {
199
+ .file-icon[data-v-0f683650] {
200
200
  display: flex;
201
201
  align-items: center;
202
202
  margin-right: 8px;
@@ -205,7 +205,7 @@
205
205
  width: 14px;
206
206
  height: auto;
207
207
  }
208
- .file-name[data-v-a4cb786d] {
208
+ .file-name[data-v-0f683650] {
209
209
  color: #606266;
210
210
  overflow: hidden;
211
211
  text-overflow: ellipsis;
@@ -214,7 +214,7 @@
214
214
  display: inline-flex;
215
215
  align-items: center;
216
216
  }
217
- .file-size[data-v-a4cb786d] {
217
+ .file-size[data-v-0f683650] {
218
218
  color: #909399;
219
219
  margin-left: 4px;
220
220
  font-size: 12px;
@@ -223,18 +223,20 @@
223
223
  display: inline-flex;
224
224
  align-items: center;
225
225
  }
226
- .file-actions[data-v-a4cb786d] {
226
+ .file-actions[data-v-0f683650] {
227
227
  display: flex;
228
228
  align-items: center;
229
229
  gap: 8px;
230
230
  margin-left: 8px;
231
231
  flex-shrink: 0;
232
232
  }
233
- .success-icon[data-v-a4cb786d] {
233
+ .success-icon[data-v-0f683650] {
234
234
  display: flex;
235
235
  align-items: center;
236
236
  }
237
- .download-btn[data-v-a4cb786d] {
237
+ .download-btn[data-v-0f683650],
238
+ .copy-btn[data-v-0f683650],
239
+ .remove-btn[data-v-0f683650] {
238
240
  display: inline-flex;
239
241
  align-items: center;
240
242
  cursor: pointer;
@@ -242,55 +244,45 @@
242
244
  opacity: 0;
243
245
  transition: opacity 0.3s, color 0.3s;
244
246
  font-size: 12px;
245
- margin-left: 15px;
247
+ margin-left: 10px;
246
248
  }
247
- .file-left:hover .download-btn[data-v-a4cb786d] {
249
+ .file-left:hover .download-btn[data-v-0f683650],
250
+ .file-left:hover .copy-btn[data-v-0f683650],
251
+ .file-left:hover .remove-btn[data-v-0f683650] {
248
252
  opacity: 1;
249
253
  }
250
- .download-btn[data-v-a4cb786d]:hover {
254
+ .download-btn[data-v-0f683650]:hover,
255
+ .copy-btn[data-v-0f683650]:hover {
251
256
  color: #409eff;
252
257
  }
253
- .remove-btn[data-v-a4cb786d] {
254
- display: inline-flex;
255
- align-items: center;
256
- cursor: pointer;
257
- color: #909399;
258
- opacity: 0;
259
- transition: opacity 0.3s, color 0.3s;
260
- font-size: 12px;
261
- margin-left: 15px;
262
- }
263
- .file-left:hover .remove-btn[data-v-a4cb786d] {
264
- opacity: 1;
265
- }
266
- .remove-btn[data-v-a4cb786d]:hover {
258
+ .remove-btn[data-v-0f683650]:hover {
267
259
  color: #f56c6c;
268
260
  }
269
261
 
270
262
  /* 隐藏 Element Plus 默认的文件列表样式 */
271
- [data-v-a4cb786d] .el-upload-list__item {
263
+ [data-v-0f683650] .el-upload-list__item {
272
264
  padding: 0;
273
265
  border: none;
274
266
  background: transparent;
275
267
  }
276
- [data-v-a4cb786d] .el-upload-list__item-name {
268
+ [data-v-0f683650] .el-upload-list__item-name {
277
269
  display: none;
278
270
  }
279
- [data-v-a4cb786d] .el-upload-list__item-status-label {
271
+ [data-v-0f683650] .el-upload-list__item-status-label {
280
272
  display: none;
281
273
  }
282
- [data-v-a4cb786d] .el-upload-list__item .el-icon--close {
274
+ [data-v-0f683650] .el-upload-list__item .el-icon--close {
283
275
  display: none;
284
276
  }
285
- [data-v-a4cb786d] .el-upload-list__item.is-success .el-upload-list__item-status-label {
277
+ [data-v-0f683650] .el-upload-list__item.is-success .el-upload-list__item-status-label {
286
278
  display: none;
287
279
  }
288
280
 
289
281
  /* 隐藏默认的圆点 */
290
- [data-v-a4cb786d] .el-upload-list {
282
+ [data-v-0f683650] .el-upload-list {
291
283
  list-style: none;
292
284
  }
293
- [data-v-a4cb786d] .el-upload-list__item::before {
285
+ [data-v-0f683650] .el-upload-list__item::before {
294
286
  display: none !important;
295
287
  }
296
288
 
@@ -1,2 +1,2 @@
1
- import { O as e, _ as t, b as n, v as r, y as i } from "../entry-CNSSdhjL.js";
1
+ import { O as e, _ as t, b as n, v as r, y as i } from "../entry-B_nqUyXC.js";
2
2
  export { t as baseUrl, n as request, e as tempToRender, r as uniq, i as uniqBy };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-CNSSdhjL.js";
1
+ import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-B_nqUyXC.js";
2
2
  export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.56",
3
+ "version": "0.3.58",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [
@@ -38,6 +38,12 @@
38
38
  "dist",
39
39
  "README.md"
40
40
  ],
41
+ "scripts": {
42
+ "dev": "vite",
43
+ "build": "vue-tsc && vite build",
44
+ "build:lib": "vite build && node scripts/generate-entry-dts.cjs",
45
+ "preview": "vite preview"
46
+ },
41
47
  "dependencies": {
42
48
  "aieditor": "^1.4.0",
43
49
  "jsencrypt": "^3.5.4",
@@ -67,11 +73,5 @@
67
73
  },
68
74
  "sideEffects": [
69
75
  "**/*.css"
70
- ],
71
- "scripts": {
72
- "dev": "vite",
73
- "build": "vue-tsc && vite build",
74
- "build:lib": "vite build && node scripts/generate-entry-dts.cjs",
75
- "preview": "vite preview"
76
- }
77
- }
76
+ ]
77
+ }