yc-vep-ui 0.3.75 → 0.3.77

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.
@@ -2262,10 +2262,12 @@ var _hoisted_1$4 = { style: {
2262
2262
  function y(e) {
2263
2263
  if (!e.downloadUrl) return;
2264
2264
  let n = document.createElement("a");
2265
- n.href = e.downloadUrl?.includes("token") ? e.downloadUrl : `${e.downloadUrl}`, n.download = e.name || "download", document.body.appendChild(n), n.click(), document.body.removeChild(n);
2265
+ 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);
2266
2266
  }
2267
2267
  function b(e) {
2268
- e.downloadUrl && (navigator.clipboard.writeText(e.downloadUrl), VepMessage.success("复制成功"));
2268
+ if (!e.downloadUrl) return;
2269
+ let n = e.downloadUrl?.includes("token") ? e.downloadUrl : `${e.downloadUrl}&token=${localStorage.getItem("TOKEN")}`;
2270
+ navigator.clipboard.writeText(n), VepMessage.success("复制成功");
2269
2271
  }
2270
2272
  return (e, r) => {
2271
2273
  let l = resolveComponent("el-button"), x = resolveComponent("el-icon"), S = resolveComponent("el-upload");
@@ -2352,7 +2354,7 @@ var _hoisted_1$4 = { style: {
2352
2354
  ]);
2353
2355
  };
2354
2356
  }
