提交 1cf12402 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新插件包sy-web

上级 56fb387d
......@@ -3,7 +3,7 @@ var he = (e, s, t) => s in e ? ue(e, s, { enumerable: !0, configurable: !0, writ
var I = (e, s, t) => (he(e, typeof s != "symbol" ? s + "" : s, t), t);
import { IndexViewModel as me, GridModel as pe, ViewType as fe, ModelUtil as ge } from "@ibiz-template/model";
import { GridFieldColumnController as X, GridRowController as J, WFStepTraceViewController as ve, UploadEditorController as Q, GridController as we, GridNotifyState as be, WFDynaEditView3Controller as ye } from "@ibiz-template/controller";
import { defineComponent as U, computed as $, h as c, getCurrentInstance as A, ref as v, watch as T, toRefs as z, onUnmounted as Ce } from "vue";
import { defineComponent as U, computed as $, h as c, getCurrentInstance as G, ref as v, watch as T, toRefs as z, onUnmounted as Ce } from "vue";
import { useNamespace as N, useViewController as K, usePropsWatch as B, getUploadProps as xe, getEditorEmits as Y, getGridUploadProps as _, getGridEditorEmits as j, useClickOutside as ke, useEventListener as Fe, getInputProps as Se, getGridInputProps as Le, useGridCellEditor as Ee, useControlController as Ue, useWFStepTraceViewController as Pe, useEditView3Controller as Ne } from "@ibiz-template/vue-util";
import { colorBlend as Ie, HttpError as ee, isImage as Te, uploadFile as De, RuntimeError as Me } from "@ibiz-template/core";
import { getCookie as $e, createUUID as V } from "qx-util";
......@@ -123,7 +123,7 @@ const Be = U({
setup(e) {
const s = N("preset-wf-chart-view"), {
proxy: t
} = A(), o = K(t, (i, r) => new ze(e.modelPath, i, r));
} = G(), o = K(t, (i, r) => new ze(e.modelPath, i, r));
return B(t, "deName", o.setDeName.bind(o)), {
c: o,
ns: s
......@@ -183,11 +183,11 @@ const _e = U({
}
}), je = typeof btoa == "function", W = typeof Buffer == "function";
typeof TextDecoder == "function" && new TextDecoder();
const q = typeof TextEncoder == "function" ? new TextEncoder() : void 0, We = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", R = Array.prototype.slice.call(We);
const q = typeof TextEncoder == "function" ? new TextEncoder() : void 0, We = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", A = Array.prototype.slice.call(We);
((e) => {
let s = {};
return e.forEach((t, o) => s[t] = o), s;
})(R);
})(A);
const M = String.fromCharCode.bind(String);
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
const Ve = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), qe = (e) => {
......@@ -196,7 +196,7 @@ const Ve = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" :
for (let a = 0; a < e.length; ) {
if ((t = e.charCodeAt(a++)) > 255 || (o = e.charCodeAt(a++)) > 255 || (i = e.charCodeAt(a++)) > 255)
throw new TypeError("invalid character found");
s = t << 16 | o << 8 | i, r += R[s >> 18 & 63] + R[s >> 12 & 63] + R[s >> 6 & 63] + R[s & 63];
s = t << 16 | o << 8 | i, r += A[s >> 18 & 63] + A[s >> 12 & 63] + A[s >> 6 & 63] + A[s & 63];
}
return n ? r.slice(0, n - 3) + "===".substring(n) : r;
}, oe = je ? (e) => btoa(e) : W ? (e) => Buffer.from(e, "binary").toString("base64") : qe, He = W ? (e) => Buffer.from(e).toString("base64") : (e) => {
......@@ -707,17 +707,22 @@ function re(e) {
}
);
const p = (m, w) => {
if (m.some((L) => L.size > n.value.defaultSize * 1024 * 1024 ? (ibiz.message.error(
`${L.name} 超出限制,请选择小于${n.value.defaultSize}MB的文件`,
2.5,
!0
), !0) : n.value.whiteList && n.value.whiteList.length > 0 && !n.value.whiteList.includes(L.name) ? (ibiz.message.error(`${L.name} 文件格式不正确`, 2.5, !0), !0) : !1))
if (m.some((L) => {
if (L.size > n.value.defaultSize * 1024 * 1024)
return ibiz.message.error(
`${L.name} 超出限制,请选择小于${n.value.defaultSize}MB的文件`,
2.5,
!0
), !0;
const R = L.name.split(".").pop() || "";
return n.value.whiteList && n.value.whiteList.length > 0 && !n.value.whiteList.includes(R) ? (ibiz.message.error(`${L.name} 文件格式不正确`, 2.5, !0), !0) : !1;
}))
return !1;
const F = [];
return w.forEach((L, G) => {
return w.forEach((L, R) => {
const ce = L.name.trim().toLowerCase();
if (h.some((de) => ce.endsWith(`.${de}`))) {
F.push(G);
F.push(R);
return;
}
t.value.push({
......@@ -741,7 +746,7 @@ function re(e) {
}, b = (m, w) => {
var F;
m.forEach((L) => {
t.value.find((G) => G.id === L.uid ? (G.status = L.status, !0) : !1);
t.value.find((R) => R.id === L.uid ? (R.status = L.status, !0) : !1);
});
const P = new ee(w);
ibiz.notification.error({
......@@ -1519,7 +1524,7 @@ const dt = U({
setup(e) {
const {
proxy: s
} = A(), t = N("grid"), o = ct(s, e.modelData, e.context, e.params), [i] = nt(o), {
} = G(), t = N("grid"), o = ct(s, e.modelData, e.context, e.params), [i] = nt(o), {
onRowClick: r,
onDbRowClick: n,
onSelectionChange: a,
......@@ -1694,7 +1699,7 @@ const le = U({
setup(e) {
const {
proxy: s
} = A(), t = Pe(s, e.modelPath);
} = G(), t = Pe(s, e.modelPath);
B(s, "deName", t.setDeName.bind(t));
const o = N("wf-step-trace-grid"), i = v([]), r = (a, l, h = !1) => {
a.identitylinks.length > 0 || a.comments.length > 0 && a.comments.forEach((p) => {
......@@ -1825,7 +1830,7 @@ U({
setup(e) {
const {
proxy: s
} = A(), t = K(s, (n, a) => new pt(e.modelPath, n, a)), o = N(`view-${fe.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), i = v(["mainForm"]);
} = G(), t = K(s, (n, a) => new pt(e.modelPath, n, a)), o = N(`view-${fe.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), i = v(["mainForm"]);
return {
c: t,
ns: o,
......@@ -1945,7 +1950,7 @@ U({
setup(e) {
const {
proxy: s
} = A(), t = Ne(s, e.modelPath), o = N("view-deeditview3"), i = v(["mainForm"]);
} = G(), t = Ne(s, e.modelPath), o = N("view-deeditview3"), i = v(["mainForm"]);
return {
c: t,
ns: o,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册