sun-form-v3 1.0.140 → 1.0.142

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 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-OHkpMrBv.js";
2
+ import { c } from "./index-DFkxehSs.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 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-OHkpMrBv.js";
2
+ import { e as E, i as M } from "./index-DFkxehSs.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 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-OHkpMrBv.js";
2
+ import { _ as E } from "./index-DFkxehSs.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-OHkpMrBv.js";
2
+ import { _ as E, c as H } from "./index-DFkxehSs.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
- import { resolveComponent as m, openBlock as r, createElementBlock as s, Fragment as g, createVNode as o, withCtx as n, unref as t } from "vue";
2
- const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
1
+ import { resolveComponent as i, openBlock as s, createElementBlock as r, Fragment as V, createVNode as o, withCtx as p, unref as t } from "vue";
2
+ const f = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
3
3
  __name: "index",
4
4
  props: {
5
5
  designer: {
@@ -11,14 +11,14 @@ const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
11
11
  default: {}
12
12
  }
13
13
  },
14
- setup(i) {
15
- let e = i;
16
- return (V, l) => {
17
- const p = m("el-input"), a = m("common-label-container"), u = m("el-switch");
18
- return r(), s(g, null, [
14
+ setup(m) {
15
+ let e = m;
16
+ return (g, l) => {
17
+ const u = i("el-input"), a = i("common-label-container"), n = i("el-switch");
18
+ return s(), r(V, null, [
19
19
  o(a, { label: "弹窗标题" }, {
20
- default: n(() => [
21
- o(p, {
20
+ default: p(() => [
21
+ o(u, {
22
22
  modelValue: t(e).widget.props.title,
23
23
  "onUpdate:modelValue": l[0] || (l[0] = (d) => t(e).widget.props.title = d),
24
24
  placeholder: "填写弹窗标题"
@@ -27,8 +27,8 @@ const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
27
27
  _: 1
28
28
  }),
29
29
  o(a, { label: "弹窗宽度" }, {
30
- default: n(() => [
31
- o(p, {
30
+ default: p(() => [
31
+ o(u, {
32
32
  modelValue: t(e).widget.props.modalWidth,
33
33
  "onUpdate:modelValue": l[1] || (l[1] = (d) => t(e).widget.props.modalWidth = d),
34
34
  placeholder: "填写弹窗宽度"
@@ -37,8 +37,8 @@ const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
37
37
  _: 1
38
38
  }),
39
39
  o(a, { label: "弹窗高度" }, {
40
- default: n(() => [
41
- o(p, {
40
+ default: p(() => [
41
+ o(u, {
42
42
  modelValue: t(e).widget.props.modalHeight,
43
43
  "onUpdate:modelValue": l[2] || (l[2] = (d) => t(e).widget.props.modalHeight = d),
44
44
  placeholder: "填写弹窗高度"
@@ -47,8 +47,8 @@ const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
47
47
  _: 1
48
48
  }),
49
49
  o(a, { label: "是否显示按钮栏" }, {
50
- default: n(() => [
51
- o(u, {
50
+ default: p(() => [
51
+ o(n, {
52
52
  modelValue: t(e).widget.props.hasFooter,
53
53
  "onUpdate:modelValue": l[3] || (l[3] = (d) => t(e).widget.props.hasFooter = d)
54
54
  }, null, 8, ["modelValue"])
@@ -56,18 +56,45 @@ const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
56
56
  _: 1
57
57
  }),
58
58
  o(a, { label: "是否隐藏确定键" }, {
59
- default: n(() => [
60
- o(u, {
59
+ default: p(() => [
60
+ o(n, {
61
61
  modelValue: t(e).widget.props.hideConfirm,
62
62
  "onUpdate:modelValue": l[4] || (l[4] = (d) => t(e).widget.props.hideConfirm = d)
63
63
  }, null, 8, ["modelValue"])
64
64
  ]),
65
65
  _: 1
66
+ }),
67
+ o(a, { label: "是否缩放" }, {
68
+ default: p(() => [
69
+ o(n, {
70
+ modelValue: t(e).widget.props.isZoom,
71
+ "onUpdate:modelValue": l[5] || (l[5] = (d) => t(e).widget.props.isZoom = d)
72
+ }, null, 8, ["modelValue"])
73
+ ]),
74
+ _: 1
75
+ }),
76
+ o(a, { label: "是否调整大小" }, {
77
+ default: p(() => [
78
+ o(n, {
79
+ modelValue: t(e).widget.props.isResize,
80
+ "onUpdate:modelValue": l[6] || (l[6] = (d) => t(e).widget.props.isResize = d)
81
+ }, null, 8, ["modelValue"])
82
+ ]),
83
+ _: 1
84
+ }),
85
+ o(a, { label: "是否ESC闭" }, {
86
+ default: p(() => [
87
+ o(n, {
88
+ modelValue: t(e).widget.props.isEscClosable,
89
+ "onUpdate:modelValue": l[7] || (l[7] = (d) => t(e).widget.props.isEscClosable = d)
90
+ }, null, 8, ["modelValue"])
91
+ ]),
92
+ _: 1
66
93
  })
67
94
  ], 64);
68
95
  };
69
96
  }
70
97
  });
71
98
  export {
72
- w as default
99
+ f as default
73
100
  };
@@ -2847,6 +2847,9 @@ const f1e = {
2847
2847
  hasFooter: !0,
2848
2848
  list: [],
2849
2849
  height: null,
2850
+ isZoom: !1,
2851
+ isResize: !1,
2852
+ isEscClosable: !1,
2850
2853
  onCreated: null,
2851
2854
  onMounted: null,
2852
2855
  onConfirm: null,
@@ -79058,6 +79061,9 @@ const QZe = {
79058
79061
  onHide: s,
79059
79062
  width: Y(i).modalWidth,
79060
79063
  height: Y(i).modalHeight,
79064
+ "show-zoom": Y(i).isZoom,
79065
+ resize: Y(i).isResize,
79066
+ "esc-closable": Y(i).isEscClosable,
79061
79067
  "show-footer": Y(i).hasFooter
79062
79068
  }, {
79063
79069
  title: Ve(() => [
@@ -79109,7 +79115,7 @@ const QZe = {
79109
79115
  }))
79110
79116
  ]),
79111
79117
  _: 3
79112
- }, 8, ["modelValue", "width", "height", "show-footer"])
79118
+ }, 8, ["modelValue", "width", "height", "show-zoom", "resize", "esc-closable", "show-footer"])
79113
79119
  ], 64);
79114
79120
  };
79115
79121
  }
@@ -89074,26 +89080,30 @@ class oge {
89074
89080
  httpBeforeSendHandle: a = null,
89075
89081
  parentApp: s = null,
89076
89082
  headers: l = {},
89077
- emit: u
89083
+ params: u = {},
89084
+ emit: c
89078
89085
  }) {
89079
- this.$message = nge, this.$confirm = gEt.confirm, this.$notify = mB, this.md5 = DEt, this.emit = u, this.parentApp = s, this.options = {
89086
+ if (this.$message = nge, this.$confirm = gEt.confirm, this.$notify = mB, this.md5 = DEt, this.emit = c, this.parentApp = s, this.params = u, this.options = {
89080
89087
  baseUrl: r,
89081
89088
  httpSuccessHandle: i,
89082
89089
  httpErrorHandle: o,
89083
89090
  httpBeforeSendHandle: a,
89084
89091
  headers: l
89085
- }, this.showMode = ct(n), this.isDark = ct(!1), this.$utils = K, t ? this.widgetConfig = wi(t) : this.widgetConfig = wi(this.$utils.clone(_l.homepage)), this.widgetMap = /* @__PURE__ */ new Map(), this.vueInstanceMap = /* @__PURE__ */ new Map(), this.paramsMap = /* @__PURE__ */ new Map(), this.widgetIds = [], this.chosenWidget = ct(null), this.historyList = [], this.historyIndex = ct(0), this.isHistory = !1, this.$http = new CEt({
89092
+ }, this.showMode = ct(n), this.isDark = ct(!1), this.$utils = K, t ? this.widgetConfig = wi(t) : this.widgetConfig = wi(this.$utils.clone(_l.homepage)), this.widgetMap = /* @__PURE__ */ new Map(), this.vueInstanceMap = /* @__PURE__ */ new Map(), this.paramsMap = /* @__PURE__ */ new Map(), u)
89093
+ for (const f in u)
89094
+ this.paramsMap.set(f, u[f]);
89095
+ this.widgetIds = [], this.chosenWidget = ct(null), this.historyList = [], this.historyIndex = ct(0), this.isHistory = !1, this.$http = new CEt({
89086
89096
  baseUrl: r,
89087
89097
  httpSuccessHandle: i,
89088
89098
  httpErrorHandle: o,
89089
89099
  httpBeforeSendHandle: a,
89090
89100
  headers: l
89091
- }), this.buildWidgetMap(this.widgetConfig), hn(() => this.widgetConfig, (c) => {
89101
+ }), this.buildWidgetMap(this.widgetConfig), hn(() => this.widgetConfig, (f) => {
89092
89102
  this.rebuildWidgetMap(), this.chosenWidget.value = this.getWidgetById(this.widgetConfig.chosenId);
89093
89103
  }, {
89094
89104
  deep: !0,
89095
89105
  immediate: !0
89096
- }), hn(() => this.widgetConfig.widgetList, (c) => {
89106
+ }), hn(() => this.widgetConfig.widgetList, (f) => {
89097
89107
  this.isHistory ? this.isHistory = !1 : (this.historyList.push({
89098
89108
  widgetConfig: this.$utils.clone(this.widgetConfig, !0),
89099
89109
  time: this.$utils.toDateString(/* @__PURE__ */ new Date(), "HH:mm:ss"),
@@ -89519,6 +89529,10 @@ const LH = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
89519
89529
  type: Object,
89520
89530
  default: {}
89521
89531
  },
89532
+ params: {
89533
+ type: Object,
89534
+ default: {}
89535
+ },
89522
89536
  parentApp: {
89523
89537
  type: Object
89524
89538
  }
@@ -89537,6 +89551,7 @@ const LH = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
89537
89551
  baseUrl: r.baseUrl,
89538
89552
  headers: r.headers,
89539
89553
  parentApp: r.parentApp,
89554
+ params: r.params,
89540
89555
  emit: i
89541
89556
  })
89542
89557
  );
@@ -93328,7 +93343,7 @@ const LH = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
93328
93343
  },
93329
93344
  setup(e) {
93330
93345
  const n = Object.fromEntries(
93331
- 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-DsyWW00w.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-yb7U8nT1.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-ddXnDGZr.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BU3xx_sm.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-DIwhu60e.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DVgKDMax.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-D2ah45hi.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-CrPuaJ_S.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-C0NXubiF.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-Dz1MF5RJ.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
93346
+ 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-DsyWW00w.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-DQsc8k6U.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-BgQ2sT-N.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BU3xx_sm.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-radio/index.vue": () => import("./index-DVgKDMax.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-C5M3FCnE.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-BzAXVuey.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-8olmZHqO.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-xrlV87pT.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
93332
93347
  const y = p.match(/\/([^/]+)\/index\.vue$/);
93333
93348
  return [y ? y[1] : null, p_e(h)];
93334
93349
  })
@@ -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-OHkpMrBv.js";
2
+ import { _ as $ } from "./index-DFkxehSs.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 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-OHkpMrBv.js";
2
+ import { _ as T } from "./index-DFkxehSs.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,4 +1,4 @@
1
- import { a as f } from "./index-OHkpMrBv.js";
1
+ import { a as f } from "./index-DFkxehSs.js";
2
2
  export {
3
3
  f as default
4
4
  };