2355
- }), file_default = /* @__PURE__ */ _plugin_vue_export_helper_default(file_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cd241668"]]), _hoisted_1$2 = ["src"], image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2357
+ }), file_default = /* @__PURE__ */ _plugin_vue_export_helper_default(file_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5540b7b8"]]), _hoisted_1$2 = ["src"], image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2356
2358
  __name: "image",
2357
2359
  props: {
2358
2360
  icon: {},
@@ -2597,14 +2599,16 @@ function useDefaultTable(e, n) {
2597
2599
  let c = useFetch(e, {
2598
2600
  ...n,
2599
2601
  defaultParams: s,
2602
+ immediate: !1,
2600
2603
  onSuccess: (e) => {
2601
2604
  n?.onSuccess?.(e), a.total = e[r?.replaceAttrs?.total] || 0, i.value = e[r?.replaceAttrs?.table] || [];
2602
2605
  }
2603
2606
  });
2604
2607
  watchEffect(() => {
2605
- let e = toValue(n.defaultParams || {});
2608
+ let e = toValue(n.ready) ?? !0, r = toValue(n.defaultParams || {});
2606
2609
  a.page = 1, a.pageSize = 10;
2607
- for (let n in e) n !== "page" && n !== "pageSize" && (s[n] = e[n]);
2610
+ for (let e in r) e !== "page" && e !== "pageSize" && (s[e] = r[e]);
2611
+ e && c.execute({ ...s });
2608
2612
  }, { flush: "sync" });
2609
2613
  function l(e = {}) {
2610
2614
  a.page = 1, a.pageSize = 10, e && (Object.keys(s).forEach((n) => {
@@ -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-BRLKhMwg.js";
1
+ import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-Du5o4Gis.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,60 +176,60 @@
176
176
  }
177
177
  }
178
178
 
179
- .upload-file-item[data-v-cd241668] {
179
+ .upload-file-item[data-v-5540b7b8] {
180
180
  display: flex;
181
181
  align-items: center;
182
182
  justify-content: space-between;
183
183
  padding: 4px 8px;
184
184
  font-size: 14px;
185
185
  }
186
- .file-left[data-v-cd241668] {
186
+ .file-left[data-v-5540b7b8] {
187
187
  display: flex;
188
188
  align-items: center;
189
189
  flex: 1;
190
190
  overflow: hidden;
191
191
  gap: 8px;
192
192
  }
193
- .file-icon[data-v-cd241668] {
193
+ .file-icon[data-v-5540b7b8] {
194
194
  display: inline-flex;
195
195
  align-items: center;
196
196
  color: #606266;
197
197
  flex-shrink: 0;
198
198
  }
199
- .file-name[data-v-cd241668] {
199
+ .file-name[data-v-5540b7b8] {
200
200
  color: #606266;
201
201
  overflow: hidden;
202
202
  text-overflow: ellipsis;
203
203
  white-space: nowrap;
204
204
  }
205
- .file-size[data-v-cd241668] {
205
+ .file-size[data-v-5540b7b8] {
206
206
  color: #909399;
207
207
  font-size: 12px;
208
208
  flex-shrink: 0;
209
209
  }
210
- .file-actions[data-v-cd241668] {
210
+ .file-actions[data-v-5540b7b8] {
211
211
  display: flex;
212
212
  align-items: center;
213
213
  gap: 8px;
214
214
  flex-shrink: 0;
215
215
  }
216
- .success-icon[data-v-cd241668],
217
- .loading-icon[data-v-cd241668] {
216
+ .success-icon[data-v-5540b7b8],
217
+ .loading-icon[data-v-5540b7b8] {
218
218
  display: inline-flex;
219
219
  align-items: center;
220
220
  }
221
- .loading-icon[data-v-cd241668] {
222
- animation: spin-cd241668 1s linear infinite;
221
+ .loading-icon[data-v-5540b7b8] {
222
+ animation: spin-5540b7b8 1s linear infinite;
223
223
  }
224
- @keyframes spin-cd241668 {
224
+ @keyframes spin-5540b7b8 {
225
225
  from { transform: rotate(0deg);
226
226
  }
227
227
  to { transform: rotate(360deg);
228
228
  }
229
229
  }
230
- .download-btn[data-v-cd241668],
231
- .copy-btn[data-v-cd241668],
232
- .remove-btn[data-v-cd241668] {
230
+ .download-btn[data-v-5540b7b8],
231
+ .copy-btn[data-v-5540b7b8],
232
+ .remove-btn[data-v-5540b7b8] {
233
233
  display: inline-flex;
234
234
  align-items: center;
235
235
  cursor: pointer;
@@ -238,33 +238,33 @@ to { transform: rotate(360deg);
238
238
  transition: opacity 0.3s, color 0.3s;
239
239
  font-size: 12px;
240
240
  }
241
- .file-left:hover .download-btn[data-v-cd241668],
242
- .file-left:hover .copy-btn[data-v-cd241668],
243
- .file-left:hover .remove-btn[data-v-cd241668] {
241
+ .file-left:hover .download-btn[data-v-5540b7b8],
242
+ .file-left:hover .copy-btn[data-v-5540b7b8],
243
+ .file-left:hover .remove-btn[data-v-5540b7b8] {
244
244
  opacity: 1;
245
245
  }
246
- .download-btn[data-v-cd241668]:hover,
247
- .copy-btn[data-v-cd241668]:hover {
246
+ .download-btn[data-v-5540b7b8]:hover,
247
+ .copy-btn[data-v-5540b7b8]:hover {
248
248
  color: #409eff;
249
249
  }
250
- .remove-btn[data-v-cd241668]:hover {
250
+ .remove-btn[data-v-5540b7b8]:hover {
251
251
  color: #f56c6c;
252
252
  }
253
- [data-v-cd241668] .el-upload-list__item {
253
+ [data-v-5540b7b8] .el-upload-list__item {
254
254
  padding: 0;
255
255
  border: none;
256
256
  background: transparent;
257
257
  }
258
- [data-v-cd241668] .el-upload-list__item-name,[data-v-cd241668] .el-upload-list__item-status-label,[data-v-cd241668] .el-upload-list__item .el-icon--close {
258
+ [data-v-5540b7b8] .el-upload-list__item-name,[data-v-5540b7b8] .el-upload-list__item-status-label,[data-v-5540b7b8] .el-upload-list__item .el-icon--close {
259
259
  display: none;
260
260
  }
261
- [data-v-cd241668] .el-upload-list {
261
+ [data-v-5540b7b8] .el-upload-list {
262
262
  list-style: none;
263
263
  }
264
- .hide-upload-text[data-v-cd241668] .el-upload--text {
264
+ .hide-upload-text[data-v-5540b7b8] .el-upload--text {
265
265
  display: none;
266
266
  }
267
- .hide-upload-list[data-v-cd241668] .el-upload-list {
267
+ .hide-upload-list[data-v-5540b7b8] .el-upload-list {
268
268
  display: none;
269
269
  }
270
270
 
@@ -1,2 +1,2 @@
1
- import { O as e, _ as t, b as n, v as r, y as i } from "../entry-BRLKhMwg.js";
1
+ import { O as e, _ as t, b as n, v as r, y as i } from "../entry-Du5o4Gis.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-BRLKhMwg.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-Du5o4Gis.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.75",
3
+ "version": "0.3.77",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [