zforg 1.0.1
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 +136 -0
- package/dist/cdn.sunform.tech/libs/monaco-editor/min/vs/loader.js +11 -0
- package/dist/cdn.sunform.tech/libs/monaco-editor/min-maps/vs/out-editor/vs/loader.js +1898 -0
- package/dist/favicon.ico +0 -0
- package/dist/index-B0fldwhm.js +99 -0
- package/dist/index-B1b5cejN.js +105 -0
- package/dist/index-B2ieNi21.js +95 -0
- package/dist/index-BAEL_Fhr.js +127 -0
- package/dist/index-BFMI5eOW.js +246 -0
- package/dist/index-BGxc5ryR.js +25894 -0
- package/dist/index-BJ0vPF5A.js +44 -0
- package/dist/index-BLCD8R_e.js +834 -0
- package/dist/index-BMvtKcYA.js +148 -0
- package/dist/index-BV8ZIDLP.js +255135 -0
- package/dist/index-BYbxnzUx.js +105 -0
- package/dist/index-BZ_40krq.js +265 -0
- package/dist/index-BcUJtkEW.js +159 -0
- package/dist/index-BkftF1Ew.js +33 -0
- package/dist/index-C0NmmaE2.js +252 -0
- package/dist/index-C78PiK5v.js +20 -0
- package/dist/index-CE0gDB6E.js +140 -0
- package/dist/index-CHAFY_vi.js +159 -0
- package/dist/index-CIaeKFCl.js +159 -0
- package/dist/index-CXNYHPLK.js +43 -0
- package/dist/index-CiNAZsvy.js +100 -0
- package/dist/index-CifChfEv.js +20 -0
- package/dist/index-CjKir6nk.js +280 -0
- package/dist/index-CvnfmMTc.js +202 -0
- package/dist/index-CzkuANsf.js +20 -0
- package/dist/index-D7zr1ztZ.js +73 -0
- package/dist/index-DHjsGntq.js +157 -0
- package/dist/index-DQ3y00Pa.js +65 -0
- package/dist/index-DYFp4hH-.js +95 -0
- package/dist/index-Dag4zSq7.js +88 -0
- package/dist/index-DnmLceC9.js +281 -0
- package/dist/index-Dz10Ntti.js +127 -0
- package/dist/index-FVwll8uc.js +124 -0
- package/dist/index-HNpIFY7h.js +44 -0
- package/dist/index-ZVIqhtUw.js +132 -0
- package/dist/index-c0zw96Jm.js +139 -0
- package/dist/index-dGJDj4ro.js +97 -0
- package/dist/index-kUQct_cM.js +172 -0
- package/dist/index-kzElMYkk.js +256 -0
- package/dist/index-nY_E-1Gm.js +180 -0
- package/dist/index-zkXVDNsL.js +184 -0
- package/dist/js/loader.js +11 -0
- package/dist/style.css +1 -0
- package/dist/sun-form-v3.es.js +4 -0
- package/dist/sun-form-v3.umd.js +7064 -0
- package/package.json +62 -0
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { resolveComponent as p, openBlock as w, createElementBlock as g, Fragment as V, createVNode as e, withCtx as d, unref as t } from "vue";
|
|
2
|
+
const _ = /* @__PURE__ */ Object.assign({ name: "config-rate" }, {
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
designer: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: {}
|
|
8
|
+
},
|
|
9
|
+
widget: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: {}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(s) {
|
|
15
|
+
let l = s;
|
|
16
|
+
return (b, o) => {
|
|
17
|
+
const r = p("el-option"), m = p("el-select"), n = p("common-label-container"), i = p("el-input-number"), u = p("el-switch");
|
|
18
|
+
return w(), g(V, null, [
|
|
19
|
+
e(n, { label: "组件尺寸" }, {
|
|
20
|
+
default: d(() => [
|
|
21
|
+
e(m, {
|
|
22
|
+
modelValue: t(l).widget.props.size,
|
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.size = a)
|
|
24
|
+
}, {
|
|
25
|
+
default: d(() => [
|
|
26
|
+
e(r, {
|
|
27
|
+
label: "大尺寸",
|
|
28
|
+
value: "large"
|
|
29
|
+
}),
|
|
30
|
+
e(r, {
|
|
31
|
+
label: "默认",
|
|
32
|
+
value: "default"
|
|
33
|
+
}),
|
|
34
|
+
e(r, {
|
|
35
|
+
label: "小尺寸",
|
|
36
|
+
value: "small"
|
|
37
|
+
})
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["modelValue"])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}),
|
|
44
|
+
e(n, { label: "最大分值" }, {
|
|
45
|
+
default: d(() => [
|
|
46
|
+
e(i, {
|
|
47
|
+
class: "w-full",
|
|
48
|
+
placeholder: "填写最大输入长度",
|
|
49
|
+
modelValue: t(l).widget.props.max,
|
|
50
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.max = a),
|
|
51
|
+
min: 0,
|
|
52
|
+
"controls-position": "right"
|
|
53
|
+
}, null, 8, ["modelValue"])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
e(n, { label: "是否禁用" }, {
|
|
58
|
+
default: d(() => [
|
|
59
|
+
e(u, {
|
|
60
|
+
modelValue: t(l).widget.props.disabled,
|
|
61
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.disabled = a)
|
|
62
|
+
}, null, 8, ["modelValue"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}),
|
|
66
|
+
e(n, { label: "是否可半选" }, {
|
|
67
|
+
default: d(() => [
|
|
68
|
+
e(u, {
|
|
69
|
+
modelValue: t(l).widget.props.allowHalf,
|
|
70
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.allowHalf = a)
|
|
71
|
+
}, null, 8, ["modelValue"])
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
e(n, { label: "是否显示分数" }, {
|
|
76
|
+
default: d(() => [
|
|
77
|
+
e(u, {
|
|
78
|
+
modelValue: t(l).widget.props.showScore,
|
|
79
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.showScore = a)
|
|
80
|
+
}, null, 8, ["modelValue"])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}),
|
|
84
|
+
e(n, { label: "是否必填" }, {
|
|
85
|
+
default: d(() => [
|
|
86
|
+
e(u, {
|
|
87
|
+
modelValue: t(l).widget.props.required,
|
|
88
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.required = a)
|
|
89
|
+
}, null, 8, ["modelValue"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
], 64);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
_ as default
|
|
99
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { resolveComponent as u, openBlock as V, createElementBlock as g, Fragment as w, createVNode as e, withCtx as d, unref as t } from "vue";
|
|
2
|
+
const _ = /* @__PURE__ */ Object.assign({ name: "config-select" }, {
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
designer: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: {}
|
|
8
|
+
},
|
|
9
|
+
widget: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: {}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(s) {
|
|
15
|
+
let l = s;
|
|
16
|
+
return (b, o) => {
|
|
17
|
+
const r = u("el-option"), m = u("el-select"), p = u("common-label-container"), i = u("el-input"), n = u("el-switch");
|
|
18
|
+
return V(), g(w, null, [
|
|
19
|
+
e(p, { label: "组件尺寸" }, {
|
|
20
|
+
default: d(() => [
|
|
21
|
+
e(m, {
|
|
22
|
+
modelValue: t(l).widget.props.size,
|
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.size = a)
|
|
24
|
+
}, {
|
|
25
|
+
default: d(() => [
|
|
26
|
+
e(r, {
|
|
27
|
+
label: "大尺寸",
|
|
28
|
+
value: "large"
|
|
29
|
+
}),
|
|
30
|
+
e(r, {
|
|
31
|
+
label: "默认",
|
|
32
|
+
value: "default"
|
|
33
|
+
}),
|
|
34
|
+
e(r, {
|
|
35
|
+
label: "小尺寸",
|
|
36
|
+
value: "small"
|
|
37
|
+
})
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["modelValue"])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}),
|
|
44
|
+
e(p, { label: "占位文字" }, {
|
|
45
|
+
default: d(() => [
|
|
46
|
+
e(i, {
|
|
47
|
+
modelValue: t(l).widget.props.placeholder,
|
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.placeholder = a),
|
|
49
|
+
placeholder: "填写占位文字"
|
|
50
|
+
}, null, 8, ["modelValue"])
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}),
|
|
54
|
+
e(p, { label: "是否必填" }, {
|
|
55
|
+
default: d(() => [
|
|
56
|
+
e(n, {
|
|
57
|
+
modelValue: t(l).widget.props.required,
|
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.required = a)
|
|
59
|
+
}, null, 8, ["modelValue"])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}),
|
|
63
|
+
e(p, { label: "下拉显示值" }, {
|
|
64
|
+
default: d(() => [
|
|
65
|
+
e(n, {
|
|
66
|
+
modelValue: t(l).widget.props.showKeyValue,
|
|
67
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.showKeyValue = a)
|
|
68
|
+
}, null, 8, ["modelValue"])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
e(p, { label: "显示值反转" }, {
|
|
73
|
+
default: d(() => [
|
|
74
|
+
e(n, {
|
|
75
|
+
modelValue: t(l).widget.props.keyValueReverse,
|
|
76
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.keyValueReverse = a)
|
|
77
|
+
}, null, 8, ["modelValue"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
81
|
+
e(p, { label: "是否可清除" }, {
|
|
82
|
+
default: d(() => [
|
|
83
|
+
e(n, {
|
|
84
|
+
modelValue: t(l).widget.props.clearable,
|
|
85
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.clearable = a)
|
|
86
|
+
}, null, 8, ["modelValue"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}),
|
|
90
|
+
e(p, { label: "是否禁用" }, {
|
|
91
|
+
default: d(() => [
|
|
92
|
+
e(n, {
|
|
93
|
+
modelValue: t(l).widget.props.disabled,
|
|
94
|
+
"onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.disabled = a)
|
|
95
|
+
}, null, 8, ["modelValue"])
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
})
|
|
99
|
+
], 64);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
_ as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { resolveComponent as p, openBlock as m, createElementBlock as g, Fragment as V, createVNode as e, withCtx as a, unref as t } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ Object.assign({ name: "config-checkbox" }, {
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
designer: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: {}
|
|
8
|
+
},
|
|
9
|
+
widget: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: {}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(i) {
|
|
15
|
+
let l = i;
|
|
16
|
+
return (b, o) => {
|
|
17
|
+
const s = p("el-option"), r = p("el-select"), n = p("common-label-container"), u = p("el-switch");
|
|
18
|
+
return m(), g(V, null, [
|
|
19
|
+
e(n, { label: "组件尺寸" }, {
|
|
20
|
+
default: a(() => [
|
|
21
|
+
e(r, {
|
|
22
|
+
modelValue: t(l).widget.props.size,
|
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
|
|
24
|
+
}, {
|
|
25
|
+
default: a(() => [
|
|
26
|
+
e(s, {
|
|
27
|
+
label: "大尺寸",
|
|
28
|
+
value: "large"
|
|
29
|
+
}),
|
|
30
|
+
e(s, {
|
|
31
|
+
label: "默认",
|
|
32
|
+
value: "default"
|
|
33
|
+
}),
|
|
34
|
+
e(s, {
|
|
35
|
+
label: "小尺寸",
|
|
36
|
+
value: "small"
|
|
37
|
+
})
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["modelValue"])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}),
|
|
44
|
+
e(n, { label: "是否按钮" }, {
|
|
45
|
+
default: a(() => [
|
|
46
|
+
e(u, {
|
|
47
|
+
modelValue: t(l).widget.props.isButton,
|
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.isButton = d)
|
|
49
|
+
}, null, 8, ["modelValue"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}),
|
|
53
|
+
e(n, { label: "是否块状" }, {
|
|
54
|
+
default: a(() => [
|
|
55
|
+
e(u, {
|
|
56
|
+
modelValue: t(l).widget.props.isBlock,
|
|
57
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.isBlock = d)
|
|
58
|
+
}, null, 8, ["modelValue"])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}),
|
|
62
|
+
e(n, { label: "值为字符串" }, {
|
|
63
|
+
default: a(() => [
|
|
64
|
+
e(u, {
|
|
65
|
+
modelValue: t(l).widget.props.valueAsString,
|
|
66
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.valueAsString = d)
|
|
67
|
+
}, null, 8, ["modelValue"])
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}),
|
|
71
|
+
e(n, { label: "是否必填" }, {
|
|
72
|
+
default: a(() => [
|
|
73
|
+
e(u, {
|
|
74
|
+
modelValue: t(l).widget.props.required,
|
|
75
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.required = d)
|
|
76
|
+
}, null, 8, ["modelValue"])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
e(n, { label: "是否禁用" }, {
|
|
81
|
+
default: a(() => [
|
|
82
|
+
e(u, {
|
|
83
|
+
modelValue: t(l).widget.props.disabled,
|
|
84
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.disabled = d)
|
|
85
|
+
}, null, 8, ["modelValue"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
], 64);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
export {
|
|
94
|
+
f as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { resolveComponent as p, openBlock as f, createElementBlock as b, Fragment as c, createVNode as e, withCtx as n, unref as o } from "vue";
|
|
2
|
+
const g = /* @__PURE__ */ Object.assign({ name: "config-div" }, {
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
designer: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: {}
|
|
8
|
+
},
|
|
9
|
+
widget: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: {}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(m) {
|
|
15
|
+
let l = m;
|
|
16
|
+
return (w, t) => {
|
|
17
|
+
const i = p("el-switch"), d = p("common-label-container"), u = p("el-radio-button"), s = p("el-radio-group"), r = p("el-radio");
|
|
18
|
+
return f(), b(c, null, [
|
|
19
|
+
e(d, { label: "是否弹性布局" }, {
|
|
20
|
+
default: n(() => [
|
|
21
|
+
e(i, {
|
|
22
|
+
modelValue: o(l).widget.props.flex,
|
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => o(l).widget.props.flex = a)
|
|
24
|
+
}, null, 8, ["modelValue"])
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
}),
|
|
28
|
+
e(d, { label: "是否弹性换行" }, {
|
|
29
|
+
default: n(() => [
|
|
30
|
+
e(i, {
|
|
31
|
+
modelValue: o(l).widget.props.flexWrap,
|
|
32
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).widget.props.flexWrap = a)
|
|
33
|
+
}, null, 8, ["modelValue"])
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
}),
|
|
37
|
+
e(d, { label: "弹性方向" }, {
|
|
38
|
+
default: n(() => [
|
|
39
|
+
e(s, {
|
|
40
|
+
modelValue: o(l).widget.props.flexDirection,
|
|
41
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).widget.props.flexDirection = a)
|
|
42
|
+
}, {
|
|
43
|
+
default: n(() => [
|
|
44
|
+
e(u, {
|
|
45
|
+
value: "row",
|
|
46
|
+
label: "row"
|
|
47
|
+
}),
|
|
48
|
+
e(u, {
|
|
49
|
+
value: "column",
|
|
50
|
+
label: "column"
|
|
51
|
+
})
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["modelValue"])
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}),
|
|
58
|
+
e(d, { label: "横向对齐" }, {
|
|
59
|
+
default: n(() => [
|
|
60
|
+
e(s, {
|
|
61
|
+
modelValue: o(l).widget.props.alignItems,
|
|
62
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).widget.props.alignItems = a)
|
|
63
|
+
}, {
|
|
64
|
+
default: n(() => [
|
|
65
|
+
e(u, {
|
|
66
|
+
value: "center",
|
|
67
|
+
label: "center"
|
|
68
|
+
}),
|
|
69
|
+
e(u, {
|
|
70
|
+
value: "flex-start",
|
|
71
|
+
label: "start"
|
|
72
|
+
}),
|
|
73
|
+
e(u, {
|
|
74
|
+
value: "flex-end",
|
|
75
|
+
label: "end"
|
|
76
|
+
})
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["modelValue"])
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}),
|
|
83
|
+
e(d, { label: "纵向对齐" }, {
|
|
84
|
+
default: n(() => [
|
|
85
|
+
e(s, {
|
|
86
|
+
modelValue: o(l).widget.props.justifyContent,
|
|
87
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => o(l).widget.props.justifyContent = a)
|
|
88
|
+
}, {
|
|
89
|
+
default: n(() => [
|
|
90
|
+
e(r, {
|
|
91
|
+
class: "w-full",
|
|
92
|
+
value: "space-between",
|
|
93
|
+
label: "between"
|
|
94
|
+
}),
|
|
95
|
+
e(r, {
|
|
96
|
+
class: "w-full",
|
|
97
|
+
value: "space-around",
|
|
98
|
+
label: "around"
|
|
99
|
+
}),
|
|
100
|
+
e(r, {
|
|
101
|
+
class: "w-full",
|
|
102
|
+
value: "center",
|
|
103
|
+
label: "center"
|
|
104
|
+
}),
|
|
105
|
+
e(r, {
|
|
106
|
+
class: "w-full",
|
|
107
|
+
value: "flex-start",
|
|
108
|
+
label: "start"
|
|
109
|
+
}),
|
|
110
|
+
e(r, {
|
|
111
|
+
class: "w-full",
|
|
112
|
+
value: "flex-end",
|
|
113
|
+
label: "end"
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["modelValue"])
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
})
|
|
121
|
+
], 64);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
export {
|
|
126
|
+
g as default
|
|
127
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
|
|
2
|
+
import { ae as E } from "./index-BV8ZIDLP.js";
|
|
3
|
+
const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
|
|
4
|
+
__name: "dataConfig",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: [Object, null],
|
|
7
|
+
widget: {
|
|
8
|
+
type: Object
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(v, { emit: a }) {
|
|
13
|
+
let w = v;
|
|
14
|
+
const o = S(() => w.widget.props);
|
|
15
|
+
let s = C(!1);
|
|
16
|
+
const n = C([]), _ = (x) => {
|
|
17
|
+
n.value.splice(x, 1);
|
|
18
|
+
}, V = () => {
|
|
19
|
+
n.value.push({
|
|
20
|
+
title: null,
|
|
21
|
+
value: null,
|
|
22
|
+
key: null,
|
|
23
|
+
unit: null
|
|
24
|
+
});
|
|
25
|
+
}, g = () => {
|
|
26
|
+
o.value.data && (n.value = JSON.parse(JSON.stringify(o.value.data))), s.value = !0;
|
|
27
|
+
}, d = () => {
|
|
28
|
+
s.value = !1;
|
|
29
|
+
}, z = () => {
|
|
30
|
+
o.value.data = JSON.parse(JSON.stringify(n.value)), s.value = !1;
|
|
31
|
+
};
|
|
32
|
+
return (x, t) => {
|
|
33
|
+
const r = u("el-button"), y = u("el-input"), b = u("vxe-column"), N = u("vxe-table"), j = u("vxe-modal");
|
|
34
|
+
return k(), O(U, null, [
|
|
35
|
+
e(r, {
|
|
36
|
+
plain: "",
|
|
37
|
+
icon: "Setting",
|
|
38
|
+
onClick: g,
|
|
39
|
+
type: o.value.data.length ? "primary" : ""
|
|
40
|
+
}, {
|
|
41
|
+
default: l(() => [...t[1] || (t[1] = [
|
|
42
|
+
f(" 数据配置 ", -1)
|
|
43
|
+
])]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["type"]),
|
|
46
|
+
e(j, {
|
|
47
|
+
transfer: "",
|
|
48
|
+
modelValue: i(s),
|
|
49
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => J(s) ? s.value = p : s = p),
|
|
50
|
+
width: "830px",
|
|
51
|
+
height: "700px",
|
|
52
|
+
"show-footer": "",
|
|
53
|
+
onClose: d
|
|
54
|
+
}, {
|
|
55
|
+
title: l(() => [...t[2] || (t[2] = [
|
|
56
|
+
c("span", null, "数据配置", -1)
|
|
57
|
+
])]),
|
|
58
|
+
default: l(() => [
|
|
59
|
+
c("div", H, [
|
|
60
|
+
e(r, {
|
|
61
|
+
type: "primary",
|
|
62
|
+
class: "w-16 mb-2",
|
|
63
|
+
onClick: V
|
|
64
|
+
}, {
|
|
65
|
+
default: l(() => [...t[3] || (t[3] = [
|
|
66
|
+
f("新增", -1)
|
|
67
|
+
])]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
c("div", B, [
|
|
71
|
+
e(N, {
|
|
72
|
+
ref: "mainTable",
|
|
73
|
+
data: n.value,
|
|
74
|
+
height: "auto",
|
|
75
|
+
"row-config": { isCurrent: !0, isHover: !0 },
|
|
76
|
+
size: "mini",
|
|
77
|
+
border: "",
|
|
78
|
+
"scroll-y": { enabled: !0 },
|
|
79
|
+
"column-config": { resizable: !0 },
|
|
80
|
+
align: "left",
|
|
81
|
+
class: "w-full"
|
|
82
|
+
}, {
|
|
83
|
+
default: l(() => [
|
|
84
|
+
e(b, {
|
|
85
|
+
field: "title",
|
|
86
|
+
title: "标题"
|
|
87
|
+
}, {
|
|
88
|
+
default: l(({ row: p }) => [
|
|
89
|
+
c("div", null, [
|
|
90
|
+
e(y, {
|
|
91
|
+
modelValue: p.title,
|
|
92
|
+
"onUpdate:modelValue": (m) => p.title = m
|
|
93
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}),
|
|
98
|
+
e(b, {
|
|
99
|
+
field: "value",
|
|
100
|
+
title: "描述"
|
|
101
|
+
}, {
|
|
102
|
+
default: l(({ row: p }) => [
|
|
103
|
+
c("div", null, [
|
|
104
|
+
e(y, {
|
|
105
|
+
modelValue: p.description,
|
|
106
|
+
"onUpdate:modelValue": (m) => p.description = m
|
|
107
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
108
|
+
])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
e(b, {
|
|
113
|
+
title: "操作栏",
|
|
114
|
+
width: "60",
|
|
115
|
+
align: "center"
|
|
116
|
+
}, {
|
|
117
|
+
default: l(({ row: p, rowIndex: m }) => [
|
|
118
|
+
e(r, {
|
|
119
|
+
link: "",
|
|
120
|
+
type: "primary",
|
|
121
|
+
size: "small",
|
|
122
|
+
onClick: (D) => _(m)
|
|
123
|
+
}, {
|
|
124
|
+
default: l(() => [...t[4] || (t[4] = [
|
|
125
|
+
f("删除", -1)
|
|
126
|
+
])]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["onClick"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["data"])
|
|
135
|
+
])
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
footer: l(() => [
|
|
139
|
+
e(r, {
|
|
140
|
+
icon: "Close",
|
|
141
|
+
size: "small",
|
|
142
|
+
onClick: d
|
|
143
|
+
}, {
|
|
144
|
+
default: l(() => [...t[5] || (t[5] = [
|
|
145
|
+
f("关闭", -1)
|
|
146
|
+
])]),
|
|
147
|
+
_: 1
|
|
148
|
+
}),
|
|
149
|
+
e(r, {
|
|
150
|
+
icon: "Check",
|
|
151
|
+
type: "primary",
|
|
152
|
+
size: "small",
|
|
153
|
+
onClick: z
|
|
154
|
+
}, {
|
|
155
|
+
default: l(() => [...t[6] || (t[6] = [
|
|
156
|
+
f("确认", -1)
|
|
157
|
+
])]),
|
|
158
|
+
_: 1
|
|
159
|
+
})
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["modelValue"])
|
|
163
|
+
], 64);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}, h = /* @__PURE__ */ E(T, [["__scopeId", "data-v-be0d5f0b"]]), M = /* @__PURE__ */ Object.assign({ name: "config-steps" }, {
|
|
167
|
+
__name: "index",
|
|
168
|
+
props: {
|
|
169
|
+
designer: {
|
|
170
|
+
type: Object,
|
|
171
|
+
default: {}
|
|
172
|
+
},
|
|
173
|
+
widget: {
|
|
174
|
+
type: Object,
|
|
175
|
+
default: {}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
setup(v) {
|
|
179
|
+
let a = v;
|
|
180
|
+
return (w, o) => {
|
|
181
|
+
const s = u("el-input"), n = u("common-label-container"), _ = u("el-radio-button"), V = u("el-radio-group"), g = u("el-switch");
|
|
182
|
+
return k(), O(U, null, [
|
|
183
|
+
e(n, { label: "间距" }, {
|
|
184
|
+
default: l(() => [
|
|
185
|
+
e(s, {
|
|
186
|
+
modelValue: i(a).widget.props.space,
|
|
187
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => i(a).widget.props.space = d),
|
|
188
|
+
placeholder: "填写间距"
|
|
189
|
+
}, null, 8, ["modelValue"])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}),
|
|
193
|
+
e(n, { label: "显示方向" }, {
|
|
194
|
+
default: l(() => [
|
|
195
|
+
e(V, {
|
|
196
|
+
modelValue: i(a).widget.props.direction,
|
|
197
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => i(a).widget.props.direction = d)
|
|
198
|
+
}, {
|
|
199
|
+
default: l(() => [
|
|
200
|
+
e(_, {
|
|
201
|
+
value: "horizontal",
|
|
202
|
+
label: "horizontal"
|
|
203
|
+
}),
|
|
204
|
+
e(_, {
|
|
205
|
+
value: "vertical",
|
|
206
|
+
label: "vertical"
|
|
207
|
+
})
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["modelValue"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}),
|
|
214
|
+
e(n, { label: "是否居中对齐" }, {
|
|
215
|
+
default: l(() => [
|
|
216
|
+
e(g, {
|
|
217
|
+
modelValue: i(a).widget.props.alignCenter,
|
|
218
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => i(a).widget.props.alignCenter = d)
|
|
219
|
+
}, null, 8, ["modelValue"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}),
|
|
223
|
+
e(n, { label: "是否简洁风格" }, {
|
|
224
|
+
default: l(() => [
|
|
225
|
+
e(g, {
|
|
226
|
+
modelValue: i(a).widget.props.simple,
|
|
227
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => i(a).widget.props.simple = d)
|
|
228
|
+
}, null, 8, ["modelValue"])
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}),
|
|
232
|
+
e(n, { label: "步骤数据" }, {
|
|
233
|
+
default: l(() => [
|
|
234
|
+
e(h, {
|
|
235
|
+
widget: i(a).widget
|
|
236
|
+
}, null, 8, ["widget"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
})
|
|
240
|
+
], 64);
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
export {
|
|
245
|
+
M as default
|
|
246
|
+
};
|