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,411 @@
|
|
|
1
|
+
import { p as E, b as F, c as N, f as z } from "./constant-CU9c_PNt.js";
|
|
2
|
+
import { _ as P, g as w } from "./_plugin-vue_export-helper-Bos-KsiI.js";
|
|
3
|
+
import { E as T } from "./ElementIconDialog-DpPWksjB.js";
|
|
4
|
+
import { b as B } from "./common-D8VQk1vN.js";
|
|
5
|
+
import { resolveComponent as d, createElementBlock as x, openBlock as n, Fragment as _, createElementVNode as W, createTextVNode as u, createVNode as a, withCtx as t, createBlock as p, createCommentVNode as m, renderList as S, resolveDynamicComponent as U } from "vue";
|
|
6
|
+
const D = {
|
|
7
|
+
__name: "Attr",
|
|
8
|
+
props: ["pageId", "formSize"],
|
|
9
|
+
setup(A, { expose: o }) {
|
|
10
|
+
o();
|
|
11
|
+
const g = A, e = w(g.pageId), k = computed(() => e.curComponent), i = computed(() => k.value.propValue || {}), c = computed(() => i.value.type !== "textarea"), s = [{
|
|
12
|
+
value: "text",
|
|
13
|
+
label: "文本"
|
|
14
|
+
}, {
|
|
15
|
+
value: "textarea",
|
|
16
|
+
label: "文本域"
|
|
17
|
+
}, {
|
|
18
|
+
value: "password",
|
|
19
|
+
label: "密码"
|
|
20
|
+
}], r = ref(null), f = { props: g, editorStore: e, curComponent: k, propValue: i, isNotTextArea: c, typeArr: s, elementIconRef: r, setPreIcon: () => {
|
|
21
|
+
r.value.show({
|
|
22
|
+
callBack: function(b) {
|
|
23
|
+
i.value.prefixIcon = b;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}, reSetPreIcon: () => {
|
|
27
|
+
i.value.prefixIcon = "";
|
|
28
|
+
}, setSuffixIcon: () => {
|
|
29
|
+
r.value.show({
|
|
30
|
+
callBack: function(b) {
|
|
31
|
+
i.value.suffixIcon = b;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}, reSetSuffixIcon: () => {
|
|
35
|
+
i.value.suffixIcon = "";
|
|
36
|
+
}, get fontFamilyArr() {
|
|
37
|
+
return z;
|
|
38
|
+
}, get fontStyleArr() {
|
|
39
|
+
return N;
|
|
40
|
+
}, get fontWeightArr() {
|
|
41
|
+
return F;
|
|
42
|
+
}, get predefine() {
|
|
43
|
+
return E;
|
|
44
|
+
}, get useEditorStore() {
|
|
45
|
+
return w;
|
|
46
|
+
}, ElementIconDialog: T, get isNotEmpty() {
|
|
47
|
+
return B;
|
|
48
|
+
} };
|
|
49
|
+
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function L(A, o, g, e, k, i) {
|
|
53
|
+
const c = d("el-option"), s = d("el-select"), r = d("el-form-item"), V = d("el-switch"), v = d("el-input"), I = d("el-icon"), y = d("el-button"), f = d("el-input-number"), b = d("el-form"), C = d("VECommonAttr");
|
|
54
|
+
return n(), x(_, null, [
|
|
55
|
+
W("div", { class: "attr-list" }, [
|
|
56
|
+
a(C, {
|
|
57
|
+
"page-id": e.props.pageId,
|
|
58
|
+
"form-size": e.props.formSize
|
|
59
|
+
}, {
|
|
60
|
+
default: t(() => [
|
|
61
|
+
a(b, {
|
|
62
|
+
size: e.props.formSize,
|
|
63
|
+
"label-width": "100px",
|
|
64
|
+
"label-position": "left",
|
|
65
|
+
style: { padding: "10px" }
|
|
66
|
+
}, {
|
|
67
|
+
default: t(() => [
|
|
68
|
+
a(r, {
|
|
69
|
+
label: "类型",
|
|
70
|
+
title: "设置按钮颜色后,后者优先"
|
|
71
|
+
}, {
|
|
72
|
+
default: t(() => [
|
|
73
|
+
a(s, {
|
|
74
|
+
modelValue: e.propValue.type,
|
|
75
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.propValue.type = l),
|
|
76
|
+
placeholder: "请选择",
|
|
77
|
+
class: "common-item"
|
|
78
|
+
}, {
|
|
79
|
+
default: t(() => [
|
|
80
|
+
(n(), x(_, null, S(e.typeArr, (l) => a(c, {
|
|
81
|
+
key: l.value,
|
|
82
|
+
label: l.label,
|
|
83
|
+
value: l.value
|
|
84
|
+
}, null, 8, ["label", "value"])), 64))
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["modelValue"])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}),
|
|
91
|
+
u(),
|
|
92
|
+
a(r, { label: "禁用" }, {
|
|
93
|
+
default: t(() => [
|
|
94
|
+
a(V, {
|
|
95
|
+
modelValue: e.propValue.disabled,
|
|
96
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.propValue.disabled = l)
|
|
97
|
+
}, null, 8, ["modelValue"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}),
|
|
101
|
+
u(),
|
|
102
|
+
a(r, { label: "占位文本" }, {
|
|
103
|
+
default: t(() => [
|
|
104
|
+
a(v, {
|
|
105
|
+
modelValue: e.propValue.placeholder,
|
|
106
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.propValue.placeholder = l),
|
|
107
|
+
type: "text",
|
|
108
|
+
class: "common-item"
|
|
109
|
+
}, null, 8, ["modelValue"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}),
|
|
113
|
+
u(),
|
|
114
|
+
e.propValue.type != "textarea" ? (n(), p(r, {
|
|
115
|
+
key: 0,
|
|
116
|
+
label: "显示清除按钮"
|
|
117
|
+
}, {
|
|
118
|
+
default: t(() => [
|
|
119
|
+
a(V, {
|
|
120
|
+
modelValue: e.propValue.clearable,
|
|
121
|
+
"onUpdate:modelValue": o[3] || (o[3] = (l) => e.propValue.clearable = l)
|
|
122
|
+
}, null, 8, ["modelValue"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
})) : m("", !0),
|
|
126
|
+
u(),
|
|
127
|
+
e.propValue.type == "password" ? (n(), p(r, {
|
|
128
|
+
key: 1,
|
|
129
|
+
label: "密码图标",
|
|
130
|
+
title: "是否显示切换密码图标"
|
|
131
|
+
}, {
|
|
132
|
+
default: t(() => [
|
|
133
|
+
a(V, {
|
|
134
|
+
modelValue: e.propValue.showPassword,
|
|
135
|
+
"onUpdate:modelValue": o[4] || (o[4] = (l) => e.propValue.showPassword = l)
|
|
136
|
+
}, null, 8, ["modelValue"])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
})) : m("", !0),
|
|
140
|
+
u(),
|
|
141
|
+
e.propValue.type != "textarea" ? (n(), p(r, {
|
|
142
|
+
key: 2,
|
|
143
|
+
label: "前缀图标",
|
|
144
|
+
class: "icon-edit"
|
|
145
|
+
}, {
|
|
146
|
+
default: t(() => [
|
|
147
|
+
a(I, { size: 20 }, {
|
|
148
|
+
default: t(() => [
|
|
149
|
+
e.isNotEmpty(e.propValue.prefixIcon) ? (n(), p(U(e.propValue.prefixIcon), { key: 0 })) : m("", !0)
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}),
|
|
153
|
+
u(),
|
|
154
|
+
a(y, {
|
|
155
|
+
type: "primary",
|
|
156
|
+
icon: "plus",
|
|
157
|
+
onClick: e.setPreIcon
|
|
158
|
+
}),
|
|
159
|
+
u(),
|
|
160
|
+
a(y, {
|
|
161
|
+
type: "danger",
|
|
162
|
+
icon: "delete",
|
|
163
|
+
onClick: e.reSetPreIcon
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
})) : m("", !0),
|
|
168
|
+
u(),
|
|
169
|
+
e.propValue.type != "textarea" ? (n(), p(r, {
|
|
170
|
+
key: 3,
|
|
171
|
+
label: "后缀图标",
|
|
172
|
+
class: "icon-edit"
|
|
173
|
+
}, {
|
|
174
|
+
default: t(() => [
|
|
175
|
+
a(I, { size: 20 }, {
|
|
176
|
+
default: t(() => [
|
|
177
|
+
e.isNotEmpty(e.propValue.suffixIcon) ? (n(), p(U(e.propValue.suffixIcon), { key: 0 })) : m("", !0)
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}),
|
|
181
|
+
u(),
|
|
182
|
+
a(y, {
|
|
183
|
+
type: "primary",
|
|
184
|
+
icon: "plus",
|
|
185
|
+
onClick: e.setSuffixIcon
|
|
186
|
+
}),
|
|
187
|
+
u(),
|
|
188
|
+
a(y, {
|
|
189
|
+
type: "danger",
|
|
190
|
+
icon: "delete",
|
|
191
|
+
onClick: e.reSetSuffixIcon
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
})) : m("", !0),
|
|
196
|
+
u(),
|
|
197
|
+
e.propValue.type == "textarea" ? (n(), p(r, {
|
|
198
|
+
key: 4,
|
|
199
|
+
label: "输入框行数"
|
|
200
|
+
}, {
|
|
201
|
+
default: t(() => [
|
|
202
|
+
a(f, {
|
|
203
|
+
modelValue: e.propValue.rows,
|
|
204
|
+
"onUpdate:modelValue": o[5] || (o[5] = (l) => e.propValue.rows = l),
|
|
205
|
+
precision: 0,
|
|
206
|
+
step: 1,
|
|
207
|
+
min: 1,
|
|
208
|
+
class: "common-item"
|
|
209
|
+
}, null, 8, ["modelValue"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
})) : m("", !0),
|
|
213
|
+
u(),
|
|
214
|
+
e.propValue.type != "password" ? (n(), p(r, {
|
|
215
|
+
key: 5,
|
|
216
|
+
label: "显示统计字数"
|
|
217
|
+
}, {
|
|
218
|
+
default: t(() => [
|
|
219
|
+
a(V, {
|
|
220
|
+
modelValue: e.propValue.showWordLimit,
|
|
221
|
+
"onUpdate:modelValue": o[6] || (o[6] = (l) => e.propValue.showWordLimit = l)
|
|
222
|
+
}, null, 8, ["modelValue"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
})) : m("", !0),
|
|
226
|
+
u(),
|
|
227
|
+
a(r, { label: "最小长度" }, {
|
|
228
|
+
default: t(() => [
|
|
229
|
+
a(f, {
|
|
230
|
+
modelValue: e.propValue.minlength,
|
|
231
|
+
"onUpdate:modelValue": o[7] || (o[7] = (l) => e.propValue.minlength = l),
|
|
232
|
+
precision: 0,
|
|
233
|
+
step: 1,
|
|
234
|
+
min: 0,
|
|
235
|
+
class: "common-item"
|
|
236
|
+
}, null, 8, ["modelValue"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}),
|
|
240
|
+
u(),
|
|
241
|
+
a(r, { label: "最大长度" }, {
|
|
242
|
+
default: t(() => [
|
|
243
|
+
a(f, {
|
|
244
|
+
modelValue: e.propValue.maxlength,
|
|
245
|
+
"onUpdate:modelValue": o[8] || (o[8] = (l) => e.propValue.maxlength = l),
|
|
246
|
+
precision: 0,
|
|
247
|
+
step: 1,
|
|
248
|
+
min: 0,
|
|
249
|
+
class: "common-item"
|
|
250
|
+
}, null, 8, ["modelValue"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}),
|
|
254
|
+
u(),
|
|
255
|
+
a(r, { label: "自定义字体" }, {
|
|
256
|
+
default: t(() => [
|
|
257
|
+
a(V, {
|
|
258
|
+
modelValue: e.propValue.customFont,
|
|
259
|
+
"onUpdate:modelValue": o[9] || (o[9] = (l) => e.propValue.customFont = l)
|
|
260
|
+
}, null, 8, ["modelValue"])
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}),
|
|
264
|
+
u(),
|
|
265
|
+
e.propValue.customFont ? (n(), p(r, {
|
|
266
|
+
key: 6,
|
|
267
|
+
label: "字体大小"
|
|
268
|
+
}, {
|
|
269
|
+
default: t(() => [
|
|
270
|
+
a(f, {
|
|
271
|
+
modelValue: e.propValue.fontSize,
|
|
272
|
+
"onUpdate:modelValue": o[10] || (o[10] = (l) => e.propValue.fontSize = l),
|
|
273
|
+
precision: 0,
|
|
274
|
+
min: 2,
|
|
275
|
+
max: 500,
|
|
276
|
+
type: "text",
|
|
277
|
+
class: "common-item"
|
|
278
|
+
}, null, 8, ["modelValue"])
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
})) : m("", !0),
|
|
282
|
+
u(),
|
|
283
|
+
e.propValue.customFont ? (n(), p(r, {
|
|
284
|
+
key: 7,
|
|
285
|
+
label: "字体粗细"
|
|
286
|
+
}, {
|
|
287
|
+
default: t(() => [
|
|
288
|
+
a(s, {
|
|
289
|
+
modelValue: e.propValue.fontWeight,
|
|
290
|
+
"onUpdate:modelValue": o[11] || (o[11] = (l) => e.propValue.fontWeight = l),
|
|
291
|
+
placeholder: "请选择",
|
|
292
|
+
class: "common-item"
|
|
293
|
+
}, {
|
|
294
|
+
default: t(() => [
|
|
295
|
+
(n(!0), x(_, null, S(e.fontWeightArr, (l) => (n(), p(c, {
|
|
296
|
+
key: l.value,
|
|
297
|
+
label: l.label,
|
|
298
|
+
value: l.value
|
|
299
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["modelValue"])
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
})) : m("", !0),
|
|
306
|
+
u(),
|
|
307
|
+
e.propValue.customFont ? (n(), p(r, {
|
|
308
|
+
key: 8,
|
|
309
|
+
label: "字体"
|
|
310
|
+
}, {
|
|
311
|
+
default: t(() => [
|
|
312
|
+
a(s, {
|
|
313
|
+
modelValue: e.propValue.fontFamily,
|
|
314
|
+
"onUpdate:modelValue": o[12] || (o[12] = (l) => e.propValue.fontFamily = l),
|
|
315
|
+
placeholder: "请选择",
|
|
316
|
+
class: "common-item"
|
|
317
|
+
}, {
|
|
318
|
+
default: t(() => [
|
|
319
|
+
(n(!0), x(_, null, S(e.fontFamilyArr, (l) => (n(), p(c, {
|
|
320
|
+
key: l.value,
|
|
321
|
+
label: l.label,
|
|
322
|
+
value: l.value
|
|
323
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
}, 8, ["modelValue"])
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
})) : m("", !0),
|
|
330
|
+
u(),
|
|
331
|
+
e.propValue.customFont ? (n(), p(r, {
|
|
332
|
+
key: 9,
|
|
333
|
+
label: "字体样式"
|
|
334
|
+
}, {
|
|
335
|
+
default: t(() => [
|
|
336
|
+
a(s, {
|
|
337
|
+
modelValue: e.propValue.fontStyle,
|
|
338
|
+
"onUpdate:modelValue": o[13] || (o[13] = (l) => e.propValue.fontStyle = l),
|
|
339
|
+
placeholder: "请选择",
|
|
340
|
+
class: "common-item"
|
|
341
|
+
}, {
|
|
342
|
+
default: t(() => [
|
|
343
|
+
(n(!0), x(_, null, S(e.fontStyleArr, (l) => (n(), p(c, {
|
|
344
|
+
key: l.value,
|
|
345
|
+
label: l.label,
|
|
346
|
+
value: l.value
|
|
347
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}, 8, ["modelValue"])
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
})) : m("", !0),
|
|
354
|
+
u(),
|
|
355
|
+
e.isNotTextArea ? (n(), p(r, {
|
|
356
|
+
key: 10,
|
|
357
|
+
label: "自定义插槽"
|
|
358
|
+
}, {
|
|
359
|
+
default: t(() => [
|
|
360
|
+
a(V, {
|
|
361
|
+
modelValue: e.propValue.customSlot,
|
|
362
|
+
"onUpdate:modelValue": o[14] || (o[14] = (l) => e.propValue.customSlot = l)
|
|
363
|
+
}, null, 8, ["modelValue"])
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
})) : m("", !0),
|
|
367
|
+
u(),
|
|
368
|
+
e.isNotTextArea && e.propValue.customSlot ? (n(), p(r, {
|
|
369
|
+
key: 11,
|
|
370
|
+
label: "框头-文本"
|
|
371
|
+
}, {
|
|
372
|
+
default: t(() => [
|
|
373
|
+
a(v, {
|
|
374
|
+
modelValue: e.propValue.prefixText,
|
|
375
|
+
"onUpdate:modelValue": o[15] || (o[15] = (l) => e.propValue.prefixText = l),
|
|
376
|
+
type: "text",
|
|
377
|
+
class: "common-item"
|
|
378
|
+
}, null, 8, ["modelValue"])
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
})) : m("", !0),
|
|
382
|
+
u(),
|
|
383
|
+
e.isNotTextArea && e.propValue.customSlot ? (n(), p(r, {
|
|
384
|
+
key: 12,
|
|
385
|
+
label: "框尾-文本"
|
|
386
|
+
}, {
|
|
387
|
+
default: t(() => [
|
|
388
|
+
a(v, {
|
|
389
|
+
modelValue: e.propValue.suffixText,
|
|
390
|
+
"onUpdate:modelValue": o[16] || (o[16] = (l) => e.propValue.suffixText = l),
|
|
391
|
+
type: "text",
|
|
392
|
+
class: "common-item"
|
|
393
|
+
}, null, 8, ["modelValue"])
|
|
394
|
+
]),
|
|
395
|
+
_: 1
|
|
396
|
+
})) : m("", !0)
|
|
397
|
+
]),
|
|
398
|
+
_: 1
|
|
399
|
+
}, 8, ["size"])
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
}, 8, ["page-id", "form-size"])
|
|
403
|
+
]),
|
|
404
|
+
u(),
|
|
405
|
+
a(e.ElementIconDialog, { ref: "elementIconRef" }, null, 512)
|
|
406
|
+
], 64);
|
|
407
|
+
}
|
|
408
|
+
const H = /* @__PURE__ */ P(D, [["render", L], ["__scopeId", "data-v-4af09d3c"], ["__file", "Attr.vue"]]);
|
|
409
|
+
export {
|
|
410
|
+
H as default
|
|
411
|
+
};
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { _ as x, g } from "./_plugin-vue_export-helper-Bos-KsiI.js";
|
|
2
|
+
import { f as I, p as w } from "./constant-CU9c_PNt.js";
|
|
3
|
+
import { resolveComponent as p, createElementBlock as V, openBlock as u, createVNode as o, withCtx as r, createTextVNode as n, Fragment as c, renderList as _, createBlock as k } from "vue";
|
|
4
|
+
const z = {
|
|
5
|
+
__name: "Attr",
|
|
6
|
+
props: ["pageId", "formSize"],
|
|
7
|
+
setup(v, { expose: a }) {
|
|
8
|
+
a();
|
|
9
|
+
const f = v, e = g(f.pageId), b = computed(() => e.curComponent), C = computed(() => b.value.propValue || {}), t = { props: f, editorStore: e, curComponent: b, propValue: C, typeArr: [
|
|
10
|
+
{
|
|
11
|
+
value: "card",
|
|
12
|
+
label: "卡片"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: "border-card",
|
|
16
|
+
label: "边框卡片"
|
|
17
|
+
}
|
|
18
|
+
], tabPositionArr: [
|
|
19
|
+
{
|
|
20
|
+
value: "top",
|
|
21
|
+
label: "顶部"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: "right",
|
|
25
|
+
label: "右侧"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "bottom",
|
|
29
|
+
label: "底部"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: "left",
|
|
33
|
+
label: "左侧"
|
|
34
|
+
}
|
|
35
|
+
], get useEditorStore() {
|
|
36
|
+
return g;
|
|
37
|
+
}, get predefine() {
|
|
38
|
+
return w;
|
|
39
|
+
}, get fontFamilyArr() {
|
|
40
|
+
return I;
|
|
41
|
+
} };
|
|
42
|
+
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
function S(v, a, f, e, b, C) {
|
|
46
|
+
const m = p("el-option"), i = p("el-select"), t = p("el-form-item"), s = p("el-switch"), y = p("el-input-number"), d = p("el-color-picker"), A = p("el-form"), U = p("VECommonAttr");
|
|
47
|
+
return u(), V("div", { class: "attr-list" }, [
|
|
48
|
+
o(U, {
|
|
49
|
+
"page-id": e.props.pageId,
|
|
50
|
+
"form-size": e.props.formSize
|
|
51
|
+
}, {
|
|
52
|
+
default: r(() => [
|
|
53
|
+
o(A, {
|
|
54
|
+
size: e.props.formSize,
|
|
55
|
+
"label-width": "100px",
|
|
56
|
+
"label-position": "left",
|
|
57
|
+
style: { padding: "10px" }
|
|
58
|
+
}, {
|
|
59
|
+
default: r(() => [
|
|
60
|
+
o(t, { label: "风格类型" }, {
|
|
61
|
+
default: r(() => [
|
|
62
|
+
o(i, {
|
|
63
|
+
modelValue: e.propValue.type,
|
|
64
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => e.propValue.type = l),
|
|
65
|
+
placeholder: "请选择",
|
|
66
|
+
class: "common-item",
|
|
67
|
+
clearable: ""
|
|
68
|
+
}, {
|
|
69
|
+
default: r(() => [
|
|
70
|
+
(u(), V(c, null, _(e.typeArr, (l) => o(m, {
|
|
71
|
+
key: l.value,
|
|
72
|
+
label: l.label,
|
|
73
|
+
value: l.value
|
|
74
|
+
}, null, 8, ["label", "value"])), 64))
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["modelValue"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
81
|
+
n(),
|
|
82
|
+
o(t, { label: "选项卡位置" }, {
|
|
83
|
+
default: r(() => [
|
|
84
|
+
o(i, {
|
|
85
|
+
modelValue: e.propValue.tabPosition,
|
|
86
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => e.propValue.tabPosition = l),
|
|
87
|
+
placeholder: "请选择",
|
|
88
|
+
class: "common-item"
|
|
89
|
+
}, {
|
|
90
|
+
default: r(() => [
|
|
91
|
+
(u(), V(c, null, _(e.tabPositionArr, (l) => o(m, {
|
|
92
|
+
key: l.value,
|
|
93
|
+
label: l.label,
|
|
94
|
+
value: l.value
|
|
95
|
+
}, null, 8, ["label", "value"])), 64))
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["modelValue"])
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}),
|
|
102
|
+
n(),
|
|
103
|
+
o(t, {
|
|
104
|
+
label: "可关闭",
|
|
105
|
+
title: "标签是否可关闭"
|
|
106
|
+
}, {
|
|
107
|
+
default: r(() => [
|
|
108
|
+
o(s, {
|
|
109
|
+
modelValue: e.propValue.closable,
|
|
110
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => e.propValue.closable = l)
|
|
111
|
+
}, null, 8, ["modelValue"])
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
}),
|
|
115
|
+
n(),
|
|
116
|
+
o(t, {
|
|
117
|
+
label: "可增加",
|
|
118
|
+
title: "标签是否可增加"
|
|
119
|
+
}, {
|
|
120
|
+
default: r(() => [
|
|
121
|
+
o(s, {
|
|
122
|
+
modelValue: e.propValue.addable,
|
|
123
|
+
"onUpdate:modelValue": a[3] || (a[3] = (l) => e.propValue.addable = l)
|
|
124
|
+
}, null, 8, ["modelValue"])
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}),
|
|
128
|
+
n(),
|
|
129
|
+
o(t, {
|
|
130
|
+
label: "自撑开",
|
|
131
|
+
title: "标签的宽度是否自撑开"
|
|
132
|
+
}, {
|
|
133
|
+
default: r(() => [
|
|
134
|
+
o(s, {
|
|
135
|
+
modelValue: e.propValue.stretch,
|
|
136
|
+
"onUpdate:modelValue": a[4] || (a[4] = (l) => e.propValue.stretch = l)
|
|
137
|
+
}, null, 8, ["modelValue"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
n(),
|
|
142
|
+
o(t, { label: "最大Tab数" }, {
|
|
143
|
+
default: r(() => [
|
|
144
|
+
o(y, {
|
|
145
|
+
modelValue: e.propValue.maxTabs,
|
|
146
|
+
"onUpdate:modelValue": a[5] || (a[5] = (l) => e.propValue.maxTabs = l),
|
|
147
|
+
precision: 0,
|
|
148
|
+
step: 1,
|
|
149
|
+
min: 1,
|
|
150
|
+
max: 50,
|
|
151
|
+
class: "common-item"
|
|
152
|
+
}, null, 8, ["modelValue"])
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
n(),
|
|
157
|
+
o(t, { label: "选项栏背景色" }, {
|
|
158
|
+
default: r(() => [
|
|
159
|
+
o(d, {
|
|
160
|
+
modelValue: e.curComponent.propValue.bgColor,
|
|
161
|
+
"onUpdate:modelValue": a[6] || (a[6] = (l) => e.curComponent.propValue.bgColor = l),
|
|
162
|
+
"show-alpha": "",
|
|
163
|
+
predefine: e.predefine
|
|
164
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
n(),
|
|
169
|
+
o(t, { label: "选项栏边框色" }, {
|
|
170
|
+
default: r(() => [
|
|
171
|
+
o(d, {
|
|
172
|
+
modelValue: e.curComponent.propValue.borderColor,
|
|
173
|
+
"onUpdate:modelValue": a[7] || (a[7] = (l) => e.curComponent.propValue.borderColor = l),
|
|
174
|
+
"show-alpha": "",
|
|
175
|
+
predefine: e.predefine
|
|
176
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}),
|
|
180
|
+
n(),
|
|
181
|
+
o(t, {
|
|
182
|
+
label: "激活项背景色",
|
|
183
|
+
title: "激活选项背景颜色"
|
|
184
|
+
}, {
|
|
185
|
+
default: r(() => [
|
|
186
|
+
o(d, {
|
|
187
|
+
modelValue: e.curComponent.propValue.activeItemBgColor,
|
|
188
|
+
"onUpdate:modelValue": a[8] || (a[8] = (l) => e.curComponent.propValue.activeItemBgColor = l),
|
|
189
|
+
"show-alpha": "",
|
|
190
|
+
predefine: e.predefine
|
|
191
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
n(),
|
|
196
|
+
o(t, {
|
|
197
|
+
label: "激活项颜色",
|
|
198
|
+
title: "激活选项文字颜色"
|
|
199
|
+
}, {
|
|
200
|
+
default: r(() => [
|
|
201
|
+
o(d, {
|
|
202
|
+
modelValue: e.curComponent.propValue.activeItemColor,
|
|
203
|
+
"onUpdate:modelValue": a[9] || (a[9] = (l) => e.curComponent.propValue.activeItemColor = l),
|
|
204
|
+
"show-alpha": "",
|
|
205
|
+
predefine: e.predefine
|
|
206
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}),
|
|
210
|
+
n(),
|
|
211
|
+
o(t, {
|
|
212
|
+
label: "悬停项颜色",
|
|
213
|
+
title: "悬停项文字颜色"
|
|
214
|
+
}, {
|
|
215
|
+
default: r(() => [
|
|
216
|
+
o(d, {
|
|
217
|
+
modelValue: e.curComponent.propValue.hoverItemColor,
|
|
218
|
+
"onUpdate:modelValue": a[10] || (a[10] = (l) => e.curComponent.propValue.hoverItemColor = l),
|
|
219
|
+
"show-alpha": "",
|
|
220
|
+
predefine: e.predefine
|
|
221
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
n(),
|
|
226
|
+
o(t, { label: "字体" }, {
|
|
227
|
+
default: r(() => [
|
|
228
|
+
o(i, {
|
|
229
|
+
modelValue: e.propValue.fontFamily,
|
|
230
|
+
"onUpdate:modelValue": a[11] || (a[11] = (l) => e.propValue.fontFamily = l),
|
|
231
|
+
placeholder: "请选择",
|
|
232
|
+
class: "common-item"
|
|
233
|
+
}, {
|
|
234
|
+
default: r(() => [
|
|
235
|
+
(u(!0), V(c, null, _(e.fontFamilyArr, (l) => (u(), k(m, {
|
|
236
|
+
key: l.value,
|
|
237
|
+
label: l.label,
|
|
238
|
+
value: l.value
|
|
239
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["modelValue"])
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
})
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
}, 8, ["size"])
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 8, ["page-id", "form-size"])
|
|
252
|
+
]);
|
|
253
|
+
}
|
|
254
|
+
const E = /* @__PURE__ */ x(z, [["render", S], ["__scopeId", "data-v-3c9b2a44"], ["__file", "Attr.vue"]]);
|
|
255
|
+
export {
|
|
256
|
+
E as default
|
|
257
|
+
};
|