hfl-comp-editor 0.0.0

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.
Files changed (86) hide show
  1. package/README.md +5 -0
  2. package/dist/Attr-6xFWM3Vu.js +148 -0
  3. package/dist/Attr-7IY8eomx.js +336 -0
  4. package/dist/Attr-B1lXQOcv.js +201 -0
  5. package/dist/Attr-BAFtdDJg.js +305 -0
  6. package/dist/Attr-BBfczLXs.js +35 -0
  7. package/dist/Attr-BJEwiBrV.js +347 -0
  8. package/dist/Attr-BSvQn17t.js +411 -0
  9. package/dist/Attr-BUi4qTa1.js +257 -0
  10. package/dist/Attr-BYTYcvxt.js +435 -0
  11. package/dist/Attr-Bd_KJyxw.js +144 -0
  12. package/dist/Attr-BlEZH7i5.js +206 -0
  13. package/dist/Attr-BzqtLYFT.js +83 -0
  14. package/dist/Attr-C-1cDzAO.js +444 -0
  15. package/dist/Attr-CGmxDUiy.js +287 -0
  16. package/dist/Attr-CMLRxsB2.js +58 -0
  17. package/dist/Attr-CdlKmBzx.js +440 -0
  18. package/dist/Attr-Ch7a_SzC.js +284 -0
  19. package/dist/Attr-CsGMFQbV.js +429 -0
  20. package/dist/Attr-CwBX8Ixx.js +469 -0
  21. package/dist/Attr-CxqxzwQc.js +83 -0
  22. package/dist/Attr-D3B0BZze.js +308 -0
  23. package/dist/Attr-DC81_k2o.js +419 -0
  24. package/dist/Attr-DCo4QQ6l.js +300 -0
  25. package/dist/Attr-DG-ZsTFh.js +284 -0
  26. package/dist/Attr-DTQie-tN.js +317 -0
  27. package/dist/Attr-DU8CYIuB.js +143 -0
  28. package/dist/Attr-DXBKgc-D.js +240 -0
  29. package/dist/Attr-DZjrJBsB.js +133 -0
  30. package/dist/Attr-DeYdKMTp.js +212 -0
  31. package/dist/Attr-DqZehffz.js +390 -0
  32. package/dist/Attr-DyPnTU_-.js +192 -0
  33. package/dist/Attr-Puy692v9.js +35 -0
  34. package/dist/Attr-QInC_B1l.js +220 -0
  35. package/dist/Attr-SERejxJB.js +352 -0
  36. package/dist/Attr-fHaif05A.js +336 -0
  37. package/dist/Attr-fXg38IuK.js +350 -0
  38. package/dist/Attr-zq-mrp3n.js +230 -0
  39. package/dist/CommonDialog-QF1aBScV.js +88 -0
  40. package/dist/Data-3Z8HAwsQ.js +114 -0
  41. package/dist/Data-5SkWiZJq.js +61 -0
  42. package/dist/Data-8qir1zkg.js +132 -0
  43. package/dist/Data-B-1t1lrw.js +33 -0
  44. package/dist/Data-B16GKLdS.js +28 -0
  45. package/dist/Data-B1NLEGCo.js +28 -0
  46. package/dist/Data-BHnbikUM.js +61 -0
  47. package/dist/Data-BIX1G8En.js +28 -0
  48. package/dist/Data-BIf_LVvT.js +28 -0
  49. package/dist/Data-BK0YuSm6.js +274 -0
  50. package/dist/Data-BSYecM6e.js +55 -0
  51. package/dist/Data-BieQQuAE.js +61 -0
  52. package/dist/Data-BlkRJax1.js +122 -0
  53. package/dist/Data-ByFhMXr6.js +28 -0
  54. package/dist/Data-C-hEawMb.js +61 -0
  55. package/dist/Data-C81gX-qD.js +132 -0
  56. package/dist/Data-CI4BvrsJ.js +160 -0
  57. package/dist/Data-CK4izlXC.js +28 -0
  58. package/dist/Data-CKp_qC9x.js +76 -0
  59. package/dist/Data-CXPaTnki.js +92 -0
  60. package/dist/Data-D6_XEjHE.js +28 -0
  61. package/dist/Data-DCasQYvr.js +68 -0
  62. package/dist/Data-DFrVaR7Z.js +91 -0
  63. package/dist/Data-DNl6KlmC.js +28 -0
  64. package/dist/Data-DYXfwgwx.js +58 -0
  65. package/dist/Data-Daq2k2Ay.js +91 -0
  66. package/dist/Data-Dm8096ND.js +132 -0
  67. package/dist/Data-Dv9sBHPV.js +20 -0
  68. package/dist/Data-DxzFcXWX.js +73 -0
  69. package/dist/Data-I3pQ4LFc.js +73 -0
  70. package/dist/Data-IsmvG2dc.js +62 -0
  71. package/dist/Data-Mm8YIWYs.js +83 -0
  72. package/dist/Data-Yzqs7Kl-.js +28 -0
  73. package/dist/Data-hM43y-W1.js +272 -0
  74. package/dist/Data-oKzG4eiW.js +61 -0
  75. package/dist/Data-suoeP6V2.js +115 -0
  76. package/dist/Data-wlTKE3sJ.js +61 -0
  77. package/dist/ElementIconDialog-DpPWksjB.js +8699 -0
  78. package/dist/ItemEditorDialog-ndgNCmLn.js +215 -0
  79. package/dist/ShortCutsItemEditorDialog-zbAyBYdn.js +288 -0
  80. package/dist/_plugin-vue_export-helper-Bos-KsiI.js +6535 -0
  81. package/dist/common-D8VQk1vN.js +882 -0
  82. package/dist/constant-CU9c_PNt.js +289 -0
  83. package/dist/hfl-comp-editor.es.js +63 -0
  84. package/dist/hfl-comp-editor.umd.js +73 -0
  85. package/dist/vite.svg +1 -0
  86. package/package.json +45 -0
