hfl-comp-editor 0.0.3 → 0.0.4

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 { useEditorStore as s } from "hflveditor3";
2
- import { resolveComponent as a, createElementBlock as m, openBlock as l, createVNode as c, withCtx as u, computed as _ } from "vue";
2
+ import { resolveComponent as a, createElementBlock as l, openBlock as m, createVNode as c, withCtx as u, computed as _ } from "vue";
3
3
  import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const g = {
5
5
  __name: "Attr",
@@ -14,7 +14,7 @@ const g = {
14
14
  };
15
15
  function x(r, n, t, e, p, o) {
16
16
  const d = a("el-form"), i = a("VECommonAttr");
17
- return l(), m("div", { class: "attr-list" }, [
17
+ return m(), l("div", { class: "attr-list" }, [
18
18
  c(i, {
19
19
  "page-id": e.props.pageId
20
20
  }, {
@@ -1,33 +1,33 @@
1
1
  import { useEditorStore as _ } from "hflveditor3";
2
- import { resolveComponent as l, createElementBlock as V, openBlock as b, createVNode as t, withCtx as n, createTextVNode as g, computed as m } from "vue";
2
+ import { resolveComponent as l, createElementBlock as V, openBlock as g, createVNode as t, withCtx as p, createTextVNode as b, computed as m } from "vue";
3
3
  import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const S = {
5
5
  __name: "Attr",
6
6
  props: ["pageId", "formSize"],
7
7
  setup(d, { expose: o }) {
8
8
  o();
9
- const p = d, e = _(p.pageId), a = m(() => e.curComponent), s = m(() => a.value.propValue || {}), r = { props: p, editorStore: e, curComponent: a, propValue: s, get useEditorStore() {
9
+ const n = d, e = _(n.pageId), a = m(() => e.curComponent), s = m(() => a.value.propValue || {}), r = { props: n, editorStore: e, curComponent: a, propValue: s, get useEditorStore() {
10
10
  return _;
11
11
  }, computed: m };
12
12
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
13
13
  }
14
14
  };
15
- function v(d, o, p, e, a, s) {
15
+ function v(d, o, n, e, a, s) {
16
16
  const r = l("el-switch"), u = l("el-form-item"), c = l("el-form"), f = l("VECommonAttr");
17
- return b(), V("div", { class: "attr-list" }, [
17
+ return g(), V("div", { class: "attr-list" }, [
18
18
  t(f, {
19
19
  "page-id": e.props.pageId
20
20
  }, {
21
- default: n(() => [
21
+ default: p(() => [
22
22
  t(c, {
23
23
  size: e.props.formSize,
24
24
  "label-width": "100",
25
25
  "label-position": "left",
26
26
  style: { padding: "10px" }
27
27
  }, {
28
- default: n(() => [
28
+ default: p(() => [
29
29
  t(u, { label: "水平翻转" }, {
30
- default: n(() => [
30
+ default: p(() => [
31
31
  t(r, {
32
32
  modelValue: e.propValue.flipHorizontal,
33
33
  "onUpdate:modelValue": o[0] || (o[0] = (i) => e.propValue.flipHorizontal = i)
@@ -35,9 +35,9 @@ function v(d, o, p, e, a, s) {
35
35
  ]),
36
36
  _: 1
37
37
  }),
38
- g(),
38
+ b(),
39
39
  t(u, { label: "垂直翻转" }, {
40
- default: n(() => [
40
+ default: p(() => [
41
41
  t(r, {
42
42
  modelValue: e.propValue.flipVertical,
43
43
  "onUpdate:modelValue": o[1] || (o[1] = (i) => e.propValue.flipVertical = i)
@@ -1,5 +1,5 @@
1
1
  import { useEditorStore as s } from "hflveditor3";
2
- import { resolveComponent as c, createElementBlock as l, openBlock as m, createVNode as a, withCtx as u, computed as _ } from "vue";
2
+ import { resolveComponent as c, createElementBlock as i, openBlock as l, createVNode as a, withCtx as u, computed as _ } from "vue";
3
3
  import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const g = {
5
5
  __name: "Attr",
@@ -13,9 +13,9 @@ const g = {
13
13
  }
14
14
  };
15
15
  function x(r, n, t, e, p, o) {
16
- const d = c("el-form"), i = c("VECommonAttr");
17
- return m(), l("div", { class: "attr-list" }, [
18
- a(i, {
16
+ const d = c("el-form"), m = c("VECommonAttr");
17
+ return l(), i("div", { class: "attr-list" }, [
18
+ a(m, {
19
19
  "page-id": e.props.pageId
20
20
  }, {
21
21
  default: u(() => [
@@ -0,0 +1,136 @@
1
+ import { resolveComponent as u, createElementBlock as b, openBlock as v, createVNode as a, withCtx as s, createTextVNode as S, computed as n } from "vue";
2
+ import { useEditorStore as V } from "hflveditor3";
3
+ import { g as i, t as p } from "./common-CUTMyEmo.js";
4
+ import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const w = {
6
+ __name: "Attr",
7
+ props: ["pageId", "formSize"],
8
+ setup(y, { expose: l }) {
9
+ l();
10
+ const c = y, e = V(c.pageId), _ = n(() => e.curComponent), o = n(() => _.value.propValue || {}), m = n({
11
+ get: () => {
12
+ let t = o.value.borderStyle || {};
13
+ return p(t);
14
+ },
15
+ set: (t) => {
16
+ o.value.borderStyle = i(t, {});
17
+ }
18
+ }), d = n({
19
+ get: () => {
20
+ let t = o.value.rowStyle || {};
21
+ return p(t);
22
+ },
23
+ set: (t) => {
24
+ o.value.rowStyle = i(t, {});
25
+ }
26
+ }), f = n({
27
+ get: () => {
28
+ let t = o.value.colStyle || {};
29
+ return p(t);
30
+ },
31
+ set: (t) => {
32
+ o.value.colStyle = i(t, {});
33
+ }
34
+ }), g = n({
35
+ get: () => {
36
+ let t = o.value.diagonalStyle || {};
37
+ return p(t);
38
+ },
39
+ set: (t) => {
40
+ o.value.diagonalStyle = i(t, {});
41
+ }
42
+ }), x = { props: c, editorStore: e, curComponent: _, propValue: o, borderStyle: m, rowStyle: d, colStyle: f, diagonalStyle: g, styleDataExample: {
43
+ flag: !0,
44
+ text: '[{"color":"#F8F8FF","width":1,"dash":""}]'
45
+ }, computed: n, get useEditorStore() {
46
+ return V;
47
+ }, get getJsonObject() {
48
+ return i;
49
+ }, get toJsonStr() {
50
+ return p;
51
+ } };
52
+ return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
53
+ }
54
+ };
55
+ function j(y, l, c, e, _, o) {
56
+ const m = u("VeOmitInput"), d = u("el-form-item"), f = u("el-form"), g = u("VECommonAttr");
57
+ return v(), b("div", { class: "attr-list" }, [
58
+ a(g, {
59
+ "page-id": e.props.pageId,
60
+ "form-size": e.props.formSize
61
+ }, {
62
+ default: s(() => [
63
+ a(f, {
64
+ size: e.props.formSize,
65
+ "label-width": "100px",
66
+ "label-position": "left",
67
+ style: { padding: "10px" }
68
+ }, {
69
+ default: s(() => [
70
+ a(d, { label: "边框样式" }, {
71
+ default: s(() => [
72
+ a(m, {
73
+ modelValue: e.borderStyle,
74
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => e.borderStyle = r),
75
+ dialogTitle: "数据编辑(json格式对象)",
76
+ "max-length": 1e3,
77
+ example: e.styleDataExample,
78
+ class: "common-item"
79
+ }, null, 8, ["modelValue"])
80
+ ]),
81
+ _: 1
82
+ }),
83
+ S(),
84
+ a(d, { label: "行样式" }, {
85
+ default: s(() => [
86
+ a(m, {
87
+ modelValue: e.rowStyle,
88
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => e.rowStyle = r),
89
+ dialogTitle: "数据编辑(json格式对象)",
90
+ "max-length": 1e3,
91
+ example: e.styleDataExample,
92
+ class: "common-item"
93
+ }, null, 8, ["modelValue"])
94
+ ]),
95
+ _: 1
96
+ }),
97
+ S(),
98
+ a(d, { label: "列样式" }, {
99
+ default: s(() => [
100
+ a(m, {
101
+ modelValue: e.colStyle,
102
+ "onUpdate:modelValue": l[2] || (l[2] = (r) => e.colStyle = r),
103
+ dialogTitle: "数据编辑(json格式对象)",
104
+ "max-length": 1e3,
105
+ example: e.styleDataExample,
106
+ class: "common-item"
107
+ }, null, 8, ["modelValue"])
108
+ ]),
109
+ _: 1
110
+ }),
111
+ S(),
112
+ a(d, { label: "对角线样式" }, {
113
+ default: s(() => [
114
+ a(m, {
115
+ modelValue: e.diagonalStyle,
116
+ "onUpdate:modelValue": l[3] || (l[3] = (r) => e.diagonalStyle = r),
117
+ dialogTitle: "数据编辑(json格式对象)",
118
+ "max-length": 1e3,
119
+ example: e.styleDataExample,
120
+ class: "common-item"
121
+ }, null, 8, ["modelValue"])
122
+ ]),
123
+ _: 1
124
+ })
125
+ ]),
126
+ _: 1
127
+ }, 8, ["size"])
128
+ ]),
129
+ _: 1
130
+ }, 8, ["page-id", "form-size"])
131
+ ]);
132
+ }
133
+ const A = /* @__PURE__ */ E(w, [["render", j], ["__scopeId", "data-v-1f7627e4"], ["__file", "Attr.vue"]]);
134
+ export {
135
+ A as default
136
+ };
@@ -0,0 +1,296 @@
1
+ import { useEditorStore as v } from "hflveditor3";
2
+ import { resolveComponent as g, createElementBlock as S, openBlock as U, createVNode as t, withCtx as r, createTextVNode as d, computed as i } from "vue";
3
+ import { g as s, t as p } from "./common-CUTMyEmo.js";
4
+ import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const j = {
6
+ __name: "Data",
7
+ props: ["pageId", "formSize"],
8
+ setup(_, { expose: a }) {
9
+ a();
10
+ const V = _, e = v(V.pageId), x = i(() => e.curComponent), n = i(() => x.value.propValue || {}), c = i({
11
+ get: () => {
12
+ let l = n.value.borders || [];
13
+ return p(l);
14
+ },
15
+ set: (l) => {
16
+ n.value.borders = s(l, []);
17
+ }
18
+ }), m = i({
19
+ get: () => {
20
+ let l = n.value.rowHeights || [];
21
+ return p(l);
22
+ },
23
+ set: (l) => {
24
+ n.value.rowHeights = s(l, []);
25
+ }
26
+ }), D = i({
27
+ get: () => {
28
+ let l = n.value.colWidths || [];
29
+ return p(l);
30
+ },
31
+ set: (l) => {
32
+ n.value.colWidths = s(l, []);
33
+ }
34
+ }), u = i({
35
+ get: () => {
36
+ let l = n.value.rowLine || [];
37
+ return p(l);
38
+ },
39
+ set: (l) => {
40
+ n.value.rowLine = s(l, []);
41
+ }
42
+ }), f = i({
43
+ get: () => {
44
+ let l = n.value.colLine || [];
45
+ return p(l);
46
+ },
47
+ set: (l) => {
48
+ n.value.colLine = s(l, []);
49
+ }
50
+ }), o = i({
51
+ get: () => {
52
+ let l = n.value.mergedCells || [];
53
+ return p(l);
54
+ },
55
+ set: (l) => {
56
+ n.value.mergedCells = s(l, []);
57
+ }
58
+ }), w = i({
59
+ get: () => {
60
+ let l = n.value.diagonalCells || [];
61
+ return p(l);
62
+ },
63
+ set: (l) => {
64
+ n.value.diagonalCells = s(l, []);
65
+ }
66
+ }), E = i({
67
+ get: () => {
68
+ let l = n.value.cellStyle || [];
69
+ return p(l);
70
+ },
71
+ set: (l) => {
72
+ n.value.cellStyle = s(l, []);
73
+ }
74
+ }), b = { props: V, editorStore: e, curComponent: x, propValue: n, borderData: c, rowHeightData: m, colWidthData: D, rowLineData: u, colLineData: f, mergeData: o, diagonalData: w, cellData: E, DataExample: {
75
+ flag: !0,
76
+ text: "[80,100]"
77
+ }, lineDataExample: {
78
+ flag: !0,
79
+ text: '[{"color":"#F8F8FF","width":1,"dash":""}]'
80
+ }, mergeDataExample: {
81
+ flag: !0,
82
+ text: '[{"row":0,"col":0,"colSpan":1,"rowSpan":2}]'
83
+ }, diagonalDataExample: {
84
+ flag: !0,
85
+ text: '[{"row":0,"col":0,"reverse":false,"color":"#F8F8FF","width":1,"dash":""}]'
86
+ }, cellDataExample: {
87
+ flag: !0,
88
+ text: '[{"row":0,"col":0,"color":"#F8F8FF","width":1,"dash":""}]'
89
+ }, get useEditorStore() {
90
+ return v;
91
+ }, computed: i, get getJsonObject() {
92
+ return s;
93
+ }, get toJsonStr() {
94
+ return p;
95
+ } };
96
+ return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
97
+ }
98
+ };
99
+ function L(_, a, V, e, x, n) {
100
+ const c = g("el-input-number"), m = g("el-form-item"), D = g("el-switch"), u = g("VeOmitInput"), f = g("el-form");
101
+ return U(), S("div", { class: "data-list" }, [
102
+ t(f, {
103
+ size: e.props.formSize,
104
+ "label-width": "100px",
105
+ "label-position": "left",
106
+ style: { padding: "10px" }
107
+ }, {
108
+ default: r(() => [
109
+ t(m, { label: "行数" }, {
110
+ default: r(() => [
111
+ t(c, {
112
+ modelValue: e.propValue.rows,
113
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => e.propValue.rows = o),
114
+ min: 1,
115
+ precision: 0,
116
+ class: "common-item"
117
+ }, null, 8, ["modelValue"])
118
+ ]),
119
+ _: 1
120
+ }),
121
+ d(),
122
+ t(m, { label: "列数" }, {
123
+ default: r(() => [
124
+ t(c, {
125
+ modelValue: e.propValue.cols,
126
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => e.propValue.cols = o),
127
+ min: 1,
128
+ precision: 0,
129
+ class: "common-item"
130
+ }, null, 8, ["modelValue"])
131
+ ]),
132
+ _: 1
133
+ }),
134
+ d(),
135
+ t(m, { label: "自动适应" }, {
136
+ default: r(() => [
137
+ t(D, {
138
+ modelValue: e.propValue.autoResize,
139
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => e.propValue.autoResize = o)
140
+ }, null, 8, ["modelValue"])
141
+ ]),
142
+ _: 1
143
+ }),
144
+ d(),
145
+ t(m, { label: "行高" }, {
146
+ default: r(() => [
147
+ t(c, {
148
+ modelValue: e.propValue.cellHeight,
149
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => e.propValue.cellHeight = o),
150
+ min: 1,
151
+ precision: 0,
152
+ class: "common-item"
153
+ }, null, 8, ["modelValue"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ d(),
158
+ t(m, { label: "列宽" }, {
159
+ default: r(() => [
160
+ t(c, {
161
+ modelValue: e.propValue.cellWidth,
162
+ "onUpdate:modelValue": a[4] || (a[4] = (o) => e.propValue.cellWidth = o),
163
+ min: 1,
164
+ precision: 0,
165
+ class: "common-item"
166
+ }, null, 8, ["modelValue"])
167
+ ]),
168
+ _: 1
169
+ }),
170
+ d(),
171
+ t(m, {
172
+ label: "边框数组",
173
+ title: "自定义边框样式"
174
+ }, {
175
+ default: r(() => [
176
+ t(u, {
177
+ modelValue: e.borderData,
178
+ "onUpdate:modelValue": a[5] || (a[5] = (o) => e.borderData = o),
179
+ dialogTitle: "数据编辑(json格式字符数组)",
180
+ "max-length": 1e3,
181
+ example: e.lineDataExample,
182
+ class: "common-item"
183
+ }, null, 8, ["modelValue"])
184
+ ]),
185
+ _: 1
186
+ }),
187
+ d(),
188
+ t(m, { label: "行高数组" }, {
189
+ default: r(() => [
190
+ t(u, {
191
+ modelValue: e.rowHeightData,
192
+ "onUpdate:modelValue": a[6] || (a[6] = (o) => e.rowHeightData = o),
193
+ dialogTitle: "数据编辑(json格式字符数组)",
194
+ "max-length": 1e3,
195
+ example: e.DataExample,
196
+ class: "common-item"
197
+ }, null, 8, ["modelValue"])
198
+ ]),
199
+ _: 1
200
+ }),
201
+ d(),
202
+ t(m, { label: "列宽数组" }, {
203
+ default: r(() => [
204
+ t(u, {
205
+ modelValue: e.colWidthData,
206
+ "onUpdate:modelValue": a[7] || (a[7] = (o) => e.colWidthData = o),
207
+ dialogTitle: "数据编辑(json格式字符数组)",
208
+ "max-length": 1e3,
209
+ example: e.DataExample,
210
+ class: "common-item"
211
+ }, null, 8, ["modelValue"])
212
+ ]),
213
+ _: 1
214
+ }),
215
+ d(),
216
+ t(m, { label: "行线数组" }, {
217
+ default: r(() => [
218
+ t(u, {
219
+ modelValue: e.rowLineData,
220
+ "onUpdate:modelValue": a[8] || (a[8] = (o) => e.rowLineData = o),
221
+ dialogTitle: "数据编辑(json格式字符数组)",
222
+ "max-length": 1e3,
223
+ example: e.lineDataExample,
224
+ class: "common-item"
225
+ }, null, 8, ["modelValue"])
226
+ ]),
227
+ _: 1
228
+ }),
229
+ d(),
230
+ t(m, { label: "列线数组" }, {
231
+ default: r(() => [
232
+ t(u, {
233
+ modelValue: e.colLineData,
234
+ "onUpdate:modelValue": a[9] || (a[9] = (o) => e.colLineData = o),
235
+ dialogTitle: "数据编辑(json格式字符数组)",
236
+ "max-length": 1e3,
237
+ example: e.lineDataExample,
238
+ class: "common-item"
239
+ }, null, 8, ["modelValue"])
240
+ ]),
241
+ _: 1
242
+ }),
243
+ d(),
244
+ t(m, { label: "合并数组" }, {
245
+ default: r(() => [
246
+ t(u, {
247
+ modelValue: e.mergeData,
248
+ "onUpdate:modelValue": a[10] || (a[10] = (o) => e.mergeData = o),
249
+ dialogTitle: "数据编辑(json格式字符数组)",
250
+ "max-length": 1e3,
251
+ example: e.mergeDataExample,
252
+ class: "common-item"
253
+ }, null, 8, ["modelValue"])
254
+ ]),
255
+ _: 1
256
+ }),
257
+ d(),
258
+ t(m, { label: "斜线数组" }, {
259
+ default: r(() => [
260
+ t(u, {
261
+ modelValue: e.diagonalData,
262
+ "onUpdate:modelValue": a[11] || (a[11] = (o) => e.diagonalData = o),
263
+ dialogTitle: "数据编辑(json格式字符数组)",
264
+ "max-length": 1e3,
265
+ example: e.diagonalDataExample,
266
+ class: "common-item"
267
+ }, null, 8, ["modelValue"])
268
+ ]),
269
+ _: 1
270
+ }),
271
+ d(),
272
+ t(m, {
273
+ label: "单元数组",
274
+ title: "设置单元格样式"
275
+ }, {
276
+ default: r(() => [
277
+ t(u, {
278
+ modelValue: e.cellData,
279
+ "onUpdate:modelValue": a[12] || (a[12] = (o) => e.cellData = o),
280
+ dialogTitle: "单元格编辑(json格式字符数组)",
281
+ "max-length": 1e3,
282
+ example: e.cellDataExample,
283
+ class: "common-item"
284
+ }, null, 8, ["modelValue"])
285
+ ]),
286
+ _: 1
287
+ })
288
+ ]),
289
+ _: 1
290
+ }, 8, ["size"])
291
+ ]);
292
+ }
293
+ const J = /* @__PURE__ */ F(j, [["render", L], ["__scopeId", "data-v-9100f14c"], ["__file", "Data.vue"]]);
294
+ export {
295
+ J as default
296
+ };
@@ -55,7 +55,7 @@ function C(s, t, l, e, p, i) {
55
55
  }, 8, ["size"])
56
56
  ]);
57
57
  }
58
- const w = /* @__PURE__ */ D(y, [["render", C], ["__scopeId", "data-v-f14565f9"], ["__file", "Data.vue"]]);
58
+ const z = /* @__PURE__ */ D(y, [["render", C], ["__scopeId", "data-v-f14565f9"], ["__file", "Data.vue"]]);
59
59
  export {
60
- w as default
60
+ z as default
61
61
  };
@@ -6,15 +6,15 @@ const S = {
6
6
  props: ["pageId", "formSize"],
7
7
  setup(m, { expose: o }) {
8
8
  o();
9
- const a = m, e = d(a.pageId), p = c(() => e.curComponent), i = c(() => p.value.propValue || {}), l = { props: a, editorStore: e, curComponent: p, propValue: i, openPicUrl: () => {
9
+ const a = m, e = d(a.pageId), p = c(() => e.curComponent), s = c(() => p.value.propValue || {}), l = { props: a, editorStore: e, curComponent: p, propValue: s, openPicUrl: () => {
10
10
  }, get useEditorStore() {
11
11
  return d;
12
12
  }, computed: c };
13
13
  return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
14
14
  }
15
15
  };
16
- function v(m, o, a, e, p, i) {
17
- const s = r("el-button"), l = r("el-input"), _ = r("el-form-item"), f = r("el-form");
16
+ function v(m, o, a, e, p, s) {
17
+ const i = r("el-button"), l = r("el-input"), _ = r("el-form-item"), f = r("el-form");
18
18
  return x(), V("div", { class: "data-list" }, [
19
19
  t(f, {
20
20
  size: e.props.formSize,
@@ -33,7 +33,7 @@ function v(m, o, a, e, p, i) {
33
33
  clearable: ""
34
34
  }, {
35
35
  append: n(() => [
36
- t(s, {
36
+ t(i, {
37
37
  icon: "search",
38
38
  onClick: e.openPicUrl
39
39
  })
@@ -63,7 +63,7 @@ function v(m, o, a, e, p, i) {
63
63
  }, 8, ["size"])
64
64
  ]);
65
65
  }
66
- const z = /* @__PURE__ */ C(S, [["render", v], ["__scopeId", "data-v-26335a8a"], ["__file", "Data.vue"]]);
66
+ const y = /* @__PURE__ */ C(S, [["render", v], ["__scopeId", "data-v-26335a8a"], ["__file", "Data.vue"]]);
67
67
  export {
68
- z as default
68
+ y as default
69
69
  };