sun-form-v3 1.0.149 → 1.0.151

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.
@@ -2002,7 +2002,6 @@ const pxe = {
2002
2002
  let o = Le(() => r.widget.props);
2003
2003
  const a = Le({
2004
2004
  set: (d) => {
2005
- console.log();
2006
2005
  let p = null;
2007
2006
  d && d.length > 0 && (o.value.postLastLevel ? p = d[d.length - 1] : p = d.join(",")), o.value.isTableItem ? i("update:modelValue", p) : o.value.value = p;
2008
2007
  },
@@ -2011,7 +2010,7 @@ const pxe = {
2011
2010
  if (o.value.isTableItem ? d = r.modelValue || o.value.value : d = o.value.value, d && typeof d == "string")
2012
2011
  if (o.value.postLastLevel && !o.value.multiple) {
2013
2012
  if (o.value.checkStrictly)
2014
- return c(o.value.options, d);
2013
+ return c(o.value.options || [], d);
2015
2014
  if (o.value.options)
2016
2015
  return u(o.value.options, d);
2017
2016
  } else
@@ -4880,7 +4879,7 @@ const pxe = {
4880
4879
  ], 4);
4881
4880
  };
4882
4881
  }
4883
- }), Yxe = /* @__PURE__ */ ls(Uxe, [["__scopeId", "data-v-bd7a9927"]]);
4882
+ }), Yxe = /* @__PURE__ */ ls(Uxe, [["__scopeId", "data-v-de0e8611"]]);
4884
4883
  /**!
4885
4884
  * Sortable 1.15.3
4886
4885
  * @author RubaXa <trash@rubaxa.org>
@@ -79039,7 +79038,9 @@ const eQe = {
79039
79038
  const r = ft(!1);
79040
79039
  let i = Le(() => n.widget.props), o = null;
79041
79040
  const a = (f) => {
79042
- o = n.designer.$utils.clone(n.widget, !0), r.value = !0, f && f();
79041
+ o = n.designer.$utils.clone(n.widget, !0), r.value = !0, dt(() => {
79042
+ f && f();
79043
+ });
79043
79044
  }, s = () => {
79044
79045
  r.value = !1, n.designer.eventHandle({
79045
79046
  eventType: "onHideModel",
@@ -90923,7 +90924,8 @@ class sme {
90923
90924
  r(this.getWidgetById(t).widgetList);
90924
90925
  }
90925
90926
  getMethodById(t) {
90926
- return this.getVueInstance(t).exposed;
90927
+ const n = this.getVueInstance(t);
90928
+ return n ? n.exposed : (console.warn(`组件 ${t} 尚未注册,无法获取其方法`), {});
90927
90929
  }
90928
90930
  getPropsById(t) {
90929
90931
  return this.widgetMap.get(t).props;
@@ -95054,7 +95056,7 @@ const v6 = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
95054
95056
  },
95055
95057
  setup(e) {
95056
95058
  const n = Object.fromEntries(
95057
- 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-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-C8TDV72F.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-M_Ig83K7.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BRnMjd7_.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.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-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-C9jZMnJ3.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-tIFB3cIv.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-Dl3hUvhj.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-pUaKL8QN.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
95059
+ 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-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-CntuYe_6.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-eSTHC9hz.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BRnMjd7_.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.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-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-QTm1FLRg.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-CpYGLLMQ.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-Ca9uoawH.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-sIiQoBcp.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
95058
95060
  const y = p.match(/\/([^/]+)\/index\.vue$/);
95059
95061
  return [y ? y[1] : null, v_e(h)];
95060
95062
  })
@@ -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-BloK3gtx.js";
2
+ import { c } from "./index-BLKqt0UJ.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 { ref as C, resolveComponent as g, openBlock as T, createElementBlock as H, Fragment as E, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as A, createElementVNode as f, toDisplayString as k, createCommentVNode as D } from "vue";
2
- import { _ as $ } from "./index-BloK3gtx.js";
2
+ import { _ as $ } from "./index-BLKqt0UJ.js";
3
3
  const q = {
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 u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
2
- import { _ as E } from "./index-BloK3gtx.js";
2
+ import { _ as E } from "./index-BLKqt0UJ.js";
3
3
  const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
4
4
  __name: "dataConfig",
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, unref as u, isRef as J, createElementVNode as m } from "vue";
2
- import { _ as E, c as H } from "./index-BloK3gtx.js";
2
+ import { _ as E, c as H } from "./index-BLKqt0UJ.js";
3
3
  const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
4
4
  __name: "dataConfig",
5
5
  props: {
@@ -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 U, createBlock as D } from "vue";
2
- import { e as E, i as M } from "./index-BloK3gtx.js";
2
+ import { e as E, i as M } from "./index-BLKqt0UJ.js";
3
3
  const R = { class: "flex-wrap flex" }, S = ["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 p, openBlock as U, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as g, unref as i, isRef as J, createElementVNode as f } from "vue";
2
- import { _ as T } from "./index-BloK3gtx.js";
2
+ import { _ as T } from "./index-BLKqt0UJ.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: {