zforg 1.0.10 → 1.0.11

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.
@@ -1,5 +1,5 @@
1
1
  import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, renderList as B, unref as V, toDisplayString as N, nextTick as S, createBlock as U } from "vue";
2
- import { aS as D, c as E } from "./index-CWEP_OP5.js";
2
+ import { aS as D, c as E } from "./index-CPC6UBFd.js";
3
3
  const M = { class: "flex-wrap flex" }, R = ["onClick"], T = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
4
4
  __name: "chartChoose",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, isRef as J, unref as i, createElementVNode as c } from "vue";
2
- import { aR as E } from "./index-CWEP_OP5.js";
2
+ import { aR as E } from "./index-CPC6UBFd.js";
3
3
  const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, R = {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { u as ze, i as Ys, a as Ks, b as $s, r as Qs, c as Bo, A as si, C as st, d as ar, e as Dr, S as ct, M as li, P as Js, f as lt, g as el, h as tl, j as rl, k as il, l as nl, m as al, n as ol, o as sl, p as ll, q as hl, s as ul, t as fl, v as cl, w as Qn, x as dl, y as vl, z as Ii, B as pl, D as ml, E as Jn, F as gl, G as _l, H as Bi, I as yl, J as xl, K as Tl, L as wl, N as Sl, O as bl, Q as El, R as Al, T as Ll, U as Ml, V as Dl, W as Cl, X as Pl, Y as Nl, Z as Rl, _ as Ol, $ as Il, a0 as Bl, a1 as Fl, a2 as zl, a3 as Gl, a4 as Ul, a5 as xt, a6 as xa, a7 as Hl, a8 as Vl, a9 as Fo, aa as zo, ab as kl, ac as Fn, ad as Tt, ae as Wl, af as se, ag as zt, ah as Xl, ai as Go, aj as Fi, ak as zi, al as Uo, am as Ho, an as Vo, ao as $i, ap as ea, aq as jl, ar as Zl, as as ql, at as Yl, au as hi, av as ta, aw as Kl, ax as $l, ay as Ql, az as Jl, aA as ra, aB as eh, aC as mr, aD as Ta, aE as th, aF as rh, aG as ih, aH as nh, aI as mi, aJ as ah, aK as oh, aL as sh, aM as ko, aN as lh, aO as hh, aP as wa, aQ as Sa } from "./index-CWEP_OP5.js";
1
+ import { u as ze, i as Ys, a as Ks, b as $s, r as Qs, c as Bo, A as si, C as st, d as ar, e as Dr, S as ct, M as li, P as Js, f as lt, g as el, h as tl, j as rl, k as il, l as nl, m as al, n as ol, o as sl, p as ll, q as hl, s as ul, t as fl, v as cl, w as Qn, x as dl, y as vl, z as Ii, B as pl, D as ml, E as Jn, F as gl, G as _l, H as Bi, I as yl, J as xl, K as Tl, L as wl, N as Sl, O as bl, Q as El, R as Al, T as Ll, U as Ml, V as Dl, W as Cl, X as Pl, Y as Nl, Z as Rl, _ as Ol, $ as Il, a0 as Bl, a1 as Fl, a2 as zl, a3 as Gl, a4 as Ul, a5 as xt, a6 as xa, a7 as Hl, a8 as Vl, a9 as Fo, aa as zo, ab as kl, ac as Fn, ad as Tt, ae as Wl, af as se, ag as zt, ah as Xl, ai as Go, aj as Fi, ak as zi, al as Uo, am as Ho, an as Vo, ao as $i, ap as ea, aq as jl, ar as Zl, as as ql, at as Yl, au as hi, av as ta, aw as Kl, ax as $l, ay as Ql, az as Jl, aA as ra, aB as eh, aC as mr, aD as Ta, aE as th, aF as rh, aG as ih, aH as nh, aI as mi, aJ as ah, aK as oh, aL as sh, aM as ko, aN as lh, aO as hh, aP as wa, aQ as Sa } from "./index-CPC6UBFd.js";
2
2
  ze([Ys, Ks]);
3
3
  const uh = {
4
4
  init: function() {
@@ -194129,6 +194129,9 @@ const ijn = /* @__PURE__ */ Bn(rjn), aj = class aj {
194129
194129
  );
194130
194130
  this.updateWidget("homepage", r, !0);
194131
194131
  }
194132
+ setAppid(e) {
194133
+ this.options.appId = e;
194134
+ }
194132
194135
  checkWidgetListRequiredById(e) {
194133
194136
  let n = !0, r = [];
194134
194137
  const i = (a) => {
@@ -292223,7 +292226,7 @@ const trr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
292223
292226
  "@element-plus/icons-vue": xkt,
292224
292227
  //"vue-plugin-hiprint":HiPrint,
292225
292228
  echarts: bSn,
292226
- "echarts-gl": () => import("./index-tp4OdQbp.js"),
292229
+ "echarts-gl": () => import("./index-BqVuTp5v.js"),
292227
292230
  //vxe-table的注册
292228
292231
  "vxe-table": Xqn,
292229
292232
  "vxe-pc-ui": bct,
@@ -298050,7 +298053,7 @@ ${T.value}`, id: Date.now(), timestamp: (/* @__PURE__ */ new Date()).toISOString
298050
298053
  },
298051
298054
  setup(t) {
298052
298055
  const n = Object.fromEntries(
298053
- Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-B2ieNi21.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-C-ndpxPQ.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-dropdown/index.vue": () => import("./index-BZ_40krq.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-CjZwEG_X.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-nY_E-1Gm.js"), "../widgetConfigComps/config-flowForm/index.vue": () => import("./index-CHAFY_vi.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-iframe/index.vue": () => import("./index-BkftF1Ew.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-layout/index.vue": () => import("./index-FVwll8uc.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-DlozHxdf.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CE0gDB6E.js"), "../widgetConfigComps/config-slot/index.vue": () => import("./index-HNpIFY7h.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-YcTSZVe8.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-CgcZFJw2.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-BUCRj_jy.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-Cbcim_GG.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([B, F]) => {
298056
+ Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-B2ieNi21.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-CwOb-p8d.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-dropdown/index.vue": () => import("./index-BZ_40krq.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-B5VlM9TG.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-nY_E-1Gm.js"), "../widgetConfigComps/config-flowForm/index.vue": () => import("./index-CHAFY_vi.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-iframe/index.vue": () => import("./index-BkftF1Ew.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-layout/index.vue": () => import("./index-FVwll8uc.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-DlozHxdf.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CE0gDB6E.js"), "../widgetConfigComps/config-slot/index.vue": () => import("./index-HNpIFY7h.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-GOWWi0rn.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-BO6anANX.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-DZf2i09K.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-DAyk9yGN.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([B, F]) => {
298054
298057
  const $ = B.match(/\/([^/]+)\/index\.vue$/);
298055
298058
  return [$ ? $[1] : null, _ct(F)];
298056
298059
  })
@@ -1,5 +1,5 @@
1
1
  import { ref as k, resolveComponent as V, openBlock as b, createElementBlock as H, Fragment as j, createVNode as e, unref as l, withCtx as a, createTextVNode as v, isRef as A, createElementVNode as w, toDisplayString as F, createCommentVNode as T, createBlock as S, renderList as $ } from "vue";
2
- import { aR as q } from "./index-CWEP_OP5.js";
2
+ import { aR as q } from "./index-CPC6UBFd.js";
3
3
  const J = {
4
4
  key: 0,
5
5
  class: "flex h-full flex-col"
@@ -1,5 +1,5 @@
1
1
  import { computed as S, ref as C, resolveComponent as p, openBlock as U, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as g, isRef as J, unref as i, createElementVNode as f } from "vue";
2
- import { aR as T } from "./index-CWEP_OP5.js";
2
+ import { aR as T } from "./index-CPC6UBFd.js";
3
3
  const E = { class: "h-full flex flex-col" }, H = { class: "flex-1 overflow-hidden" }, B = {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
2
- import { aT as c } from "./index-CWEP_OP5.js";
2
+ import { aT as c } from "./index-CPC6UBFd.js";
3
3
  const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
4
4
  __name: "index",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, isRef as J, unref as u, createElementVNode as m } from "vue";
2
- import { aR as E, aT as H } from "./index-CWEP_OP5.js";
2
+ import { aR as E, aT as H } from "./index-CPC6UBFd.js";
3
3
  const T = { class: "h-full flex flex-col" }, h = { class: "flex-1 overflow-hidden" }, B = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aU as f } from "./index-CWEP_OP5.js";
1
+ import { aU as f } from "./index-CPC6UBFd.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -527,7 +527,7 @@ app.getMethodById("${c.id}").open(() => { ${g}})`,u.props.apiSetCreate={method:"
527
527
  * @license MIT
528
528
  */(function(t){(function(){var e="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_MD5_NO_WINDOW&&(r=!1);var a=!r&&typeof self=="object",s=!i.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?i=Xv:a&&(i=self);var l=!i.JS_MD5_NO_COMMON_JS&&!0&&t.exports,c=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),d=[128,32768,8388608,-2147483648],f=[0,8,16,24],p=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=[],g;if(c){var v=new ArrayBuffer(68);g=new Uint8Array(v),h=new Uint32Array(v)}var y=Array.isArray;(i.JS_MD5_NO_NODE_JS||!y)&&(y=function(R){return Object.prototype.toString.call(R)==="[object Array]"});var _=ArrayBuffer.isView;c&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!_)&&(_=function(R){return typeof R=="object"&&R.buffer&&R.buffer.constructor===ArrayBuffer});var b=function(R){var D=typeof R;if(D==="string")return[R,!0];if(D!=="object"||R===null)throw new Error(e);if(c&&R.constructor===ArrayBuffer)return[new Uint8Array(R),!1];if(!y(R)&&!_(R))throw new Error(e);return[R,!1]},E=function(R){return function(D){return new A(!0).update(D)[R]()}},S=function(){var R=E("hex");s&&(R=w(R)),R.create=function(){return new A},R.update=function(B){return R.create().update(B)};for(var D=0;D<p.length;++D){var k=p[D];R[k]=E(k)}return R},w=function(R){var D=Nhe,k=Nhe.Buffer,B;k.from&&!i.JS_MD5_NO_BUFFER_FROM?B=k.from:B=function(U){return new k(U)};var F=function(U){if(typeof U=="string")return D.createHash("md5").update(U,"utf8").digest("hex");if(U==null)throw new Error(e);return U.constructor===ArrayBuffer&&(U=new Uint8Array(U)),y(U)||_(U)||U.constructor===k?D.createHash("md5").update(B(U)).digest("hex"):R(U)};return F},T=function(R){return function(D,k){return new O(D,!0).update(k)[R]()}},C=function(){var R=T("hex");R.create=function(B){return new O(B)},R.update=function(B,F){return R.create(B).update(F)};for(var D=0;D<p.length;++D){var k=p[D];R[k]=T(k)}return R};function A(R){if(R)h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h,this.buffer8=g;else if(c){var D=new ArrayBuffer(68);this.buffer8=new Uint8Array(D),this.blocks=new Uint32Array(D)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}A.prototype.update=function(R){if(this.finalized)throw new Error(n);var D=b(R);R=D[0];for(var k=D[1],B,F=0,U,z=R.length,G=this.blocks,W=this.buffer8;F<z;){if(this.hashed&&(this.hashed=!1,G[0]=G[16],G[16]=G[1]=G[2]=G[3]=G[4]=G[5]=G[6]=G[7]=G[8]=G[9]=G[10]=G[11]=G[12]=G[13]=G[14]=G[15]=0),k)if(c)for(U=this.start;F<z&&U<64;++F)B=R.charCodeAt(F),B<128?W[U++]=B:B<2048?(W[U++]=192|B>>>6,W[U++]=128|B&63):B<55296||B>=57344?(W[U++]=224|B>>>12,W[U++]=128|B>>>6&63,W[U++]=128|B&63):(B=65536+((B&1023)<<10|R.charCodeAt(++F)&1023),W[U++]=240|B>>>18,W[U++]=128|B>>>12&63,W[U++]=128|B>>>6&63,W[U++]=128|B&63);else for(U=this.start;F<z&&U<64;++F)B=R.charCodeAt(F),B<128?G[U>>>2]|=B<<f[U++&3]:B<2048?(G[U>>>2]|=(192|B>>>6)<<f[U++&3],G[U>>>2]|=(128|B&63)<<f[U++&3]):B<55296||B>=57344?(G[U>>>2]|=(224|B>>>12)<<f[U++&3],G[U>>>2]|=(128|B>>>6&63)<<f[U++&3],G[U>>>2]|=(128|B&63)<<f[U++&3]):(B=65536+((B&1023)<<10|R.charCodeAt(++F)&1023),G[U>>>2]|=(240|B>>>18)<<f[U++&3],G[U>>>2]|=(128|B>>>12&63)<<f[U++&3],G[U>>>2]|=(128|B>>>6&63)<<f[U++&3],G[U>>>2]|=(128|B&63)<<f[U++&3]);else if(c)for(U=this.start;F<z&&U<64;++F)W[U++]=R[F];else for(U=this.start;F<z&&U<64;++F)G[U>>>2]|=R[F]<<f[U++&3];this.lastByteIndex=U,this.bytes+=U-this.start,U>=64?(this.start=U-64,this.hash(),this.hashed=!0):this.start=U}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var R=this.blocks,D=this.lastByteIndex;R[D>>>2]|=d[D&3],D>=56&&(this.hashed||this.hash(),R[0]=R[16],R[16]=R[1]=R[2]=R[3]=R[4]=R[5]=R[6]=R[7]=R[8]=R[9]=R[10]=R[11]=R[12]=R[13]=R[14]=R[15]=0),R[14]=this.bytes<<3,R[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},A.prototype.hash=function(){var R,D,k,B,F,U,z=this.blocks;this.first?(R=z[0]-680876937,R=(R<<7|R>>>25)-271733879<<0,B=(-1732584194^R&2004318071)+z[1]-117830708,B=(B<<12|B>>>20)+R<<0,k=(-271733879^B&(R^-271733879))+z[2]-1126478375,k=(k<<17|k>>>15)+B<<0,D=(R^k&(B^R))+z[3]-1316259209,D=(D<<22|D>>>10)+k<<0):(R=this.h0,D=this.h1,k=this.h2,B=this.h3,R+=(B^D&(k^B))+z[0]-680876936,R=(R<<7|R>>>25)+D<<0,B+=(k^R&(D^k))+z[1]-389564586,B=(B<<12|B>>>20)+R<<0,k+=(D^B&(R^D))+z[2]+606105819,k=(k<<17|k>>>15)+B<<0,D+=(R^k&(B^R))+z[3]-1044525330,D=(D<<22|D>>>10)+k<<0),R+=(B^D&(k^B))+z[4]-176418897,R=(R<<7|R>>>25)+D<<0,B+=(k^R&(D^k))+z[5]+1200080426,B=(B<<12|B>>>20)+R<<0,k+=(D^B&(R^D))+z[6]-1473231341,k=(k<<17|k>>>15)+B<<0,D+=(R^k&(B^R))+z[7]-45705983,D=(D<<22|D>>>10)+k<<0,R+=(B^D&(k^B))+z[8]+1770035416,R=(R<<7|R>>>25)+D<<0,B+=(k^R&(D^k))+z[9]-1958414417,B=(B<<12|B>>>20)+R<<0,k+=(D^B&(R^D))+z[10]-42063,k=(k<<17|k>>>15)+B<<0,D+=(R^k&(B^R))+z[11]-1990404162,D=(D<<22|D>>>10)+k<<0,R+=(B^D&(k^B))+z[12]+1804603682,R=(R<<7|R>>>25)+D<<0,B+=(k^R&(D^k))+z[13]-40341101,B=(B<<12|B>>>20)+R<<0,k+=(D^B&(R^D))+z[14]-1502002290,k=(k<<17|k>>>15)+B<<0,D+=(R^k&(B^R))+z[15]+1236535329,D=(D<<22|D>>>10)+k<<0,R+=(k^B&(D^k))+z[1]-165796510,R=(R<<5|R>>>27)+D<<0,B+=(D^k&(R^D))+z[6]-1069501632,B=(B<<9|B>>>23)+R<<0,k+=(R^D&(B^R))+z[11]+643717713,k=(k<<14|k>>>18)+B<<0,D+=(B^R&(k^B))+z[0]-373897302,D=(D<<20|D>>>12)+k<<0,R+=(k^B&(D^k))+z[5]-701558691,R=(R<<5|R>>>27)+D<<0,B+=(D^k&(R^D))+z[10]+38016083,B=(B<<9|B>>>23)+R<<0,k+=(R^D&(B^R))+z[15]-660478335,k=(k<<14|k>>>18)+B<<0,D+=(B^R&(k^B))+z[4]-405537848,D=(D<<20|D>>>12)+k<<0,R+=(k^B&(D^k))+z[9]+568446438,R=(R<<5|R>>>27)+D<<0,B+=(D^k&(R^D))+z[14]-1019803690,B=(B<<9|B>>>23)+R<<0,k+=(R^D&(B^R))+z[3]-187363961,k=(k<<14|k>>>18)+B<<0,D+=(B^R&(k^B))+z[8]+1163531501,D=(D<<20|D>>>12)+k<<0,R+=(k^B&(D^k))+z[13]-1444681467,R=(R<<5|R>>>27)+D<<0,B+=(D^k&(R^D))+z[2]-51403784,B=(B<<9|B>>>23)+R<<0,k+=(R^D&(B^R))+z[7]+1735328473,k=(k<<14|k>>>18)+B<<0,D+=(B^R&(k^B))+z[12]-1926607734,D=(D<<20|D>>>12)+k<<0,F=D^k,R+=(F^B)+z[5]-378558,R=(R<<4|R>>>28)+D<<0,B+=(F^R)+z[8]-2022574463,B=(B<<11|B>>>21)+R<<0,U=B^R,k+=(U^D)+z[11]+1839030562,k=(k<<16|k>>>16)+B<<0,D+=(U^k)+z[14]-35309556,D=(D<<23|D>>>9)+k<<0,F=D^k,R+=(F^B)+z[1]-1530992060,R=(R<<4|R>>>28)+D<<0,B+=(F^R)+z[4]+1272893353,B=(B<<11|B>>>21)+R<<0,U=B^R,k+=(U^D)+z[7]-155497632,k=(k<<16|k>>>16)+B<<0,D+=(U^k)+z[10]-1094730640,D=(D<<23|D>>>9)+k<<0,F=D^k,R+=(F^B)+z[13]+681279174,R=(R<<4|R>>>28)+D<<0,B+=(F^R)+z[0]-358537222,B=(B<<11|B>>>21)+R<<0,U=B^R,k+=(U^D)+z[3]-722521979,k=(k<<16|k>>>16)+B<<0,D+=(U^k)+z[6]+76029189,D=(D<<23|D>>>9)+k<<0,F=D^k,R+=(F^B)+z[9]-640364487,R=(R<<4|R>>>28)+D<<0,B+=(F^R)+z[12]-421815835,B=(B<<11|B>>>21)+R<<0,U=B^R,k+=(U^D)+z[15]+530742520,k=(k<<16|k>>>16)+B<<0,D+=(U^k)+z[2]-995338651,D=(D<<23|D>>>9)+k<<0,R+=(k^(D|~B))+z[0]-198630844,R=(R<<6|R>>>26)+D<<0,B+=(D^(R|~k))+z[7]+1126891415,B=(B<<10|B>>>22)+R<<0,k+=(R^(B|~D))+z[14]-1416354905,k=(k<<15|k>>>17)+B<<0,D+=(B^(k|~R))+z[5]-57434055,D=(D<<21|D>>>11)+k<<0,R+=(k^(D|~B))+z[12]+1700485571,R=(R<<6|R>>>26)+D<<0,B+=(D^(R|~k))+z[3]-1894986606,B=(B<<10|B>>>22)+R<<0,k+=(R^(B|~D))+z[10]-1051523,k=(k<<15|k>>>17)+B<<0,D+=(B^(k|~R))+z[1]-2054922799,D=(D<<21|D>>>11)+k<<0,R+=(k^(D|~B))+z[8]+1873313359,R=(R<<6|R>>>26)+D<<0,B+=(D^(R|~k))+z[15]-30611744,B=(B<<10|B>>>22)+R<<0,k+=(R^(B|~D))+z[6]-1560198380,k=(k<<15|k>>>17)+B<<0,D+=(B^(k|~R))+z[13]+1309151649,D=(D<<21|D>>>11)+k<<0,R+=(k^(D|~B))+z[4]-145523070,R=(R<<6|R>>>26)+D<<0,B+=(D^(R|~k))+z[11]-1120210379,B=(B<<10|B>>>22)+R<<0,k+=(R^(B|~D))+z[2]+718787259,k=(k<<15|k>>>17)+B<<0,D+=(B^(k|~R))+z[9]-343485551,D=(D<<21|D>>>11)+k<<0,this.first?(this.h0=R+1732584193<<0,this.h1=D-271733879<<0,this.h2=k-1732584194<<0,this.h3=B+271733878<<0,this.first=!1):(this.h0=this.h0+R<<0,this.h1=this.h1+D<<0,this.h2=this.h2+k<<0,this.h3=this.h3+B<<0)},A.prototype.hex=function(){this.finalize();var R=this.h0,D=this.h1,k=this.h2,B=this.h3;return u[R>>>4&15]+u[R&15]+u[R>>>12&15]+u[R>>>8&15]+u[R>>>20&15]+u[R>>>16&15]+u[R>>>28&15]+u[R>>>24&15]+u[D>>>4&15]+u[D&15]+u[D>>>12&15]+u[D>>>8&15]+u[D>>>20&15]+u[D>>>16&15]+u[D>>>28&15]+u[D>>>24&15]+u[k>>>4&15]+u[k&15]+u[k>>>12&15]+u[k>>>8&15]+u[k>>>20&15]+u[k>>>16&15]+u[k>>>28&15]+u[k>>>24&15]+u[B>>>4&15]+u[B&15]+u[B>>>12&15]+u[B>>>8&15]+u[B>>>20&15]+u[B>>>16&15]+u[B>>>28&15]+u[B>>>24&15]},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var R=this.h0,D=this.h1,k=this.h2,B=this.h3;return[R&255,R>>>8&255,R>>>16&255,R>>>24&255,D&255,D>>>8&255,D>>>16&255,D>>>24&255,k&255,k>>>8&255,k>>>16&255,k>>>24&255,B&255,B>>>8&255,B>>>16&255,B>>>24&255]},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var R=new ArrayBuffer(16),D=new Uint32Array(R);return D[0]=this.h0,D[1]=this.h1,D[2]=this.h2,D[3]=this.h3,R},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.base64=function(){for(var R,D,k,B="",F=this.array(),U=0;U<15;)R=F[U++],D=F[U++],k=F[U++],B+=m[R>>>2]+m[(R<<4|D>>>4)&63]+m[(D<<2|k>>>6)&63]+m[k&63];return R=F[U],B+=m[R>>>2]+m[R<<4&63]+"==",B};function O(R,D){var k,B=b(R);if(R=B[0],B[1]){var F=[],U=R.length,z=0,G;for(k=0;k<U;++k)G=R.charCodeAt(k),G<128?F[z++]=G:G<2048?(F[z++]=192|G>>>6,F[z++]=128|G&63):G<55296||G>=57344?(F[z++]=224|G>>>12,F[z++]=128|G>>>6&63,F[z++]=128|G&63):(G=65536+((G&1023)<<10|R.charCodeAt(++k)&1023),F[z++]=240|G>>>18,F[z++]=128|G>>>12&63,F[z++]=128|G>>>6&63,F[z++]=128|G&63);R=F}R.length>64&&(R=new A(!0).update(R).array());var W=[],Z=[];for(k=0;k<64;++k){var Y=R[k]||0;W[k]=92^Y,Z[k]=54^Y}A.call(this,D),this.update(Z),this.oKeyPad=W,this.inner=!0,this.sharedMemory=D}O.prototype=new A,O.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var R=this.array();A.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(R),A.prototype.finalize.call(this)}};var M=S();M.md5=M,M.md5.hmac=C(),l?t.exports=M:i.md5=M})()})(jVe);var F7n=jVe.exports;const U7n=xn(F7n),oX=class oX{constructor({widgetConfig:e,showMode:n=!1,baseUrl:r="",appId:i="",httpSuccessHandle:a=null,httpErrorHandle:s=null,httpBeforeSendHandle:l=null,parentApp:c=null,headers:u={},params:d={},emit:f,autoInjectTailwind:p=!0,flowValue:m="",flowSteps:h=[]}){if(this.$message=xc,this.$confirm=F$.confirm,this.$prompt=F$.prompt,this.$notify=l4,this.$vxe=oX.globalMethods,this.md5=U7n,this.emit=f,this.parentApp=c,this.params=d,this.flowValue=m,this.flowSteps=h,this.options={baseUrl:r,httpSuccessHandle:a,httpErrorHandle:s,httpBeforeSendHandle:l,headers:u,appId:i},this.showMode=o.ref(n),this.isDark=o.ref(!1),this.isMobile=o.ref(this.isMobileStatus()),this.$utils=Ue,e?this.widgetConfig=o.reactive(e):this.widgetConfig=o.reactive(this.$utils.clone(hf.homepage)),this.widgetMap=new Map,this.vueInstanceMap=new Map,this.paramsMap=new Map,d)for(const g in d)this.paramsMap.set(g,d[g]);this.widgetIds=[],this.chosenWidget=o.ref(null),this.historyList=[],this.historyIndex=o.ref(0),this.isHistory=!1,this.$http=new L7n({baseUrl:r,httpSuccessHandle:a,httpErrorHandle:s,httpBeforeSendHandle:l,headers:u}),this.buildWidgetMap(this.widgetConfig),n&&this.flowValue&&this.flowSteps&&this.flowSteps.length>0&&this.applyAllFlowConfigs(this.flowValue),n&&o.watch(()=>this.flowValue,g=>{g&&this.flowSteps&&this.flowSteps.length>0&&this.applyAllFlowConfigs(g)},{immediate:!1}),o.watch(()=>this.widgetConfig,g=>{this.rebuildWidgetMap(),this.chosenWidget.value=this.getWidgetById(this.widgetConfig.chosenId)},{deep:!0,immediate:!0}),o.watch(()=>this.widgetConfig.widgetList,g=>{this.isHistory?this.isHistory=!1:(this.historyList.push({widgetConfig:this.$utils.clone(this.widgetConfig,!0),time:this.$utils.toDateString(new Date,"HH:mm:ss"),index:this.historyList.length}),this.historyIndex.value=this.historyList.length-1)},{deep:!0,immediate:!0})}async eventHandle({value:e=null,eventType:n,widget:r,cb:i,tableItemData:a,tableColumn:s,showInDesign:l}){if(!(!this.showMode&&!l)&&r.props[n]){let c=r.props[n],d=await new Function("value","widget","self","tableItemData","tableColumn","app",`return (async function(){
529
529
  ${c}
530
- })()`)(e,r,this.getVueInstance(r.id),a,s,this);if(i)return i(d)}}isMobileStatus(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}validateInput(e,n){switch(e){case"数字":return/^-?\d+(\.\d+)?$/.test(n);case"字母":return/^[A-Za-z]+$/.test(n);case"数字字母":return/^[A-Za-z0-9]+$/.test(n);case"手机号":return/^1[3-9]\d{9}$/.test(n);case"邮箱":return/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(n);case"网址":return/^(https?:\/\/)?([\w\-])+\.{1}([a-zA-Z]{2,63})([\w\-\.\~\?\#\/]*)$/.test(n);case"非中文字符":return/^[^\u4e00-\u9fa5]+$/.test(n);case"仅中文字符":return/^[\u4e00-\u9fa5]+$/.test(n);case"正数":return/^\d+(\.\d+)?$/.test(n);case"正整数":return/^[1-9]\d*$/.test(n);case"负数":return/^-((\d+\.?\d*)|(\.\d+))$/.test(n);case"负整数":return/^-[1-9]\d*$/.test(n);case"浮点数":return/^-?(\d+\.?\d*|\.\d+)$/.test(n);case"日期":return/^\d{4}-\d{2}-\d{2}$/.test(n);case"时间":return/^([01]\d|2[0-3]):([0-5]\d)$/.test(n);case"身份证号":return/^\d{15}|\d{18}$/.test(n);default:return!1}}componentEvent(e){this.emit("componentEvent",e)}formatStyle(e){let n=e.props;if(n.style){let r={};for(const i in n.style)typeof n.style[i]=="number"?r[i]=`${n.style[i]}px`:n.style[i]!==null&&(r[i]=n.style[i]);return this.showMode||e.type==="datatable"&&r.hasOwnProperty("height")&&delete r.height,r}else return{}}resetWidgetConfig(){this.updateWidget("homepage",this.$utils.clone(hf.homepage,!0),!0)}setWidgetConfig(e,n=!1){const r=this.updatePageConfigIds(e,n);this.updateWidget("homepage",r,!0)}checkWidgetListRequiredById(e){let n=!0,r=[];const i=a=>{a.forEach(s=>{let l=s.props.hide===!0||s.props.vifStatus===!1||s.props.vshowStatus===!1;s.isContainer&&l||(s.props.zdname&&s.isForm&&!l&&((s.props.value===null||s.props.value===""||s.props.value===void 0||s.props.value==="[]"||JSON.stringify(s.props.value)=="[]")&&s.props.required?(r.includes(s.props.label+"不能为空")||r.push(s.props.label+"不能为空"),n=!1):s.props.validate&&s.props.value!==null&&s.props.value!==""&&s.props.value!==void 0&&(this.validateInput(s.props.validate,s.props.value)||(r.push(s.props.label+"格式不正确"),n=!1))),s.props.zdname&&s.type==="file"&&!l&&s.props.value==="[]"&&s.props.required&&(r.includes(s.props.label+"不能为空")||r.push(s.props.label+"不能为空"),n=!1),s.type==="datatable"&&s.props.value&&s.props.value.length&&s.widgetList.forEach(c=>{s.props.value.forEach(u=>{if(u.hasOwnProperty(c.props.zdname)&&c.props.required&&!c.props.hide&&(u[c.props.zdname]===null||u[c.props.zdname]===""||u[c.props.zdname]===void 0||u[c.props.zdname]==="[]"||JSON.stringify(u[c.props.zdname])=="[]")&&(r.includes(c.props.label+"不能为空")||r.push(c.props.label+"不能为空"),n=!1),u.hasOwnProperty(c.props.zdname)&&c.props.validate&&!c.props.hide){let d=u[c.props.zdname];d!==null&&d!==""&&d!==void 0&&(this.validateInput(c.props.validate,d)||(r.includes(c.props.label+"格式不正确")||r.push(c.props.label+"格式不正确"),n=!1))}})}),s.widgetList&&s.widgetList.length&&s.type!="datatable"&&i(s.widgetList))})};return i(this.getWidgetById(e).widgetList),r.length&&this.$message.warning(r[0]),n}getWidgetListResultById(e){let n={};const r=i=>{i.forEach(a=>{a.props.zdname&&(n[a.props.zdname]=a.props.value),a.widgetList&&a.widgetList.length&&a.type!="datatable"&&r(a.widgetList)})};return r(this.getWidgetById(e).widgetList),n}resetWidgetListById(e,n){const r=i=>{i.forEach(a=>{a.isForm&&(n===!0?a.props.value=null:a.props.value=a.props.defaultValue),a.widgetList&&a.widgetList.length&&r(a.widgetList)})};r(this.getWidgetById(e).widgetList)}inputWidgetListValueById(e,n){const r=i=>{i.forEach(a=>{if(a.isForm){const s=n[a.props.zdname];a.type==="datatable"&&Array.isArray(s)?(a.props.value=s,o.nextTick(()=>{const l=this.getVueInstance(a.id);l&&l.setRows&&l.setRows(s)})):a.props.value=s}a.widgetList&&a.widgetList.length&&r(a.widgetList)})};r(this.getWidgetById(e).widgetList)}getMethodById(e){const n=this.getVueInstance(e);return n?n.exposed||n:(console.warn(`组件 ${e} 尚未注册,无法获取其方法`),{})}getPropsById(e){return this.widgetMap.get(e).props}setFormType(e,n){this.widgetMap.get(e).props.formType=n}getFormType(e){return this.widgetMap.get(e).props.formType}setPropsById(e,n,r){this.widgetMap.get(e).props[n]=r}setVisible(e,n){n===!0?this.widgetMap.get(e).props.hide=!1:n===!1?this.widgetMap.get(e).props.hide=!0:console.error("请传true或false来控制显示隐藏")}setVueInstance(e,n){this.vueInstanceMap.set(e,n)}setVueIncetance(e,n){this.setVueInstance(e,n)}getSlotScope(e,n,r={}){return{name:n,data:r,widget:e,designer:this,onRegister:i=>{i&&this.setVueInstance(e.id,{exposed:i})}}}getValueAndLabelById(e){var i;let n=this.widgetMap.get(e);if(!n)return console.warn(`组件 ${e} 尚未注册,无法获取其属性`),{};let r=((i=n.props.list.find(a=>a.value===n.props.value))==null?void 0:i.label)||null;return{value:n.props.value,label:r}}setListByLabelAndValue(e,{value:n,label:r,list:i}){let a=this.widgetMap.get(e);if(!a){console.warn(`组件 ${e} 尚未注册,无法设置其属性`);return}if(i&&i instanceof Array){let s=i.map(l=>({value:l[n],label:l[r]}));a.props.list=s}}getVueInstance(e){return this.vueInstanceMap.get(e)}setParam(e,n){this.paramsMap.set(e,n)}getParam(e){return this.paramsMap.get(e)}applyFlowConfig(e,n=null){const r=this.getWidgetById(e);if(!r||!r.props.flowConfig)return;const i=n||this.flowValue,a=r.props.flowConfig[i];a&&Object.keys(a).forEach(s=>{if(r.props.hasOwnProperty(s)){r.props[s];const l=a[s];r.props[s]=l,this.showMode}})}applyAllFlowConfigs(e=null){const n=e||this.flowValue,r=i=>{i.forEach(a=>{a.props.flowConfig&&a.props.flowConfig[n]&&this.applyFlowConfig(a.id,n),a.widgetList&&a.widgetList.length&&r(a.widgetList)})};r(this.widgetConfig.widgetList)}setFlowStep(e){this.flowValue=e,this.applyAllFlowConfigs(e)}getFlowConfigPreview(e,n){const r=this.getWidgetById(e);return!r||!r.props.flowConfig?null:r.props.flowConfig[n]||null}setChosenWidget(e){this.chosenWidget.value=e}setValue(e,n){this.getWidgetById(e).props.value=n}getValue(e){return this.getWidgetById(e).props.value}setList(e,n){this.getWidgetById(e).props.list=n}setOption(e,n){this.getWidgetById(e).props.options=n}async requestByApisetConfig({type:e="apiSet",widget:n=null,resultCb:r=null,paramCb:i=null,headerCb:a=null,otherCb:s=null}){if(!this.showMode)return;let l=n.props[e];if(!l||!l.apiurl)return;let c={},u={},d=l.method;if(l.contentType=="FormData"&&(d=="post"||d=="put"||d=="patch")&&(d+="FormData"),l.contentType=="file"&&(d+="File"),l.params.length&&l.params.forEach(m=>{c[m.label]=m.value}),l.headers&&l.headers.length&&l.headers.forEach(m=>{u[m.label]=m.value}),i&&(c=i(c)),a&&(u=a(u)),l.paramsFormat){let m=new Function("params","widget","app",`return (async function(){
530
+ })()`)(e,r,this.getVueInstance(r.id),a,s,this);if(i)return i(d)}}isMobileStatus(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}validateInput(e,n){switch(e){case"数字":return/^-?\d+(\.\d+)?$/.test(n);case"字母":return/^[A-Za-z]+$/.test(n);case"数字字母":return/^[A-Za-z0-9]+$/.test(n);case"手机号":return/^1[3-9]\d{9}$/.test(n);case"邮箱":return/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(n);case"网址":return/^(https?:\/\/)?([\w\-])+\.{1}([a-zA-Z]{2,63})([\w\-\.\~\?\#\/]*)$/.test(n);case"非中文字符":return/^[^\u4e00-\u9fa5]+$/.test(n);case"仅中文字符":return/^[\u4e00-\u9fa5]+$/.test(n);case"正数":return/^\d+(\.\d+)?$/.test(n);case"正整数":return/^[1-9]\d*$/.test(n);case"负数":return/^-((\d+\.?\d*)|(\.\d+))$/.test(n);case"负整数":return/^-[1-9]\d*$/.test(n);case"浮点数":return/^-?(\d+\.?\d*|\.\d+)$/.test(n);case"日期":return/^\d{4}-\d{2}-\d{2}$/.test(n);case"时间":return/^([01]\d|2[0-3]):([0-5]\d)$/.test(n);case"身份证号":return/^\d{15}|\d{18}$/.test(n);default:return!1}}componentEvent(e){this.emit("componentEvent",e)}formatStyle(e){let n=e.props;if(n.style){let r={};for(const i in n.style)typeof n.style[i]=="number"?r[i]=`${n.style[i]}px`:n.style[i]!==null&&(r[i]=n.style[i]);return this.showMode||e.type==="datatable"&&r.hasOwnProperty("height")&&delete r.height,r}else return{}}resetWidgetConfig(){this.updateWidget("homepage",this.$utils.clone(hf.homepage,!0),!0)}setWidgetConfig(e,n=!1){const r=this.updatePageConfigIds(e,n);this.updateWidget("homepage",r,!0)}setAppid(e){this.options.appId=e}checkWidgetListRequiredById(e){let n=!0,r=[];const i=a=>{a.forEach(s=>{let l=s.props.hide===!0||s.props.vifStatus===!1||s.props.vshowStatus===!1;s.isContainer&&l||(s.props.zdname&&s.isForm&&!l&&((s.props.value===null||s.props.value===""||s.props.value===void 0||s.props.value==="[]"||JSON.stringify(s.props.value)=="[]")&&s.props.required?(r.includes(s.props.label+"不能为空")||r.push(s.props.label+"不能为空"),n=!1):s.props.validate&&s.props.value!==null&&s.props.value!==""&&s.props.value!==void 0&&(this.validateInput(s.props.validate,s.props.value)||(r.push(s.props.label+"格式不正确"),n=!1))),s.props.zdname&&s.type==="file"&&!l&&s.props.value==="[]"&&s.props.required&&(r.includes(s.props.label+"不能为空")||r.push(s.props.label+"不能为空"),n=!1),s.type==="datatable"&&s.props.value&&s.props.value.length&&s.widgetList.forEach(c=>{s.props.value.forEach(u=>{if(u.hasOwnProperty(c.props.zdname)&&c.props.required&&!c.props.hide&&(u[c.props.zdname]===null||u[c.props.zdname]===""||u[c.props.zdname]===void 0||u[c.props.zdname]==="[]"||JSON.stringify(u[c.props.zdname])=="[]")&&(r.includes(c.props.label+"不能为空")||r.push(c.props.label+"不能为空"),n=!1),u.hasOwnProperty(c.props.zdname)&&c.props.validate&&!c.props.hide){let d=u[c.props.zdname];d!==null&&d!==""&&d!==void 0&&(this.validateInput(c.props.validate,d)||(r.includes(c.props.label+"格式不正确")||r.push(c.props.label+"格式不正确"),n=!1))}})}),s.widgetList&&s.widgetList.length&&s.type!="datatable"&&i(s.widgetList))})};return i(this.getWidgetById(e).widgetList),r.length&&this.$message.warning(r[0]),n}getWidgetListResultById(e){let n={};const r=i=>{i.forEach(a=>{a.props.zdname&&(n[a.props.zdname]=a.props.value),a.widgetList&&a.widgetList.length&&a.type!="datatable"&&r(a.widgetList)})};return r(this.getWidgetById(e).widgetList),n}resetWidgetListById(e,n){const r=i=>{i.forEach(a=>{a.isForm&&(n===!0?a.props.value=null:a.props.value=a.props.defaultValue),a.widgetList&&a.widgetList.length&&r(a.widgetList)})};r(this.getWidgetById(e).widgetList)}inputWidgetListValueById(e,n){const r=i=>{i.forEach(a=>{if(a.isForm){const s=n[a.props.zdname];a.type==="datatable"&&Array.isArray(s)?(a.props.value=s,o.nextTick(()=>{const l=this.getVueInstance(a.id);l&&l.setRows&&l.setRows(s)})):a.props.value=s}a.widgetList&&a.widgetList.length&&r(a.widgetList)})};r(this.getWidgetById(e).widgetList)}getMethodById(e){const n=this.getVueInstance(e);return n?n.exposed||n:(console.warn(`组件 ${e} 尚未注册,无法获取其方法`),{})}getPropsById(e){return this.widgetMap.get(e).props}setFormType(e,n){this.widgetMap.get(e).props.formType=n}getFormType(e){return this.widgetMap.get(e).props.formType}setPropsById(e,n,r){this.widgetMap.get(e).props[n]=r}setVisible(e,n){n===!0?this.widgetMap.get(e).props.hide=!1:n===!1?this.widgetMap.get(e).props.hide=!0:console.error("请传true或false来控制显示隐藏")}setVueInstance(e,n){this.vueInstanceMap.set(e,n)}setVueIncetance(e,n){this.setVueInstance(e,n)}getSlotScope(e,n,r={}){return{name:n,data:r,widget:e,designer:this,onRegister:i=>{i&&this.setVueInstance(e.id,{exposed:i})}}}getValueAndLabelById(e){var i;let n=this.widgetMap.get(e);if(!n)return console.warn(`组件 ${e} 尚未注册,无法获取其属性`),{};let r=((i=n.props.list.find(a=>a.value===n.props.value))==null?void 0:i.label)||null;return{value:n.props.value,label:r}}setListByLabelAndValue(e,{value:n,label:r,list:i}){let a=this.widgetMap.get(e);if(!a){console.warn(`组件 ${e} 尚未注册,无法设置其属性`);return}if(i&&i instanceof Array){let s=i.map(l=>({value:l[n],label:l[r]}));a.props.list=s}}getVueInstance(e){return this.vueInstanceMap.get(e)}setParam(e,n){this.paramsMap.set(e,n)}getParam(e){return this.paramsMap.get(e)}applyFlowConfig(e,n=null){const r=this.getWidgetById(e);if(!r||!r.props.flowConfig)return;const i=n||this.flowValue,a=r.props.flowConfig[i];a&&Object.keys(a).forEach(s=>{if(r.props.hasOwnProperty(s)){r.props[s];const l=a[s];r.props[s]=l,this.showMode}})}applyAllFlowConfigs(e=null){const n=e||this.flowValue,r=i=>{i.forEach(a=>{a.props.flowConfig&&a.props.flowConfig[n]&&this.applyFlowConfig(a.id,n),a.widgetList&&a.widgetList.length&&r(a.widgetList)})};r(this.widgetConfig.widgetList)}setFlowStep(e){this.flowValue=e,this.applyAllFlowConfigs(e)}getFlowConfigPreview(e,n){const r=this.getWidgetById(e);return!r||!r.props.flowConfig?null:r.props.flowConfig[n]||null}setChosenWidget(e){this.chosenWidget.value=e}setValue(e,n){this.getWidgetById(e).props.value=n}getValue(e){return this.getWidgetById(e).props.value}setList(e,n){this.getWidgetById(e).props.list=n}setOption(e,n){this.getWidgetById(e).props.options=n}async requestByApisetConfig({type:e="apiSet",widget:n=null,resultCb:r=null,paramCb:i=null,headerCb:a=null,otherCb:s=null}){if(!this.showMode)return;let l=n.props[e];if(!l||!l.apiurl)return;let c={},u={},d=l.method;if(l.contentType=="FormData"&&(d=="post"||d=="put"||d=="patch")&&(d+="FormData"),l.contentType=="file"&&(d+="File"),l.params.length&&l.params.forEach(m=>{c[m.label]=m.value}),l.headers&&l.headers.length&&l.headers.forEach(m=>{u[m.label]=m.value}),i&&(c=i(c)),a&&(u=a(u)),l.paramsFormat){let m=new Function("params","widget","app",`return (async function(){
531
531
  ${l.paramsFormat}
532
532
  })()`),h=this.$utils.clone(c,!0);var f=await m(h,n,this);if(f&&typeof this.$utils.isPlainObject(f)&&(c=f),f===!1){s&&s();return}}if(l.headersFormat){let m=new Function("headers","widget","app",`return (async function(){
533
533
  ${l.headersFormat}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zforg",
3
3
  "private": false,
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"