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
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { p as y, f as k } from "./constant-CU9c_PNt.js";
|
|
2
|
+
import { _ as z, g as b } from "./_plugin-vue_export-helper-Bos-KsiI.js";
|
|
3
|
+
import { resolveComponent as a, createElementBlock as g, openBlock as c, createVNode as r, withCtx as n, createTextVNode as p, Fragment as S, renderList as A, createBlock as N } from "vue";
|
|
4
|
+
const U = {
|
|
5
|
+
__name: "Attr",
|
|
6
|
+
props: ["pageId", "formSize"],
|
|
7
|
+
setup(V, { expose: l }) {
|
|
8
|
+
l();
|
|
9
|
+
const u = V, e = b(u.pageId), i = computed(() => e.curComponent), d = computed(() => i.value.propValue || {}), t = { props: u, editorStore: e, curComponent: i, propValue: d, inputNumber: (s) => {
|
|
10
|
+
const m = s.replace(/[^0-9.]/g, "");
|
|
11
|
+
isNumber(m) && (d.value.factor = Number(m));
|
|
12
|
+
}, get fontFamilyArr() {
|
|
13
|
+
return k;
|
|
14
|
+
}, get predefine() {
|
|
15
|
+
return y;
|
|
16
|
+
}, get useEditorStore() {
|
|
17
|
+
return b;
|
|
18
|
+
} };
|
|
19
|
+
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function F(V, l, u, e, i, d) {
|
|
23
|
+
const f = a("el-input-number"), t = a("el-form-item"), s = a("el-input"), m = a("el-option"), v = a("el-select"), _ = a("el-color-picker"), C = a("el-form"), x = a("VECommonAttr");
|
|
24
|
+
return c(), g("div", { class: "attr-list" }, [
|
|
25
|
+
r(x, {
|
|
26
|
+
"page-id": e.props.pageId,
|
|
27
|
+
"form-size": e.props.formSize
|
|
28
|
+
}, {
|
|
29
|
+
default: n(() => [
|
|
30
|
+
r(C, {
|
|
31
|
+
size: e.props.formSize,
|
|
32
|
+
"label-width": "100px",
|
|
33
|
+
"label-position": "left",
|
|
34
|
+
style: { padding: "10px" }
|
|
35
|
+
}, {
|
|
36
|
+
default: n(() => [
|
|
37
|
+
r(t, { label: "小数位数" }, {
|
|
38
|
+
default: n(() => [
|
|
39
|
+
r(f, {
|
|
40
|
+
modelValue: e.propValue.fractionDigits,
|
|
41
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => e.propValue.fractionDigits = o),
|
|
42
|
+
precision: 0,
|
|
43
|
+
step: 1,
|
|
44
|
+
min: 0,
|
|
45
|
+
type: "text",
|
|
46
|
+
class: "common-item"
|
|
47
|
+
}, null, 8, ["modelValue"])
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}),
|
|
51
|
+
p(),
|
|
52
|
+
r(t, { label: "系数" }, {
|
|
53
|
+
default: n(() => [
|
|
54
|
+
r(s, {
|
|
55
|
+
modelValue: e.propValue.factor,
|
|
56
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => e.propValue.factor = o),
|
|
57
|
+
modelModifiers: { number: !0 },
|
|
58
|
+
type: "number",
|
|
59
|
+
onInput: e.inputNumber,
|
|
60
|
+
class: "common-item"
|
|
61
|
+
}, null, 8, ["modelValue"])
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}),
|
|
65
|
+
p(),
|
|
66
|
+
r(t, { label: "字体大小" }, {
|
|
67
|
+
default: n(() => [
|
|
68
|
+
r(f, {
|
|
69
|
+
modelValue: e.propValue.fontSize,
|
|
70
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => e.propValue.fontSize = o),
|
|
71
|
+
precision: 0,
|
|
72
|
+
min: 2,
|
|
73
|
+
max: 50,
|
|
74
|
+
type: "text",
|
|
75
|
+
class: "common-item"
|
|
76
|
+
}, null, 8, ["modelValue"])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
p(),
|
|
81
|
+
r(t, { label: "字体" }, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
r(v, {
|
|
84
|
+
modelValue: e.propValue.fontFamily,
|
|
85
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => e.propValue.fontFamily = o),
|
|
86
|
+
placeholder: "请选择",
|
|
87
|
+
class: "common-item"
|
|
88
|
+
}, {
|
|
89
|
+
default: n(() => [
|
|
90
|
+
(c(!0), g(S, null, A(e.fontFamilyArr, (o) => (c(), N(m, {
|
|
91
|
+
key: o.value,
|
|
92
|
+
label: o.label,
|
|
93
|
+
value: o.value
|
|
94
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["modelValue"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}),
|
|
101
|
+
p(),
|
|
102
|
+
r(t, { label: "字体颜色" }, {
|
|
103
|
+
default: n(() => [
|
|
104
|
+
r(_, {
|
|
105
|
+
modelValue: e.propValue.fontColor,
|
|
106
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => e.propValue.fontColor = o),
|
|
107
|
+
"show-alpha": "",
|
|
108
|
+
predefine: e.predefine
|
|
109
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}),
|
|
113
|
+
p(),
|
|
114
|
+
r(t, { label: "圆环颜色" }, {
|
|
115
|
+
default: n(() => [
|
|
116
|
+
r(_, {
|
|
117
|
+
modelValue: e.propValue.strokeColor,
|
|
118
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => e.propValue.strokeColor = o),
|
|
119
|
+
"show-alpha": "",
|
|
120
|
+
predefine: e.predefine
|
|
121
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}),
|
|
125
|
+
p(),
|
|
126
|
+
r(t, { label: "液体颜色" }, {
|
|
127
|
+
default: n(() => [
|
|
128
|
+
r(_, {
|
|
129
|
+
modelValue: e.propValue.strokeColor2,
|
|
130
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => e.propValue.strokeColor2 = o),
|
|
131
|
+
"show-alpha": "",
|
|
132
|
+
predefine: e.predefine
|
|
133
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["size"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["page-id", "form-size"])
|
|
143
|
+
]);
|
|
144
|
+
}
|
|
145
|
+
const B = /* @__PURE__ */ z(U, [["render", F], ["__scopeId", "data-v-6474bee2"], ["__file", "Attr.vue"]]);
|
|
146
|
+
export {
|
|
147
|
+
B as default
|
|
148
|
+
};
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { p as U } from "./constant-CU9c_PNt.js";
|
|
2
|
+
import { _ as k, g as _ } from "./_plugin-vue_export-helper-Bos-KsiI.js";
|
|
3
|
+
import { resolveComponent as u, createElementBlock as B, openBlock as p, createVNode as a, withCtx as r, createTextVNode as n, createBlock as t, createCommentVNode as i } from "vue";
|
|
4
|
+
const y = {
|
|
5
|
+
__name: "Attr",
|
|
6
|
+
props: ["pageId", "formSize"],
|
|
7
|
+
setup(g, { expose: o }) {
|
|
8
|
+
o();
|
|
9
|
+
const V = g, e = _(V.pageId), f = computed(() => e.curComponent), b = computed(() => f.value.propValue || {}), m = { props: V, editorStore: e, curComponent: f, propValue: b, get predefine() {
|
|
10
|
+
return U;
|
|
11
|
+
}, get useEditorStore() {
|
|
12
|
+
return _;
|
|
13
|
+
} };
|
|
14
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
function H(g, o, V, e, f, b) {
|
|
18
|
+
const m = u("el-input-number"), d = u("el-form-item"), s = u("el-color-picker"), P = u("el-switch"), c = u("el-form"), C = u("VECommonAttr");
|
|
19
|
+
return p(), B("div", { class: "attr-list" }, [
|
|
20
|
+
a(C, {
|
|
21
|
+
"page-id": e.props.pageId,
|
|
22
|
+
"form-size": e.props.formSize
|
|
23
|
+
}, {
|
|
24
|
+
default: r(() => [
|
|
25
|
+
a(c, {
|
|
26
|
+
size: e.props.formSize,
|
|
27
|
+
"label-width": "100px",
|
|
28
|
+
"label-position": "left",
|
|
29
|
+
style: { padding: "10px" }
|
|
30
|
+
}, {
|
|
31
|
+
default: r(() => [
|
|
32
|
+
a(d, { label: "内边距-左" }, {
|
|
33
|
+
default: r(() => [
|
|
34
|
+
a(m, {
|
|
35
|
+
modelValue: e.propValue.mainPaddingLeft,
|
|
36
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.propValue.mainPaddingLeft = l),
|
|
37
|
+
precision: 0,
|
|
38
|
+
step: 1,
|
|
39
|
+
min: 0,
|
|
40
|
+
class: "common-item"
|
|
41
|
+
}, null, 8, ["modelValue"])
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}),
|
|
45
|
+
n(),
|
|
46
|
+
a(d, { label: "内边距-右" }, {
|
|
47
|
+
default: r(() => [
|
|
48
|
+
a(m, {
|
|
49
|
+
modelValue: e.propValue.mainPaddingRight,
|
|
50
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.propValue.mainPaddingRight = l),
|
|
51
|
+
precision: 0,
|
|
52
|
+
step: 1,
|
|
53
|
+
min: 0,
|
|
54
|
+
class: "common-item"
|
|
55
|
+
}, null, 8, ["modelValue"])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}),
|
|
59
|
+
n(),
|
|
60
|
+
a(d, { label: "内边距-上" }, {
|
|
61
|
+
default: r(() => [
|
|
62
|
+
a(m, {
|
|
63
|
+
modelValue: e.propValue.mainPaddingTop,
|
|
64
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.propValue.mainPaddingTop = l),
|
|
65
|
+
precision: 0,
|
|
66
|
+
step: 1,
|
|
67
|
+
min: 0,
|
|
68
|
+
class: "common-item"
|
|
69
|
+
}, null, 8, ["modelValue"])
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}),
|
|
73
|
+
n(),
|
|
74
|
+
a(d, { label: "内边距-下" }, {
|
|
75
|
+
default: r(() => [
|
|
76
|
+
a(m, {
|
|
77
|
+
modelValue: e.propValue.mainPaddingBottom,
|
|
78
|
+
"onUpdate:modelValue": o[3] || (o[3] = (l) => e.propValue.mainPaddingBottom = l),
|
|
79
|
+
precision: 0,
|
|
80
|
+
step: 1,
|
|
81
|
+
min: 0,
|
|
82
|
+
class: "common-item"
|
|
83
|
+
}, null, 8, ["modelValue"])
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
n(),
|
|
88
|
+
a(d, { label: "背景色" }, {
|
|
89
|
+
default: r(() => [
|
|
90
|
+
a(s, {
|
|
91
|
+
modelValue: e.curComponent.propValue.mainBgColor,
|
|
92
|
+
"onUpdate:modelValue": o[4] || (o[4] = (l) => e.curComponent.propValue.mainBgColor = l),
|
|
93
|
+
"show-alpha": "",
|
|
94
|
+
predefine: e.predefine
|
|
95
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
n(),
|
|
100
|
+
a(d, {
|
|
101
|
+
label: "有顶栏",
|
|
102
|
+
title: "是否有顶栏"
|
|
103
|
+
}, {
|
|
104
|
+
default: r(() => [
|
|
105
|
+
a(P, {
|
|
106
|
+
modelValue: e.propValue.hasHeader,
|
|
107
|
+
"onUpdate:modelValue": o[5] || (o[5] = (l) => e.propValue.hasHeader = l)
|
|
108
|
+
}, null, 8, ["modelValue"])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
n(),
|
|
113
|
+
e.propValue.hasHeader ? (p(), t(d, {
|
|
114
|
+
key: 0,
|
|
115
|
+
label: "顶栏高度"
|
|
116
|
+
}, {
|
|
117
|
+
default: r(() => [
|
|
118
|
+
a(m, {
|
|
119
|
+
modelValue: e.propValue.headerHeight,
|
|
120
|
+
"onUpdate:modelValue": o[6] || (o[6] = (l) => e.propValue.headerHeight = l),
|
|
121
|
+
precision: 0,
|
|
122
|
+
step: 1,
|
|
123
|
+
min: 0,
|
|
124
|
+
class: "common-item"
|
|
125
|
+
}, null, 8, ["modelValue"])
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
})) : i("", !0),
|
|
129
|
+
n(),
|
|
130
|
+
e.propValue.hasHeader ? (p(), t(d, {
|
|
131
|
+
key: 1,
|
|
132
|
+
label: "内边距-左"
|
|
133
|
+
}, {
|
|
134
|
+
default: r(() => [
|
|
135
|
+
a(m, {
|
|
136
|
+
modelValue: e.propValue.headerPaddingLeft,
|
|
137
|
+
"onUpdate:modelValue": o[7] || (o[7] = (l) => e.propValue.headerPaddingLeft = l),
|
|
138
|
+
precision: 0,
|
|
139
|
+
step: 1,
|
|
140
|
+
min: 0,
|
|
141
|
+
class: "common-item"
|
|
142
|
+
}, null, 8, ["modelValue"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})) : i("", !0),
|
|
146
|
+
n(),
|
|
147
|
+
e.propValue.hasHeader ? (p(), t(d, {
|
|
148
|
+
key: 2,
|
|
149
|
+
label: "内边距-右"
|
|
150
|
+
}, {
|
|
151
|
+
default: r(() => [
|
|
152
|
+
a(m, {
|
|
153
|
+
modelValue: e.propValue.headerPaddingRight,
|
|
154
|
+
"onUpdate:modelValue": o[8] || (o[8] = (l) => e.propValue.headerPaddingRight = l),
|
|
155
|
+
precision: 0,
|
|
156
|
+
step: 1,
|
|
157
|
+
min: 0,
|
|
158
|
+
class: "common-item"
|
|
159
|
+
}, null, 8, ["modelValue"])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})) : i("", !0),
|
|
163
|
+
n(),
|
|
164
|
+
e.propValue.hasHeader ? (p(), t(d, {
|
|
165
|
+
key: 3,
|
|
166
|
+
label: "内边距-上"
|
|
167
|
+
}, {
|
|
168
|
+
default: r(() => [
|
|
169
|
+
a(m, {
|
|
170
|
+
modelValue: e.propValue.headerPaddingTop,
|
|
171
|
+
"onUpdate:modelValue": o[9] || (o[9] = (l) => e.propValue.headerPaddingTop = l),
|
|
172
|
+
precision: 0,
|
|
173
|
+
step: 1,
|
|
174
|
+
min: 0,
|
|
175
|
+
class: "common-item"
|
|
176
|
+
}, null, 8, ["modelValue"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
})) : i("", !0),
|
|
180
|
+
n(),
|
|
181
|
+
e.propValue.hasHeader ? (p(), t(d, {
|
|
182
|
+
key: 4,
|
|
183
|
+
label: "内边距-下"
|
|
184
|
+
}, {
|
|
185
|
+
default: r(() => [
|
|
186
|
+
a(m, {
|
|
187
|
+
modelValue: e.propValue.headerPaddingBottom,
|
|
188
|
+
"onUpdate:modelValue": o[10] || (o[10] = (l) => e.propValue.headerPaddingBottom = l),
|
|
189
|
+
precision: 0,
|
|
190
|
+
step: 1,
|
|
191
|
+
min: 0,
|
|
192
|
+
class: "common-item"
|
|
193
|
+
}, null, 8, ["modelValue"])
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})) : i("", !0),
|
|
197
|
+
n(),
|
|
198
|
+
e.propValue.hasHeader ? (p(), t(d, {
|
|
199
|
+
key: 5,
|
|
200
|
+
label: "背景色"
|
|
201
|
+
}, {
|
|
202
|
+
default: r(() => [
|
|
203
|
+
a(s, {
|
|
204
|
+
modelValue: e.curComponent.propValue.headerBgColor,
|
|
205
|
+
"onUpdate:modelValue": o[11] || (o[11] = (l) => e.curComponent.propValue.headerBgColor = l),
|
|
206
|
+
"show-alpha": "",
|
|
207
|
+
predefine: e.predefine
|
|
208
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})) : i("", !0),
|
|
212
|
+
n(),
|
|
213
|
+
a(d, {
|
|
214
|
+
label: "有底栏",
|
|
215
|
+
title: "是否有底栏"
|
|
216
|
+
}, {
|
|
217
|
+
default: r(() => [
|
|
218
|
+
a(P, {
|
|
219
|
+
modelValue: e.propValue.hasFooter,
|
|
220
|
+
"onUpdate:modelValue": o[12] || (o[12] = (l) => e.propValue.hasFooter = l)
|
|
221
|
+
}, null, 8, ["modelValue"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
n(),
|
|
226
|
+
e.propValue.hasFooter ? (p(), t(d, {
|
|
227
|
+
key: 6,
|
|
228
|
+
label: "底栏高度"
|
|
229
|
+
}, {
|
|
230
|
+
default: r(() => [
|
|
231
|
+
a(m, {
|
|
232
|
+
modelValue: e.propValue.footerHeight,
|
|
233
|
+
"onUpdate:modelValue": o[13] || (o[13] = (l) => e.propValue.footerHeight = l),
|
|
234
|
+
precision: 0,
|
|
235
|
+
step: 1,
|
|
236
|
+
min: 0,
|
|
237
|
+
class: "common-item"
|
|
238
|
+
}, null, 8, ["modelValue"])
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
})) : i("", !0),
|
|
242
|
+
n(),
|
|
243
|
+
e.propValue.hasFooter ? (p(), t(d, {
|
|
244
|
+
key: 7,
|
|
245
|
+
label: "内边距-左"
|
|
246
|
+
}, {
|
|
247
|
+
default: r(() => [
|
|
248
|
+
a(m, {
|
|
249
|
+
modelValue: e.propValue.footerPaddingLeft,
|
|
250
|
+
"onUpdate:modelValue": o[14] || (o[14] = (l) => e.propValue.footerPaddingLeft = l),
|
|
251
|
+
precision: 0,
|
|
252
|
+
step: 1,
|
|
253
|
+
min: 0,
|
|
254
|
+
class: "common-item"
|
|
255
|
+
}, null, 8, ["modelValue"])
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
})) : i("", !0),
|
|
259
|
+
n(),
|
|
260
|
+
e.propValue.hasFooter ? (p(), t(d, {
|
|
261
|
+
key: 8,
|
|
262
|
+
label: "内边距-右"
|
|
263
|
+
}, {
|
|
264
|
+
default: r(() => [
|
|
265
|
+
a(m, {
|
|
266
|
+
modelValue: e.propValue.footerPaddingRight,
|
|
267
|
+
"onUpdate:modelValue": o[15] || (o[15] = (l) => e.propValue.footerPaddingRight = l),
|
|
268
|
+
precision: 0,
|
|
269
|
+
step: 1,
|
|
270
|
+
min: 0,
|
|
271
|
+
class: "common-item"
|
|
272
|
+
}, null, 8, ["modelValue"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
})) : i("", !0),
|
|
276
|
+
n(),
|
|
277
|
+
e.propValue.hasFooter ? (p(), t(d, {
|
|
278
|
+
key: 9,
|
|
279
|
+
label: "内边距-上"
|
|
280
|
+
}, {
|
|
281
|
+
default: r(() => [
|
|
282
|
+
a(m, {
|
|
283
|
+
modelValue: e.propValue.footerPaddingTop,
|
|
284
|
+
"onUpdate:modelValue": o[16] || (o[16] = (l) => e.propValue.footerPaddingTop = l),
|
|
285
|
+
precision: 0,
|
|
286
|
+
step: 1,
|
|
287
|
+
min: 0,
|
|
288
|
+
class: "common-item"
|
|
289
|
+
}, null, 8, ["modelValue"])
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
})) : i("", !0),
|
|
293
|
+
n(),
|
|
294
|
+
e.propValue.hasFooter ? (p(), t(d, {
|
|
295
|
+
key: 10,
|
|
296
|
+
label: "内边距-下"
|
|
297
|
+
}, {
|
|
298
|
+
default: r(() => [
|
|
299
|
+
a(m, {
|
|
300
|
+
modelValue: e.propValue.footerPaddingBottom,
|
|
301
|
+
"onUpdate:modelValue": o[17] || (o[17] = (l) => e.propValue.footerPaddingBottom = l),
|
|
302
|
+
precision: 0,
|
|
303
|
+
step: 1,
|
|
304
|
+
min: 0,
|
|
305
|
+
class: "common-item"
|
|
306
|
+
}, null, 8, ["modelValue"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
})) : i("", !0),
|
|
310
|
+
n(),
|
|
311
|
+
e.propValue.hasFooter ? (p(), t(d, {
|
|
312
|
+
key: 11,
|
|
313
|
+
label: "背景色"
|
|
314
|
+
}, {
|
|
315
|
+
default: r(() => [
|
|
316
|
+
a(s, {
|
|
317
|
+
modelValue: e.curComponent.propValue.footerBgColor,
|
|
318
|
+
"onUpdate:modelValue": o[18] || (o[18] = (l) => e.curComponent.propValue.footerBgColor = l),
|
|
319
|
+
"show-alpha": "",
|
|
320
|
+
predefine: e.predefine
|
|
321
|
+
}, null, 8, ["modelValue", "predefine"])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
})) : i("", !0)
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["size"])
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
}, 8, ["page-id", "form-size"])
|
|
331
|
+
]);
|
|
332
|
+
}
|
|
333
|
+
const w = /* @__PURE__ */ k(y, [["render", H], ["__scopeId", "data-v-2d58a11a"], ["__file", "Attr.vue"]]);
|
|
334
|
+
export {
|
|
335
|
+
w as default
|
|
336
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { _ as x, g as A } from "./_plugin-vue_export-helper-Bos-KsiI.js";
|
|
2
|
+
import { f as U, c as C, b as F, e as W } from "./constant-CU9c_PNt.js";
|
|
3
|
+
import { resolveComponent as m, createElementBlock as i, openBlock as t, createVNode as a, withCtx as r, createTextVNode as p, createBlock as n, createCommentVNode as f, Fragment as _, renderList as c } from "vue";
|
|
4
|
+
const w = {
|
|
5
|
+
__name: "Attr",
|
|
6
|
+
props: ["pageId", "formSize"],
|
|
7
|
+
setup(v, { expose: o }) {
|
|
8
|
+
o();
|
|
9
|
+
const b = v, e = A(b.pageId), y = computed(() => e.curComponent), g = computed(() => y.value.propValue || {}), d = { props: b, editorStore: e, curComponent: y, propValue: g, get useEditorStore() {
|
|
10
|
+
return A;
|
|
11
|
+
}, get elementSizeArr() {
|
|
12
|
+
return W;
|
|
13
|
+
}, get fontWeightArr() {
|
|
14
|
+
return F;
|
|
15
|
+
}, get fontStyleArr() {
|
|
16
|
+
return C;
|
|
17
|
+
}, get fontFamilyArr() {
|
|
18
|
+
return U;
|
|
19
|
+
} };
|
|
20
|
+
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function E(v, o, b, e, y, g) {
|
|
24
|
+
const d = m("el-switch"), u = m("el-form-item"), V = m("el-option"), s = m("el-select"), S = m("el-input-number"), z = m("el-form"), k = m("VECommonAttr");
|
|
25
|
+
return t(), i("div", { class: "attr-list" }, [
|
|
26
|
+
a(k, {
|
|
27
|
+
"page-id": e.props.pageId,
|
|
28
|
+
"form-size": e.props.formSize
|
|
29
|
+
}, {
|
|
30
|
+
default: r(() => [
|
|
31
|
+
a(z, {
|
|
32
|
+
size: e.props.formSize,
|
|
33
|
+
"label-width": "100px",
|
|
34
|
+
"label-position": "left",
|
|
35
|
+
style: { padding: "10px" }
|
|
36
|
+
}, {
|
|
37
|
+
default: r(() => [
|
|
38
|
+
a(u, {
|
|
39
|
+
label: "禁用",
|
|
40
|
+
title: "是否禁用单选框"
|
|
41
|
+
}, {
|
|
42
|
+
default: r(() => [
|
|
43
|
+
a(d, {
|
|
44
|
+
modelValue: e.propValue.disabled,
|
|
45
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.propValue.disabled = l)
|
|
46
|
+
}, null, 8, ["modelValue"])
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}),
|
|
50
|
+
p(),
|
|
51
|
+
a(u, {
|
|
52
|
+
label: "边框",
|
|
53
|
+
title: "是否显示边框"
|
|
54
|
+
}, {
|
|
55
|
+
default: r(() => [
|
|
56
|
+
a(d, {
|
|
57
|
+
modelValue: e.propValue.border,
|
|
58
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.propValue.border = l)
|
|
59
|
+
}, null, 8, ["modelValue"])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}),
|
|
63
|
+
p(),
|
|
64
|
+
a(u, {
|
|
65
|
+
label: "自定义",
|
|
66
|
+
title: "自定义字体等"
|
|
67
|
+
}, {
|
|
68
|
+
default: r(() => [
|
|
69
|
+
a(d, {
|
|
70
|
+
modelValue: e.propValue.custom,
|
|
71
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.propValue.custom = l)
|
|
72
|
+
}, null, 8, ["modelValue"])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
p(),
|
|
77
|
+
e.propValue.custom ? f("", !0) : (t(), n(u, {
|
|
78
|
+
key: 0,
|
|
79
|
+
label: "大小"
|
|
80
|
+
}, {
|
|
81
|
+
default: r(() => [
|
|
82
|
+
a(s, {
|
|
83
|
+
modelValue: e.propValue.size,
|
|
84
|
+
"onUpdate:modelValue": o[3] || (o[3] = (l) => e.propValue.size = l),
|
|
85
|
+
placeholder: "请选择",
|
|
86
|
+
class: "common-item"
|
|
87
|
+
}, {
|
|
88
|
+
default: r(() => [
|
|
89
|
+
(t(!0), i(_, null, c(e.elementSizeArr, (l) => (t(), n(V, {
|
|
90
|
+
key: l.value,
|
|
91
|
+
label: l.label,
|
|
92
|
+
value: l.value
|
|
93
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["modelValue"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})),
|
|
100
|
+
p(),
|
|
101
|
+
e.propValue.custom ? (t(), n(u, {
|
|
102
|
+
key: 1,
|
|
103
|
+
label: "字体大小",
|
|
104
|
+
title: "字体大小"
|
|
105
|
+
}, {
|
|
106
|
+
default: r(() => [
|
|
107
|
+
a(S, {
|
|
108
|
+
modelValue: e.propValue.fontSize,
|
|
109
|
+
"onUpdate:modelValue": o[4] || (o[4] = (l) => e.propValue.fontSize = l),
|
|
110
|
+
precision: 0,
|
|
111
|
+
step: 1,
|
|
112
|
+
min: 1,
|
|
113
|
+
class: "common-item"
|
|
114
|
+
}, null, 8, ["modelValue"])
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})) : f("", !0),
|
|
118
|
+
p(),
|
|
119
|
+
e.propValue.custom ? (t(), n(u, {
|
|
120
|
+
key: 2,
|
|
121
|
+
label: "字体粗细"
|
|
122
|
+
}, {
|
|
123
|
+
default: r(() => [
|
|
124
|
+
a(s, {
|
|
125
|
+
modelValue: e.propValue.fontWeight,
|
|
126
|
+
"onUpdate:modelValue": o[5] || (o[5] = (l) => e.propValue.fontWeight = l),
|
|
127
|
+
placeholder: "请选择",
|
|
128
|
+
class: "common-item"
|
|
129
|
+
}, {
|
|
130
|
+
default: r(() => [
|
|
131
|
+
(t(!0), i(_, null, c(e.fontWeightArr, (l) => (t(), n(V, {
|
|
132
|
+
key: l.value,
|
|
133
|
+
label: l.label,
|
|
134
|
+
value: l.value
|
|
135
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["modelValue"])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
})) : f("", !0),
|
|
142
|
+
p(),
|
|
143
|
+
e.propValue.custom ? (t(), n(u, {
|
|
144
|
+
key: 3,
|
|
145
|
+
label: "字体"
|
|
146
|
+
}, {
|
|
147
|
+
default: r(() => [
|
|
148
|
+
a(s, {
|
|
149
|
+
modelValue: e.propValue.fontFamily,
|
|
150
|
+
"onUpdate:modelValue": o[6] || (o[6] = (l) => e.propValue.fontFamily = l),
|
|
151
|
+
placeholder: "请选择",
|
|
152
|
+
class: "common-item"
|
|
153
|
+
}, {
|
|
154
|
+
default: r(() => [
|
|
155
|
+
(t(!0), i(_, null, c(e.fontFamilyArr, (l) => (t(), n(V, {
|
|
156
|
+
key: l.value,
|
|
157
|
+
label: l.label,
|
|
158
|
+
value: l.value
|
|
159
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["modelValue"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
})) : f("", !0),
|
|
166
|
+
p(),
|
|
167
|
+
e.propValue.custom ? (t(), n(u, {
|
|
168
|
+
key: 4,
|
|
169
|
+
label: "字体样式"
|
|
170
|
+
}, {
|
|
171
|
+
default: r(() => [
|
|
172
|
+
a(s, {
|
|
173
|
+
modelValue: e.propValue.fontStyle,
|
|
174
|
+
"onUpdate:modelValue": o[7] || (o[7] = (l) => e.propValue.fontStyle = l),
|
|
175
|
+
placeholder: "请选择",
|
|
176
|
+
class: "common-item"
|
|
177
|
+
}, {
|
|
178
|
+
default: r(() => [
|
|
179
|
+
(t(!0), i(_, null, c(e.fontStyleArr, (l) => (t(), n(V, {
|
|
180
|
+
key: l.value,
|
|
181
|
+
label: l.label,
|
|
182
|
+
value: l.value
|
|
183
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["modelValue"])
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
})) : f("", !0)
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["size"])
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["page-id", "form-size"])
|
|
196
|
+
]);
|
|
197
|
+
}
|
|
198
|
+
const j = /* @__PURE__ */ x(w, [["render", E], ["__scopeId", "data-v-6bff3df6"], ["__file", "Attr.vue"]]);
|
|
199
|
+
export {
|
|
200
|
+
j as default
|
|
201
|
+
};
|