sun-form-v3 1.0.193 → 1.0.194

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 { ref as C, resolveComponent as m, openBlock as k, createElementBlock as S, Fragment as M, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as j, createElementVNode as g, toDisplayString as T, createCommentVNode as O, pushScopeId as q, popScopeId as J, createBlock as K } from "vue";
2
- import { _ as Q } from "./index-DDpbQHSl.js";
2
+ import { _ as Q } from "./index-BuIFE0t3.js";
3
3
  const A = (_) => (q("data-v-75dc2686"), _ = _(), J(), _), W = /* @__PURE__ */ A(() => /* @__PURE__ */ g("span", null, "复杂表头配置", -1)), h = {
4
4
  key: 0,
5
5
  class: "flex h-full flex-col"
@@ -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 { c } from "./index-DDpbQHSl.js";
2
+ import { c } from "./index-BuIFE0t3.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 j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
2
- import { e as E, i as M } from "./index-DDpbQHSl.js";
2
+ import { e as E, i as M } from "./index-BuIFE0t3.js";
3
3
  const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { 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" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
4
4
  __name: "chartChoose",
5
5
  props: {
@@ -175704,12 +175704,9 @@ const xdn = {
175704
175704
  widget: n.widget
175705
175705
  });
175706
175706
  }, p = async () => {
175707
- if (!n.designer.showMode)
175708
- return;
175709
- let f = n.designer.checkWidgetListRequiredById(
175707
+ if (!n.designer.showMode || !n.designer.checkWidgetListRequiredById(
175710
175708
  n.widget.id
175711
- );
175712
- if (console.log(f), !f)
175709
+ ))
175713
175710
  return;
175714
175711
  let m = l(), g = r.value.formType;
175715
175712
  try {
@@ -175852,7 +175849,7 @@ const xdn = {
175852
175849
  ]);
175853
175850
  };
175854
175851
  }
175855
- }), Idn = /* @__PURE__ */ Nu(Odn, [["__scopeId", "data-v-fc9c85f6"]]), Ndn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
175852
+ }), Idn = /* @__PURE__ */ Nu(Odn, [["__scopeId", "data-v-ccb4de16"]]), Ndn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
175856
175853
  __proto__: null,
175857
175854
  default: Idn