@@ -0,0 +1,230 @@
1
+ import { _ as y, g as x } from "./_plugin-vue_export-helper-Bos-KsiI.js";
2
+ import { e as S } from "./constant-CU9c_PNt.js";
3
+ import { resolveComponent as d, createElementBlock as c, openBlock as m, createVNode as t, withCtx as a, createTextVNode as n, createBlock as i, createCommentVNode as f, Fragment as C, renderList as w } from "vue";
4
+ const A = {
5
+ __name: "Attr",
6
+ props: ["pageId", "formSize"],
7
+ setup(_, { expose: o }) {
8
+ o();
9
+ const V = _, e = x(V.pageId), s = computed(() => e.curComponent), b = computed(() => s.value.propValue || {}), p = { props: V, editorStore: e, curComponent: s, propValue: b, get useEditorStore() {
10
+ return x;
11
+ }, get elementSizeArr() {
12
+ return S;
13
+ } };
14
+ return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
15
+ }
16
+ };
17
+ function k(_, o, V, e, s, b) {
18
+ const p = d("el-switch"), r = d("el-form-item"), g = d("el-option"), z = d("el-select"), u = d("el-input-number"), U = d("el-form"), v = d("VECommonAttr");
19
+ return m(), c("div", { class: "attr-list" }, [
20
+ t(v, {
21
+ "page-id": e.props.pageId,
22
+ "form-size": e.props.formSize
23
+ }, {
24
+ default: a(() => [
25
+ t(U, {
26
+ size: e.props.formSize,
27
+ "label-width": "100px",
28
+ "label-position": "left",
29
+ style: { padding: "10px" }
30
+ }, {
31
+ default: a(() => [
32
+ t(r, {
33
+ label: "纵向边框",
34
+ title: "是否带有纵向边框"
35
+ }, {
36
+ default: a(() => [
37
+ t(p, {
38
+ modelValue: e.propValue.border,
39
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => e.propValue.border = l)
40
+ }, null, 8, ["modelValue"])
41
+ ]),
42
+ _: 1
43
+ }),
44
+ n(),
45
+ t(r, {
46
+ label: "斑马纹",
47
+ title: "是否为斑马纹 table"
48
+ }, {
49
+ default: a(() => [
50
+ t(p, {
51
+ modelValue: e.propValue.stripe,
52
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => e.propValue.stripe = l)
53
+ }, null, 8, ["modelValue"])
54
+ ]),
55
+ _: 1
56
+ }),
57
+ n(),
58
+ t(r, {
59
+ label: "显示表头",
60
+ title: "是否显示表头"
61
+ }, {
62
+ default: a(() => [
63
+ t(p, {
64
+ modelValue: e.propValue.showHeader,
65
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => e.propValue.showHeader = l)
66
+ }, null, 8, ["modelValue"])
67
+ ]),
68
+ _: 1
69
+ }),
70
+ n(),
71
+ t(r, {
72
+ label: "列自撑开",
73
+ title: "列的宽度是否自撑开"
74
+ }, {
75
+ default: a(() => [
76
+ t(p, {
77
+ modelValue: e.propValue.fit,
78
+ "onUpdate:modelValue": o[3] || (o[3] = (l) => e.propValue.fit = l)
79
+ }, null, 8, ["modelValue"])
80
+ ]),
81
+ _: 1
82
+ }),
83
+ n(),
84
+ t(r, { label: "大小" }, {
85
+ default: a(() => [
86
+ t(z, {
87
+ modelValue: e.propValue.size,
88
+ "onUpdate:modelValue": o[4] || (o[4] = (l) => e.propValue.size = l),
89
+ placeholder: "请选择",
90
+ class: "common-item"
91
+ }, {
92
+ default: a(() => [
93
+ (m(!0), c(C, null, w(e.elementSizeArr, (l) => (m(), i(g, {
94
+ key: l.value,
95
+ label: l.label,
96
+ value: l.value
97
+ }, null, 8, ["label", "value"]))), 128))
98
+ ]),
99
+ _: 1
100
+ }, 8, ["modelValue"])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ n(),
105
+ t(r, { label: "高度" }, {
106
+ default: a(() => [
107
+ t(u, {
108
+ modelValue: e.propValue.height,
109
+ "onUpdate:modelValue": o[5] || (o[5] = (l) => e.propValue.height = l),
110
+ precision: 0,
111
+ min: 0,
112
+ step: 1,
113
+ max: 2e3,
114
+ type: "text",
115
+ class: "common-item"
116
+ }, null, 8, ["modelValue"])
117
+ ]),
118
+ _: 1
119
+ }),
120
+ n(),
121
+ t(r, {
122
+ label: "最大高度",
123
+ title: "table的最大高度"
124
+ }, {
125
+ default: a(() => [
126
+ t(u, {
127
+ modelValue: e.propValue.maxHeight,
128
+ "onUpdate:modelValue": o[6] || (o[6] = (l) => e.propValue.maxHeight = l),
129
+ precision: 0,
130
+ min: 0,
131
+ step: 1,
132
+ max: 2e3,
133
+ type: "text",
134
+ class: "common-item"
135
+ }, null, 8, ["modelValue"])
136
+ ]),
137
+ _: 1
138
+ }),
139
+ n(),
140
+ t(r, {
141
+ label: "索引列",
142
+ title: "是否包含索引列"
143
+ }, {
144
+ default: a(() => [
145
+ t(p, {
146
+ modelValue: e.propValue.hasIndex,
147
+ "onUpdate:modelValue": o[7] || (o[7] = (l) => e.propValue.hasIndex = l)
148
+ }, null, 8, ["modelValue"])
149
+ ]),
150
+ _: 1
151
+ }),
152
+ n(),
153
+ e.propValue.hasIndex ? (m(), i(r, {
154
+ key: 0,
155
+ label: "索引列宽",
156
+ title: "索引列宽"
157
+ }, {
158
+ default: a(() => [
159
+ t(u, {
160
+ modelValue: e.propValue.indexWidth,
161
+ "onUpdate:modelValue": o[8] || (o[8] = (l) => e.propValue.indexWidth = l),
162
+ precision: 0,
163
+ min: 10,
164
+ step: 1,
165
+ max: 2e3,
166
+ type: "text",
167
+ class: "common-item"
168
+ }, null, 8, ["modelValue"])
169
+ ]),
170
+ _: 1
171
+ })) : f("", !0),
172
+ n(),
173
+ t(r, {
174
+ label: "多选",
175
+ title: "是否开启多选"
176
+ }, {
177
+ default: a(() => [
178
+ t(p, {
179
+ modelValue: e.propValue.selection,
180
+ "onUpdate:modelValue": o[9] || (o[9] = (l) => e.propValue.selection = l)
181
+ }, null, 8, ["modelValue"])
182
+ ]),
183
+ _: 1
184
+ }),
185
+ n(),
186
+ e.propValue.selection ? (m(), i(r, {
187
+ key: 1,
188
+ label: "多选列宽",
189
+ title: "多选列宽"
190
+ }, {
191
+ default: a(() => [
192
+ t(u, {
193
+ modelValue: e.propValue.selWidth,
194
+ "onUpdate:modelValue": o[10] || (o[10] = (l) => e.propValue.selWidth = l),
195
+ precision: 0,
196
+ min: 10,
197
+ step: 1,
198
+ max: 2e3,
199
+ type: "text",
200
+ class: "common-item"
201
+ }, null, 8, ["modelValue"])
202
+ ]),
203
+ _: 1
204
+ })) : f("", !0),
205
+ n(),
206
+ e.propValue.selection ? f("", !0) : (m(), i(r, {
207
+ key: 2,
208
+ label: "高亮当前行",
209
+ title: "是否要高亮当前行"
210
+ }, {
211
+ default: a(() => [
212
+ t(p, {
213
+ modelValue: e.propValue.highlightCurrentRow,
214
+ "onUpdate:modelValue": o[11] || (o[11] = (l) => e.propValue.highlightCurrentRow = l)
215
+ }, null, 8, ["modelValue"])
216
+ ]),
217
+ _: 1
218
+ }))
219
+ ]),
220
+ _: 1
221
+ }, 8, ["size"])
222
+ ]),
223
+ _: 1
224
+ }, 8, ["page-id", "form-size"])
225
+ ]);
226
+ }
227
+ const W = /* @__PURE__ */ y(A, [["render", k], ["__scopeId", "data-v-913f7d9d"], ["__file", "Attr.vue"]]);
228
+ export {
229
+ W as default
230
+ };
@@ -0,0 +1,88 @@
1
+ import { resolveComponent as g, createBlock as b, openBlock as w, withCtx as r, createElementVNode as B, createVNode as v, createTextVNode as m, renderSlot as C, ref as d } from "vue";
2
+ import { b as k } from "./common-D8VQk1vN.js";
3
+ import { _ as h } from "./_plugin-vue_export-helper-Bos-KsiI.js";
4
+ const D = {
5
+ __name: "CommonDialog",
6
+ props: {
7
+ width: {
8
+ type: Number,
9
+ default: 500
10
+ },
11
+ title: {
12
+ type: String,
13
+ default: "对话框"
14
+ },
15
+ modal: {
16
+ type: Boolean,
17
+ default: !0
18
+ }
19
+ },
20
+ emits: ["confirm"],
21
+ setup(c, { expose: l, emit: u }) {
22
+ const e = d("弹框"), n = d(!1), i = c, t = u;
23
+ let o = null;
24
+ const s = computed(() => e.value && k(e.value) ? e.value : i.title), y = () => {
25
+ t("confirm", { callBack: o });
26
+ }, f = () => {
27
+ n.value = !1;
28
+ }, p = (a = {}) => {
29
+ n.value = !0, o = a.callBack, e.value = a.title || "";
30
+ };
31
+ l({
32
+ show: p,
33
+ cancel: f
34
+ });
35
+ const _ = { showTitle: e, openDialog: n, props: i, emit: t, get callBack() {
36
+ return o;
37
+ }, set callBack(a) {
38
+ o = a;
39
+ }, title: s, confirmInner: y, cancel: f, show: p, ref: d, get isNotEmpty() {
40
+ return k;
41
+ } };
42
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
43
+ }
44
+ };
45
+ function N(c, l, u, e, n, i) {
46
+ const t = g("el-button"), o = g("el-dialog");
47
+ return w(), b(o, {
48
+ title: e.title,
49
+ modelValue: e.openDialog,
50
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => e.openDialog = s),
51
+ width: e.props.width,
52
+ "before-close": e.cancel,
53
+ "destroy-on-close": !0,
54
+ modal: e.props.modal,
55
+ "show-close": !1,
56
+ "align-center": !0,
57
+ draggable: ""
58
+ }, {
59
+ default: r(() => [
60
+ C(c.$slots, "dialog-content")
61
+ ]),
62
+ footer: r(() => [
63
+ B("div", { class: "dialog-footer" }, [
64
+ v(t, {
65
+ type: "primary",
66
+ onClick: e.confirmInner
67
+ }, {
68
+ default: r(() => [
69
+ m("确定")
70
+ ]),
71
+ _: 1
72
+ }),
73
+ m(),
74
+ v(t, { onClick: e.cancel }, {
75
+ default: r(() => [
76
+ m("关 闭")
77
+ ]),
78
+ _: 1
79
+ })
80
+ ])
81
+ ]),
82
+ _: 3
83
+ }, 8, ["title", "modelValue", "width", "modal"]);
84
+ }
85
+ const E = /* @__PURE__ */ h(D, [["render", N], ["__file", "CommonDialog.vue"]]);
86
+ export {
87
+ E as C
88
+ };
@@ -0,0 +1,114 @@
1
+ import { _ as C, g as f } from "./_plugin-vue_export-helper-Bos-KsiI.js";
2
+ import { g, t as S } from "./common-D8VQk1vN.js";
3
+ import { resolveComponent as d, createElementBlock as D, openBlock as _, createVNode as a, withCtx as r, createTextVNode as p, createBlock as b, createCommentVNode as x } from "vue";
4
+ const v = {
5
+ __name: "Data",
6
+ props: ["pageId", "formSize"],
7
+ setup(V, { expose: t }) {
8
+ t();
9
+ const u = V, e = f(u.pageId), s = computed(() => e.curComponent), m = computed(() => s.value.propValue || {}), i = computed({
10
+ get: () => {
11
+ let n = m.value.headerData || [];
12
+ return S(n);
13
+ },
14
+ set: (n) => {
15
+ m.value.headerData = g(n, []);
16
+ }
17
+ }), l = { props: u, editorStore: e, curComponent: s, propValue: m, headerData: i, get useEditorStore() {
18
+ return f;
19
+ }, get getJsonObject() {
20
+ return g;
21
+ }, get toJsonStr() {
22
+ return S;
23
+ } };
24
+ return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
25
+ }
26
+ };
27
+ function h(V, t, u, e, s, m) {
28
+ const i = d("el-switch"), l = d("el-form-item"), n = d("OmitInput"), c = d("el-input"), y = d("el-form");
29
+ return _(), D("div", { class: "data-list" }, [
30
+ a(y, {
31
+ size: e.props.formSize,
32
+ "label-width": "100px",
33
+ "label-position": "left",
34
+ style: { padding: "10px" }
35
+ }, {
36
+ default: r(() => [
37
+ a(l, { label: "静态表头" }, {
38
+ default: r(() => [
39
+ a(i, {
40
+ modelValue: e.propValue.isStaticHeader,
41
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.propValue.isStaticHeader = o)
42
+ }, null, 8, ["modelValue"])
43
+ ]),
44
+ _: 1
45
+ }),
46
+ p(),
47
+ e.propValue.isStaticHeader ? (_(), b(l, {
48
+ key: 0,
49
+ label: "表头数据"
50
+ }, {
51
+ default: r(() => [
52
+ a(n, {
53
+ modelValue: e.headerData,
54
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.headerData = o),
55
+ dialogTitle: "表头编辑(json格式数组字符串)",
56
+ class: "common-item"
57
+ }, null, 8, ["modelValue"])
58
+ ]),
59
+ _: 1
60
+ })) : x("", !0),
61
+ p(),
62
+ e.propValue.isStaticHeader ? x("", !0) : (_(), b(l, {
63
+ key: 1,
64
+ label: "取-表头数据"
65
+ }, {
66
+ default: r(() => [
67
+ a(c, {
68
+ modelValue: e.propValue.headerDataFCK,
69
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => e.propValue.headerDataFCK = o),
70
+ type: "text",
71
+ class: "common-item"
72
+ }, null, 8, ["modelValue"])
73
+ ]),
74
+ _: 1
75
+ })),
76
+ p(),
77
+ a(l, {
78
+ label: "取-表格数据",
79
+ title: "从缓存地址取值"
80
+ }, {
81
+ default: r(() => [
82
+ a(c, {
83
+ modelValue: e.propValue.fromCacheKey,
84
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => e.propValue.fromCacheKey = o),
85
+ type: "text",
86
+ class: "common-item"
87
+ }, null, 8, ["modelValue"])
88
+ ]),
89
+ _: 1
90
+ }),
91
+ p(),
92
+ a(l, {
93
+ label: "存-表格数据",
94
+ title: "将值存入缓存地址"
95
+ }, {
96
+ default: r(() => [
97
+ a(c, {
98
+ modelValue: e.propValue.toCacheKey,
99
+ "onUpdate:modelValue": t[4] || (t[4] = (o) => e.propValue.toCacheKey = o),
100
+ type: "text",
101
+ class: "common-item"
102
+ }, null, 8, ["modelValue"])
103
+ ]),
104
+ _: 1
105
+ })
106
+ ]),
107
+ _: 1
108
+ }, 8, ["size"])
109
+ ]);
110
+ }
111
+ const O = /* @__PURE__ */ C(v, [["render", h], ["__scopeId", "data-v-92c77a2f"], ["__file", "Data.vue"]]);
112
+ export {
113
+ O as default
114
+ };
@@ -0,0 +1,61 @@
1
+ import { _, g as d } from "./_plugin-vue_export-helper-Bos-KsiI.js";
2
+ import { resolveComponent as p, createElementBlock as f, openBlock as V, createVNode as l, withCtx as m, createTextVNode as x } from "vue";
3
+ const y = {
4
+ __name: "Data",
5
+ props: ["pageId", "formSize"],
6
+ setup(s, { expose: o }) {
7
+ o();
8
+ const r = s, e = d(r.pageId), a = computed(() => e.curComponent), u = computed(() => a.value.propValue || {}), t = { props: r, editorStore: e, curComponent: a, propValue: u, get useEditorStore() {
9
+ return d;
10
+ } };
11
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
12
+ }
13
+ };
14
+ function C(s, o, r, e, a, u) {
15
+ const t = p("el-input"), c = p("el-form-item"), i = p("el-form");
16
+ return V(), f("div", { class: "data-list" }, [
17
+ l(i, {
18
+ size: e.props.formSize,
19
+ "label-width": "100px",
20
+ "label-position": "left",
21
+ style: { padding: "10px" }
22
+ }, {
23
+ default: m(() => [
24
+ l(c, {
25
+ label: "取值缓存",
26
+ title: "从缓存地址取值"
27
+ }, {
28
+ default: m(() => [
29
+ l(t, {
30
+ modelValue: e.propValue.fromCacheKey,
31
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => e.propValue.fromCacheKey = n),
32
+ type: "text",
33
+ class: "common-item"
34
+ }, null, 8, ["modelValue"])
35
+ ]),
36
+ _: 1
37
+ }),
38
+ x(),
39
+ l(c, {
40
+ label: "存值缓存",
41
+ title: "将值存入缓存地址"
42
+ }, {
43
+ default: m(() => [
44
+ l(t, {
45
+ modelValue: e.propValue.toCacheKey,
46
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => e.propValue.toCacheKey = n),
47
+ type: "text",
48
+ class: "common-item"
49
+ }, null, 8, ["modelValue"])
50
+ ]),
51
+ _: 1
52
+ })
53
+ ]),
54
+ _: 1
55
+ }, 8, ["size"])
56
+ ]);
57
+ }
58
+ const v = /* @__PURE__ */ _(y, [["render", C], ["__scopeId", "data-v-b1d35690"], ["__file", "Data.vue"]]);
59
+ export {
60
+ v as default
61
+ };
@@ -0,0 +1,132 @@
1
+ import { _ as x, g as V } from "./_plugin-vue_export-helper-Bos-KsiI.js";
2
+ import { I as C } from "./ItemEditorDialog-ndgNCmLn.js";
3
+ import { resolveComponent as p, createElementBlock as v, openBlock as f, createVNode as o, createTextVNode as r, withCtx as a, createBlock as y, createCommentVNode as D } from "vue";
4
+ const S = {
5
+ __name: "Data",
6
+ props: ["pageId", "formSize"],
7
+ setup(_, { expose: t }) {
8
+ t();
9
+ const c = _, e = V(c.pageId), s = computed(() => e.curComponent), u = computed(() => s.value.propValue || {}), i = ref(null), d = { props: c, editorStore: e, curComponent: s, propValue: u, itemDataRef: i, setStaticData: () => {
10
+ i.value?.show({
11
+ staticData: u.value.items || [],
12
+ callBack: function(m) {
13
+ u.value.items = m || [];
14
+ }
15
+ });
16
+ }, get useEditorStore() {
17
+ return V;
18
+ }, ItemEditorDialog: C };
19
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
20
+ }
21
+ };
22
+ function g(_, t, c, e, s, u) {
23
+ const i = p("el-switch"), n = p("el-form-item"), d = p("el-button"), m = p("el-input"), b = p("el-form");
24
+ return f(), v("div", { class: "data-list" }, [
25
+ o(b, {
26
+ size: e.props.formSize,
27
+ "label-width": "100px",
28
+ "label-position": "left",
29
+ style: { padding: "10px" }
30
+ }, {
31
+ default: a(() => [
32
+ o(n, { label: "静态数源" }, {
33
+ default: a(() => [
34
+ o(i, {
35
+ modelValue: e.propValue.staticData,
36
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => e.propValue.staticData = l)
37
+ }, null, 8, ["modelValue"])
38
+ ]),
39
+ _: 1
40
+ }),
41
+ r(),
42
+ e.propValue.staticData ? (f(), y(n, {
43
+ key: 0,
44
+ label: "数据"
45
+ }, {
46
+ default: a(() => [
47
+ o(d, {
48
+ type: "primary",
49
+ icon: "edit",
50
+ class: "common-item",
51
+ onClick: e.setStaticData
52
+ }, {
53
+ default: a(() => [
54
+ r("点击设置")
55
+ ]),
56
+ _: 1
57
+ })
58
+ ]),
59
+ _: 1
60
+ })) : D("", !0),
61
+ r(),
62
+ e.propValue.staticData ? D("", !0) : (f(), y(n, {
63
+ key: 1,
64
+ label: "数源缓存",
65
+ title: "数据源的缓存地址"
66
+ }, {
67
+ default: a(() => [
68
+ o(m, {
69
+ modelValue: e.propValue.dsCacheKey,
70
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => e.propValue.dsCacheKey = l),
71
+ type: "text",
72
+ class: "common-item"
73
+ }, null, 8, ["modelValue"])
74
+ ]),
75
+ _: 1
76
+ })),
77
+ r(),
78
+ o(n, { label: "默认项" }, {
79
+ default: a(() => [
80
+ o(m, {
81
+ modelValue: e.propValue.defaultValue,
82
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => e.propValue.defaultValue = l),
83
+ type: "text",
84
+ class: "common-item"
85
+ }, null, 8, ["modelValue"])
86
+ ]),
87
+ _: 1
88
+ }),
89
+ r(),
90
+ o(n, {
91
+ label: "取值缓存",
92
+ title: "从缓存地址取值"
93
+ }, {
94
+ default: a(() => [
95
+ o(m, {
96
+ modelValue: e.propValue.fromCacheKey,
97
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => e.propValue.fromCacheKey = l),
98
+ type: "text",
99
+ class: "common-item"
100
+ }, null, 8, ["modelValue"])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ r(),
105
+ o(n, {
106
+ label: "存值缓存",
107
+ title: "将值存入缓存地址"
108
+ }, {
109
+ default: a(() => [
110
+ o(m, {
111
+ modelValue: e.propValue.toCacheKey,
112
+ "onUpdate:modelValue": t[4] || (t[4] = (l) => e.propValue.toCacheKey = l),
113
+ type: "text",
114
+ class: "common-item"
115
+ }, null, 8, ["modelValue"])
116
+ ]),
117
+ _: 1
118
+ })
119
+ ]),
120
+ _: 1
121
+ }, 8, ["size"]),
122
+ r(),
123
+ o(e.ItemEditorDialog, {
124
+ ref: "itemDataRef",
125
+ title: "选项编辑"
126
+ }, null, 512)
127
+ ]);
128
+ }
129
+ const w = /* @__PURE__ */ x(S, [["render", g], ["__scopeId", "data-v-b0d8062e"], ["__file", "Data.vue"]]);
130
+ export {
131
+ w as default
132
+ };
@@ -0,0 +1,33 @@
1
+ import { _ as m, g as l } from "./_plugin-vue_export-helper-Bos-KsiI.js";
2
+ import { resolveComponent as u, createElementBlock as d, openBlock as i, createVNode as c, withCtx as f } from "vue";
3
+ const x = {
4
+ __name: "Data",
5
+ props: ["pageId", "formSize"],
6
+ setup(a, { expose: t }) {
7
+ t();
8
+ const r = a, e = l(r.pageId), n = computed(() => e.curComponent), p = computed(() => n.value.propValue || {}), o = { props: r, editorStore: e, curComponent: n, propValue: p, get useEditorStore() {
9
+ return l;
10
+ } };
11
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
12
+ }
13
+ };
14
+ function V(a, t, r, e, n, p) {
15
+ const o = u("el-input"), s = u("el-form-item");
16
+ return i(), d("div", { class: "data-list" }, [
17
+ c(s, { label: "按钮文字" }, {
18
+ default: f(() => [
19
+ c(o, {
20
+ modelValue: e.propValue.contextText,
21
+ "onUpdate:modelValue": t[0] || (t[0] = (_) => e.propValue.contextText = _),
22
+ type: "text",
23
+ class: "common-item"
24
+ }, null, 8, ["modelValue"])
25
+ ]),
26
+ _: 1
27
+ })
28
+ ]);
29
+ }
30
+ const S = /* @__PURE__ */ m(x, [["render", V], ["__scopeId", "data-v-896da8dd"], ["__file", "Data.vue"]]);
31
+ export {
32
+ S as default
33
+ };
@@ -0,0 +1,28 @@
1
+ import { _ as c, g as s } from "./_plugin-vue_export-helper-Bos-KsiI.js";
2
+ import { resolveComponent as l, createElementBlock as _, openBlock as u, createVNode as i } from "vue";
3
+ const d = {
4
+ __name: "Data",
5
+ props: ["pageId", "formSize"],
6
+ setup(n, { expose: p }) {
7
+ p();
8
+ const o = n, e = s(o.pageId), r = computed(() => e.curComponent), a = computed(() => r.value.propValue || {}), t = { props: o, editorStore: e, curComponent: r, propValue: a, get useEditorStore() {
9
+ return s;
10
+ } };
11
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
12
+ }
13
+ };
14
+ function m(n, p, o, e, r, a) {
15
+ const t = l("el-form");
16
+ return u(), _("div", { class: "data-list" }, [
17
+ i(t, {
18
+ size: e.props.formSize,
19
+ "label-width": "100px",
20
+ "label-position": "left",
21
+ style: { padding: "10px" }
22
+ }, null, 8, ["size"])
23
+ ]);
24
+ }
25
+ const v = /* @__PURE__ */ c(d, [["render", m], ["__scopeId", "data-v-14e74846"], ["__file", "Data.vue"]]);
26
+ export {
27
+ v as default
28
+ };