yc-vep-ui 0.3.49 → 0.3.50
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.
|
@@ -2408,7 +2408,7 @@ var _hoisted_1$4 = { style: {
|
|
|
2408
2408
|
"remove"
|
|
2409
2409
|
],
|
|
2410
2410
|
setup(e, { emit: n }) {
|
|
2411
|
-
let r = n, i = e, { type: a = "file", onChange: o, limit: s, action: c, data: l, prop: u, fileList: d, accept: f, ...p } = i, m = c || baseUrl + "/attachment/uploadAttachment", g = { token: localStorage.getItem("TOKEN") || "" }, _ = computed(() => f?.length ? new Set(f.map((e) => e.startsWith(".") ? e.toLowerCase() : `.${e.toLowerCase()}`)) : null), v = (e) => {
|
|
2411
|
+
let r = n, i = e, { type: a = "file", onChange: o, limit: s, action: c, data: l, prop: u, fileList: d, accept: f, ...p } = i, m = c || baseUrl + "/attachment/uploadAttachment", g = computed(() => ({ token: localStorage.getItem("TOKEN") || "" })), _ = computed(() => f?.length ? new Set(f.map((e) => e.startsWith(".") ? e.toLowerCase() : `.${e.toLowerCase()}`)) : null), v = (e) => {
|
|
2412
2412
|
if (!_.value) return !0;
|
|
2413
2413
|
let n = "." + e.name.split(".").pop().toLowerCase();
|
|
2414
2414
|
return _.value.has(n) ? !0 : (VepMessage.warning(`只能上传 ${f?.join("、")} 格式的文件`), !1);
|
|
@@ -2450,7 +2450,7 @@ var _hoisted_1$4 = { style: {
|
|
|
2450
2450
|
ref: "uploadInstance",
|
|
2451
2451
|
name: "file",
|
|
2452
2452
|
action: unref(m),
|
|
2453
|
-
headers: g,
|
|
2453
|
+
headers: g.value,
|
|
2454
2454
|
"on-change": S,
|
|
2455
2455
|
"on-exceed": C,
|
|
2456
2456
|
"on-remove": w,
|
|
@@ -2463,6 +2463,7 @@ var _hoisted_1$4 = { style: {
|
|
|
2463
2463
|
"before-upload": v
|
|
2464
2464
|
}, p), null, 16, [
|
|
2465
2465
|
"action",
|
|
2466
|
+
"headers",
|
|
2466
2467
|
"file-list",
|
|
2467
2468
|
"count",
|
|
2468
2469
|
"limit"
|
package/dist/hooks/index.js
CHANGED
|
@@ -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-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-USSBh8JF.js";
|
|
2
2
|
export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-
|
|
1
|
+
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-USSBh8JF.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-
|
|
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-USSBh8JF.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 };
|