175858
175855
  }, Symbol.toStringTag, { value: "Module" })), Rdn = /* @__PURE__ */ Object.assign({ name: "widget-homepage" }, {
@@ -184637,11 +184634,12 @@ class cHe {
184637
184634
  let n = !0, r = [];
184638
184635
  const i = (a) => {
184639
184636
  console.log(a), a.forEach((o) => {
184640
- o.isContainer && o.props.hide || (o.props.zdname && o.isForm && !o.props.hide && (console.log(o.props.zdname), (o.props.value === null || o.props.value === "" || o.props.value === void 0 || JSON.stringify(o.props.value) == "[]") && o.props.required ? (r.push(o.props.label + "不能为空"), n = !1) : o.props.validate && o.props.value !== null && o.props.value !== "" && o.props.value !== void 0 && (this.validateInput(o.props.validate, o.props.value) || (r.push(o.props.label + "格式不正确"), n = !1))), o.props.zdname && o.type === "file" && !o.props.hide && o.props.value === "[]" && o.props.required && (r.push(o.props.label + "不能为空"), n = !1), o.type === "datatable" && o.props.value && o.props.value.length && o.widgetList.forEach((s) => {
184641
- o.props.value.forEach((l) => {
184642
- if (l.hasOwnProperty(s.props.zdname) && s.props.required && !s.props.hide && (l[s.props.zdname] === null || l[s.props.zdname] === "" || l[s.props.zdname] === void 0 || JSON.stringify(l[s.props.zdname]) == "[]") && (r.includes(s.props.label + "不能为空") || r.push(s.props.label + "不能为空"), n = !1), l.hasOwnProperty(s.props.zdname) && s.props.validate && !s.props.hide) {
184643
- let c = l[s.props.zdname];
184644
- c !== null && c !== "" && c !== void 0 && (this.validateInput(s.props.validate, c) || (r.includes(s.props.label + "格式不正确") || r.push(s.props.label + "格式不正确"), n = !1));
184637
+ let s = o.props.hide === !0 || o.props.vifStatus === !1 || o.props.vshowStatus === !1;
184638
+ console.log(o.props.zdname, o.props.vshowStatus), !(o.isContainer && s) && (o.props.zdname && o.isForm && !s && (console.log(o.props.zdname), (o.props.value === null || o.props.value === "" || o.props.value === void 0 || JSON.stringify(o.props.value) == "[]") && o.props.required ? (r.push(o.props.label + "不能为空"), n = !1) : o.props.validate && o.props.value !== null && o.props.value !== "" && o.props.value !== void 0 && (this.validateInput(o.props.validate, o.props.value) || (r.push(o.props.label + "格式不正确"), n = !1))), o.props.zdname && o.type === "file" && !s && o.props.value === "[]" && o.props.required && (r.push(o.props.label + "不能为空"), n = !1), o.type === "datatable" && o.props.value && o.props.value.length && o.widgetList.forEach((l) => {
184639
+ o.props.value.forEach((c) => {
184640
+ if (c.hasOwnProperty(l.props.zdname) && l.props.required && !l.props.hide && (c[l.props.zdname] === null || c[l.props.zdname] === "" || c[l.props.zdname] === void 0 || JSON.stringify(c[l.props.zdname]) == "[]") && (r.includes(l.props.label + "不能为空") || r.push(l.props.label + "不能为空"), n = !1), c.hasOwnProperty(l.props.zdname) && l.props.validate && !l.props.hide) {
184641
+ let u = c[l.props.zdname];
184642
+ u !== null && u !== "" && u !== void 0 && (this.validateInput(l.props.validate, u) || (r.includes(l.props.label + "格式不正确") || r.push(l.props.label + "格式不正确"), n = !1));
184645
184643
  }
184646
184644
  });
184647
184645
  }), o.widgetList && o.widgetList.length && o.type != "datatable" && i(o.widgetList));
@@ -256401,7 +256399,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
256401
256399
  "element-plus": D8t,
256402
256400
  "@element-plus/icons-vue": h1t,
256403
256401
  echarts: Fcn,
256404
- "echarts-gl": () => import("./index-DyMlsLMs.js")
256402
+ "echarts-gl": () => import("./index-DEmlgSVA.js")
256405
256403
  },
256406
256404
  async getFile(d) {
256407
256405
  return d === "element-plus" ? "export * from 'element-plus'; export { default } from 'element-plus';" : d === "@element-plus/icons-vue" ? "export * from '@element-plus/icons-vue'; export { default } from '@element-plus/icons-vue';" : d === "echarts" ? "export * from 'echarts'; export { default } from 'echarts';" : d === "echarts-gl" ? "import 'echarts-gl'; export {};" : d === "vue" ? "export * from 'vue'; export { default } from 'vue';" : s();
@@ -257762,7 +257760,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
257762
257760
  if (h) {
257763
257761
  let m = new Function("widget", "app", h)(e.widget, e.designer);
257764
257762
  if (typeof m == "boolean")
257765
- return m;
257763
+ return e.widget.props.vifStatus = m, m;
257766
257764
  } else
257767
257765
  return !0;
257768
257766
  } catch {
@@ -257776,7 +257774,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
257776
257774
  if (h) {
257777
257775
  let m = new Function("widget", "app", h)(e.widget, e.designer);
257778
257776
  if (typeof m == "boolean")
257779
- return m;
257777
+ return e.widget.props.vshowStatus = m, m;
257780
257778
  } else
257781
257779
  return !0;
257782
257780
  } catch {
@@ -257939,7 +257937,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
257939
257937
  ]) : Et("", !0);
257940
257938
  };
257941
257939
  }
257942
- }), $Bn = /* @__PURE__ */ Nu(VBn, [["__scopeId", "data-v-048ade84"]]), UBn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
257940
+ }), $Bn = /* @__PURE__ */ Nu(VBn, [["__scopeId", "data-v-eeb80a65"]]), UBn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
257943
257941
  __proto__: null,
257944
257942
  default: $Bn
257945
257943
  }, Symbol.toStringTag, { value: "Module" })), jBn = /* @__PURE__ */ ge("span", null, "图标选择", -1), zBn = { class: "flex flex-wrap border" }, HBn = ["onClick"], GBn = { class: "mt-2 text-xs" }, WBn = /* @__PURE__ */ Object.assign({ name: "commonIconChoose" }, {
@@ -260747,7 +260745,6 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
260747
260745
  }, u = (h) => {
260748
260746
  r("insert-below", h), p();
260749
260747
  }, d = (h) => {
260750
- n.designer.setChosenId(h.id);
260751
260748
  }, p = () => {
260752
260749
  r("update:modelValue", !1);
260753
260750
  };
@@ -260792,7 +260789,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
260792
260789
  }, {
260793
260790
  default: Qe(({ row: y }) => [
260794
260791
  ge("div", {
260795
- onClick: (S) => d(y),
260792
+ onClick: (S) => d(),
260796
260793
  class: Ke(["cursor-pointer pl-0 box-border hover:bg-gray-50 select-none", { "bg-blue-50": o(y) }])
260797
260794
  }, [
260798
260795
  ge("div", BVn, [
@@ -260852,7 +260849,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
260852
260849
  }, 8, ["modelValue"]);
260853
260850
  };
260854
260851
  }
260855
- }, YVn = /* @__PURE__ */ Nu(qVn, [["__scopeId", "data-v-c5198ecd"]]), fce = (t) => (y1("data-v-82c3a4ba"), t = t(), _1(), t), KVn = { class: "w-full" }, XVn = {
260852
+ }, YVn = /* @__PURE__ */ Nu(qVn, [["__scopeId", "data-v-04383ee5"]]), fce = (t) => (y1("data-v-82c3a4ba"), t = t(), _1(), t), KVn = { class: "w-full" }, XVn = {
260856
260853
  key: 0,
260857
260854
  class: "mt-2 text-sm text-gray-600"
260858
260855
  }, QVn = {
@@ -260885,7 +260882,7 @@ const a8n = { key: 1 }, o8n = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
260885
260882
  },
260886
260883
  setup(t) {
260887
260884
  const n = Object.fromEntries(
260888
- 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-mnAALF.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-N1g1Zm6p.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-nY_E-1Gm.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-modal/index.vue": () => import("./index-CiNAZsvy.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-statistic/index.vue": () => import("./index-BMf9YpSm.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-DBcnAIDk.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-n6CXtJq6.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-4OUDg-2l.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([V, L]) => {
260885
+ 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-BSGl4Vv9.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-BtabEesn.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-nY_E-1Gm.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-modal/index.vue": () => import("./index-CiNAZsvy.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-statistic/index.vue": () => import("./index-ChARClC3.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-DMdS11ZQ.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-BkfKMI7z.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-r7iW8fWf.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([V, L]) => {
260889
260886
  const $ = V.match(/\/([^/]+)\/index\.vue$/);
260890
260887
  return [$ ? $[1] : null, VKe(L)];
260891
260888
  })
@@ -1,5 +1,5 @@
1
1
  import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
2
- import { _ as E, c as H } from "./index-DDpbQHSl.js";
2
+ import { _ as E, c as H } from "./index-BuIFE0t3.js";
3
3
  const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -0,0 +1 @@
1
+ import "./index-BuIFE0t3.js";
@@ -1,5 +1,5 @@
1
1
  import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
2
- import { _ as E } from "./index-DDpbQHSl.js";
2
+ import { _ as E } from "./index-BuIFE0t3.js";
3
3
  const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
2
- import { _ as T } from "./index-DDpbQHSl.js";
2
+ import { _ as T } from "./index-BuIFE0t3.js";
3
3
  const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
4
4
  __name: "dataConfig",
5
5
  props: {