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.
- package/README.md +5 -0
- package/dist/Attr-6xFWM3Vu.js +148 -0
- package/dist/Attr-7IY8eomx.js +336 -0
- package/dist/Attr-B1lXQOcv.js +201 -0
- package/dist/Attr-BAFtdDJg.js +305 -0
- package/dist/Attr-BBfczLXs.js +35 -0
- package/dist/Attr-BJEwiBrV.js +347 -0
- package/dist/Attr-BSvQn17t.js +411 -0
- package/dist/Attr-BUi4qTa1.js +257 -0
- package/dist/Attr-BYTYcvxt.js +435 -0
- package/dist/Attr-Bd_KJyxw.js +144 -0
- package/dist/Attr-BlEZH7i5.js +206 -0
- package/dist/Attr-BzqtLYFT.js +83 -0
- package/dist/Attr-C-1cDzAO.js +444 -0
- package/dist/Attr-CGmxDUiy.js +287 -0
- package/dist/Attr-CMLRxsB2.js +58 -0
- package/dist/Attr-CdlKmBzx.js +440 -0
- package/dist/Attr-Ch7a_SzC.js +284 -0
- package/dist/Attr-CsGMFQbV.js +429 -0
- package/dist/Attr-CwBX8Ixx.js +469 -0
- package/dist/Attr-CxqxzwQc.js +83 -0
- package/dist/Attr-D3B0BZze.js +308 -0
- package/dist/Attr-DC81_k2o.js +419 -0
- package/dist/Attr-DCo4QQ6l.js +300 -0
- package/dist/Attr-DG-ZsTFh.js +284 -0
- package/dist/Attr-DTQie-tN.js +317 -0
- package/dist/Attr-DU8CYIuB.js +143 -0
- package/dist/Attr-DXBKgc-D.js +240 -0
- package/dist/Attr-DZjrJBsB.js +133 -0
- package/dist/Attr-DeYdKMTp.js +212 -0
- package/dist/Attr-DqZehffz.js +390 -0
- package/dist/Attr-DyPnTU_-.js +192 -0
- package/dist/Attr-Puy692v9.js +35 -0
- package/dist/Attr-QInC_B1l.js +220 -0
- package/dist/Attr-SERejxJB.js +352 -0
- package/dist/Attr-fHaif05A.js +336 -0
- package/dist/Attr-fXg38IuK.js +350 -0
- package/dist/Attr-zq-mrp3n.js +230 -0
- package/dist/CommonDialog-QF1aBScV.js +88 -0
- package/dist/Data-3Z8HAwsQ.js +114 -0
- package/dist/Data-5SkWiZJq.js +61 -0
- package/dist/Data-8qir1zkg.js +132 -0
- package/dist/Data-B-1t1lrw.js +33 -0
- package/dist/Data-B16GKLdS.js +28 -0
- package/dist/Data-B1NLEGCo.js +28 -0
- package/dist/Data-BHnbikUM.js +61 -0
- package/dist/Data-BIX1G8En.js +28 -0
- package/dist/Data-BIf_LVvT.js +28 -0
- package/dist/Data-BK0YuSm6.js +274 -0
- package/dist/Data-BSYecM6e.js +55 -0
- package/dist/Data-BieQQuAE.js +61 -0
- package/dist/Data-BlkRJax1.js +122 -0
- package/dist/Data-ByFhMXr6.js +28 -0
- package/dist/Data-C-hEawMb.js +61 -0
- package/dist/Data-C81gX-qD.js +132 -0
- package/dist/Data-CI4BvrsJ.js +160 -0
- package/dist/Data-CK4izlXC.js +28 -0
- package/dist/Data-CKp_qC9x.js +76 -0
- package/dist/Data-CXPaTnki.js +92 -0
- package/dist/Data-D6_XEjHE.js +28 -0
- package/dist/Data-DCasQYvr.js +68 -0
- package/dist/Data-DFrVaR7Z.js +91 -0
- package/dist/Data-DNl6KlmC.js +28 -0
- package/dist/Data-DYXfwgwx.js +58 -0
- package/dist/Data-Daq2k2Ay.js +91 -0
- package/dist/Data-Dm8096ND.js +132 -0
- package/dist/Data-Dv9sBHPV.js +20 -0
- package/dist/Data-DxzFcXWX.js +73 -0
- package/dist/Data-I3pQ4LFc.js +73 -0
- package/dist/Data-IsmvG2dc.js +62 -0
- package/dist/Data-Mm8YIWYs.js +83 -0
- package/dist/Data-Yzqs7Kl-.js +28 -0
- package/dist/Data-hM43y-W1.js +272 -0
- package/dist/Data-oKzG4eiW.js +61 -0
- package/dist/Data-suoeP6V2.js +115 -0
- package/dist/Data-wlTKE3sJ.js +61 -0
- package/dist/ElementIconDialog-DpPWksjB.js +8699 -0
- package/dist/ItemEditorDialog-ndgNCmLn.js +215 -0
- package/dist/ShortCutsItemEditorDialog-zbAyBYdn.js +288 -0
- package/dist/_plugin-vue_export-helper-Bos-KsiI.js +6535 -0
- package/dist/common-D8VQk1vN.js +882 -0
- package/dist/constant-CU9c_PNt.js +289 -0
- package/dist/hfl-comp-editor.es.js +63 -0
- package/dist/hfl-comp-editor.umd.js +73 -0
- package/dist/vite.svg +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { _ as z, g as A } from "./_plugin-vue_export-helper-Bos-KsiI.js";
|
|
2
|
+
import { h as S, f as w, p as W, b as F } from "./constant-CU9c_PNt.js";
|
|
3
|
+
import { resolveComponent as m, createElementBlock as c, openBlock as p, createVNode as n, withCtx as r, createTextVNode as a, createBlock as u, createCommentVNode as i, Fragment as g, renderList as y } from "vue";
|
|
4
|
+
const O = {
|
|
5
|
+
__name: "Attr",
|
|
6
|
+
props: ["pageId", "formSize"],
|
|
7
|
+
setup(k, { expose: l }) {
|
|
8
|
+
l();
|
|
9
|
+
const f = k, e = A(f.pageId), s = computed(() => e.curComponent), x = computed(() => s.value.propValue || {}), V = { props: f, editorStore: e, curComponent: s, propValue: x, get useEditorStore() {
|
|
10
|
+
return A;
|
|
11
|
+
}, get fontWeightArr() {
|
|
12
|
+
return F;
|
|
13
|
+
}, get predefine() {
|
|
14
|
+
return W;
|
|
15
|
+
}, get fontFamilyArr() {
|
|
16
|
+
return w;
|
|
17
|
+
}, get horizontalAlignArr() {
|
|
18
|
+
return S;
|
|
19
|
+
} };
|
|
20
|
+
return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function h(k, l, f, e, s, x) {
|
|
24
|
+
const V = m("el-input"), t = m("el-form-item"), d = m("el-input-number"), v = m("el-switch"), C = m("el-color-picker"), _ = m("el-option"), b = m("el-select"), U = m("el-form"), B = m("VECommonAttr");
|
|
25
|
+
return p(), c("div", { class: "attr-list" }, [
|
|
26
|
+
n(B, {
|
|
27
|
+
"page-id": e.props.pageId
|
|
28
|
+
}, {
|
|
29
|
+
default: r(() => [
|
|
30
|
+
n(U, {
|
|
31
|
+
size: e.props.formSize,
|
|
32
|
+
"label-width": "100px",
|
|
33
|
+
"label-position": "left",
|
|
34
|
+
style: { padding: "10px" }
|
|
35
|
+
}, {
|
|
36
|
+
default: r(() => [
|
|
37
|
+
n(t, { label: "内容" }, {
|
|
38
|
+
default: r(() => [
|
|
39
|
+
n(V, {
|
|
40
|
+
modelValue: e.curComponent.propValue.text,
|
|
41
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => e.curComponent.propValue.text = o),
|
|
42
|
+
type: "text",
|
|
43
|
+
class: "common-item"
|
|
44
|
+
}, null, 8, ["modelValue"])
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}),
|
|
48
|
+
a(),
|
|
49
|
+
n(t, { label: "横向位移字符" }, {
|
|
50
|
+
default: r(() => [
|
|
51
|
+
n(V, {
|
|
52
|
+
modelValue: e.curComponent.propValue.dx,
|
|
53
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => e.curComponent.propValue.dx = o),
|
|
54
|
+
type: "text",
|
|
55
|
+
class: "common-item"
|
|
56
|
+
}, null, 8, ["modelValue"])
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}),
|
|
60
|
+
a(),
|
|
61
|
+
n(t, { label: "x方向偏移量" }, {
|
|
62
|
+
default: r(() => [
|
|
63
|
+
n(d, {
|
|
64
|
+
modelValue: e.curComponent.propValue.offsetX,
|
|
65
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => e.curComponent.propValue.offsetX = o),
|
|
66
|
+
precision: 0,
|
|
67
|
+
step: 1,
|
|
68
|
+
min: 0,
|
|
69
|
+
type: "text",
|
|
70
|
+
class: "common-item"
|
|
71
|
+
}, null, 8, ["modelValue"])
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
a(),
|
|
76
|
+
n(t, { label: "边框背景" }, {
|
|
77
|
+
default: r(() => [
|
|
78
|
+
n(v, {
|
|
79
|
+
modelValue: e.curComponent.propValue.hasBackground,
|
|
80
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => e.curComponent.propValue.hasBackground = o)
|
|
81
|
+
}, null, 8, ["modelValue"])
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}),
|
|
85
|
+
a(),
|
|
86
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
87
|
+
key: 0,
|
|
88
|
+
label: "边框宽度"
|
|
89
|
+
}, {
|
|
90
|
+
default: r(() => [
|
|
91
|
+
n(d, {
|
|
92
|
+
modelValue: e.curComponent.propValue.strokeWidth,
|
|
93
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => e.curComponent.propValue.strokeWidth = o),
|
|
94
|
+
precision: 0,
|
|
95
|
+
min: 1,
|
|
96
|
+
max: 10,
|
|
97
|
+
type: "text",
|
|
98
|
+
class: "common-item"
|
|
99
|
+
}, null, 8, ["modelValue"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})) : i("", !0),
|
|
103
|
+
a(),
|
|
104
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
105
|
+
key: 1,
|
|
106
|
+
label: "边框圆角RX"
|
|
107
|
+
}, {
|
|
108
|
+
default: r(() => [
|
|
109
|
+
n(d, {
|
|
110
|
+
modelValue: e.curComponent.propValue.rx,
|
|
111
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => e.curComponent.propValue.rx = o),
|
|
112
|
+
precision: 0,
|
|
113
|
+
min: 0,
|
|
114
|
+
step: 1,
|
|
115
|
+
type: "text",
|
|
116
|
+
class: "common-item"
|
|
117
|
+
}, null, 8, ["modelValue"])
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
})) : i("", !0),
|
|
121
|
+
a(),
|
|
122
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
123
|
+
key: 2,
|
|
124
|
+
label: "边框圆角RY"
|
|
125
|
+
}, {
|
|
126
|
+
default: r(() => [
|
|
127
|
+
n(d, {
|
|
128
|
+
modelValue: e.curComponent.propValue.ry,
|
|
129
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => e.curComponent.propValue.ry = o),
|
|
130
|
+
precision: 0,
|
|
131
|
+
min: 0,
|
|
132
|
+
step: 1,
|
|
133
|
+
type: "text",
|
|
134
|
+
class: "common-item"
|
|
135
|
+
}, null, 8, ["modelValue"])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
})) : i("", !0),
|
|
139
|
+
a(),
|
|
140
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
141
|
+
key: 3,
|
|
142
|
+
label: "边框颜色"
|
|
143
|
+
}, {
|
|
144
|
+
default: r(() => [
|
|
145
|
+
n(C, {
|
|
146
|
+
modelValue: e.curComponent.propValue.strokeColor,
|
|
147
|
+
"onUpdate:modelValue": l[7] || (l[7] = (o) => e.curComponent.propValue.strokeColor = o),
|
|
148
|
+
"show-alpha": "",
|
|
149
|
+
predefine: e.predefine
|
|
150
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})) : i("", !0),
|
|
154
|
+
a(),
|
|
155
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
156
|
+
key: 4,
|
|
157
|
+
label: "笔触透明度"
|
|
158
|
+
}, {
|
|
159
|
+
default: r(() => [
|
|
160
|
+
n(d, {
|
|
161
|
+
modelValue: e.curComponent.propValue.strokeOpacity,
|
|
162
|
+
"onUpdate:modelValue": l[8] || (l[8] = (o) => e.curComponent.propValue.strokeOpacity = o),
|
|
163
|
+
precision: 1,
|
|
164
|
+
min: 0,
|
|
165
|
+
step: 0.1,
|
|
166
|
+
max: 1,
|
|
167
|
+
type: "text",
|
|
168
|
+
class: "common-item"
|
|
169
|
+
}, null, 8, ["modelValue"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
})) : i("", !0),
|
|
173
|
+
a(),
|
|
174
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
175
|
+
key: 5,
|
|
176
|
+
label: "背景颜色"
|
|
177
|
+
}, {
|
|
178
|
+
default: r(() => [
|
|
179
|
+
n(C, {
|
|
180
|
+
modelValue: e.curComponent.propValue.fillColor,
|
|
181
|
+
"onUpdate:modelValue": l[9] || (l[9] = (o) => e.curComponent.propValue.fillColor = o),
|
|
182
|
+
"show-alpha": "",
|
|
183
|
+
predefine: e.predefine
|
|
184
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
})) : i("", !0),
|
|
188
|
+
a(),
|
|
189
|
+
e.curComponent.propValue.hasBackground ? (p(), u(t, {
|
|
190
|
+
key: 6,
|
|
191
|
+
label: "填充透明度"
|
|
192
|
+
}, {
|
|
193
|
+
default: r(() => [
|
|
194
|
+
n(d, {
|
|
195
|
+
modelValue: e.curComponent.propValue.fillOpacity,
|
|
196
|
+
"onUpdate:modelValue": l[10] || (l[10] = (o) => e.curComponent.propValue.fillOpacity = o),
|
|
197
|
+
precision: 1,
|
|
198
|
+
min: 0,
|
|
199
|
+
step: 0.1,
|
|
200
|
+
max: 1,
|
|
201
|
+
type: "text",
|
|
202
|
+
class: "common-item"
|
|
203
|
+
}, null, 8, ["modelValue"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})) : i("", !0),
|
|
207
|
+
a(),
|
|
208
|
+
n(t, { label: "字体颜色" }, {
|
|
209
|
+
default: r(() => [
|
|
210
|
+
n(C, {
|
|
211
|
+
modelValue: e.curComponent.propValue.fontColor,
|
|
212
|
+
"onUpdate:modelValue": l[11] || (l[11] = (o) => e.curComponent.propValue.fontColor = o),
|
|
213
|
+
"show-alpha": "",
|
|
214
|
+
predefine: e.predefine
|
|
215
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}),
|
|
219
|
+
a(),
|
|
220
|
+
n(t, { label: "字体大小" }, {
|
|
221
|
+
default: r(() => [
|
|
222
|
+
n(d, {
|
|
223
|
+
modelValue: e.curComponent.propValue.fontSize,
|
|
224
|
+
"onUpdate:modelValue": l[12] || (l[12] = (o) => e.curComponent.propValue.fontSize = o),
|
|
225
|
+
precision: 0,
|
|
226
|
+
min: 2,
|
|
227
|
+
step: 1,
|
|
228
|
+
type: "text",
|
|
229
|
+
class: "common-item"
|
|
230
|
+
}, null, 8, ["modelValue"])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}),
|
|
234
|
+
a(),
|
|
235
|
+
n(t, { label: "字体粗细" }, {
|
|
236
|
+
default: r(() => [
|
|
237
|
+
n(b, {
|
|
238
|
+
modelValue: e.curComponent.propValue.fontWeight,
|
|
239
|
+
"onUpdate:modelValue": l[13] || (l[13] = (o) => e.curComponent.propValue.fontWeight = o),
|
|
240
|
+
placeholder: "请选择",
|
|
241
|
+
class: "common-item"
|
|
242
|
+
}, {
|
|
243
|
+
default: r(() => [
|
|
244
|
+
(p(!0), c(g, null, y(e.fontWeightArr, (o) => (p(), u(_, {
|
|
245
|
+
key: o.value,
|
|
246
|
+
label: o.label,
|
|
247
|
+
value: o.value
|
|
248
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 8, ["modelValue"])
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
a(),
|
|
256
|
+
n(t, { label: "字体" }, {
|
|
257
|
+
default: r(() => [
|
|
258
|
+
n(b, {
|
|
259
|
+
modelValue: e.curComponent.propValue.fontFamily,
|
|
260
|
+
"onUpdate:modelValue": l[14] || (l[14] = (o) => e.curComponent.propValue.fontFamily = o),
|
|
261
|
+
placeholder: "请选择",
|
|
262
|
+
class: "common-item"
|
|
263
|
+
}, {
|
|
264
|
+
default: r(() => [
|
|
265
|
+
(p(!0), c(g, null, y(e.fontFamilyArr, (o) => (p(), u(_, {
|
|
266
|
+
key: o.value,
|
|
267
|
+
label: o.label,
|
|
268
|
+
value: o.value
|
|
269
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["modelValue"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}),
|
|
276
|
+
a(),
|
|
277
|
+
n(t, { label: "水平对齐" }, {
|
|
278
|
+
default: r(() => [
|
|
279
|
+
n(b, {
|
|
280
|
+
modelValue: e.curComponent.propValue.horizontalAlign,
|
|
281
|
+
"onUpdate:modelValue": l[15] || (l[15] = (o) => e.curComponent.propValue.horizontalAlign = o),
|
|
282
|
+
placeholder: "请选择",
|
|
283
|
+
class: "common-item"
|
|
284
|
+
}, {
|
|
285
|
+
default: r(() => [
|
|
286
|
+
(p(!0), c(g, null, y(e.horizontalAlignArr, (o) => (p(), u(_, {
|
|
287
|
+
key: o.value,
|
|
288
|
+
label: o.label,
|
|
289
|
+
value: o.value
|
|
290
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
}, 8, ["modelValue"])
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
})
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}, 8, ["size"])
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["page-id"])
|
|
303
|
+
]);
|
|
304
|
+
}
|
|
305
|
+
const X = /* @__PURE__ */ z(O, [["render", h], ["__scopeId", "data-v-90bac112"], ["__file", "Attr.vue"]]);
|
|
306
|
+
export {
|
|
307
|
+
X as default
|
|
308
|
+
};
|