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.
Files changed (50) hide show
  1. package/README.md +136 -0
  2. package/dist/cdn.sunform.tech/libs/monaco-editor/min/vs/loader.js +11 -0
  3. package/dist/cdn.sunform.tech/libs/monaco-editor/min-maps/vs/out-editor/vs/loader.js +1898 -0
  4. package/dist/favicon.ico +0 -0
  5. package/dist/index-B0fldwhm.js +99 -0
  6. package/dist/index-B1b5cejN.js +105 -0
  7. package/dist/index-B2ieNi21.js +95 -0
  8. package/dist/index-BAEL_Fhr.js +127 -0
  9. package/dist/index-BFMI5eOW.js +246 -0
  10. package/dist/index-BGxc5ryR.js +25894 -0
  11. package/dist/index-BJ0vPF5A.js +44 -0
  12. package/dist/index-BLCD8R_e.js +834 -0
  13. package/dist/index-BMvtKcYA.js +148 -0
  14. package/dist/index-BV8ZIDLP.js +255135 -0
  15. package/dist/index-BYbxnzUx.js +105 -0
  16. package/dist/index-BZ_40krq.js +265 -0
  17. package/dist/index-BcUJtkEW.js +159 -0
  18. package/dist/index-BkftF1Ew.js +33 -0
  19. package/dist/index-C0NmmaE2.js +252 -0
  20. package/dist/index-C78PiK5v.js +20 -0
  21. package/dist/index-CE0gDB6E.js +140 -0
  22. package/dist/index-CHAFY_vi.js +159 -0
  23. package/dist/index-CIaeKFCl.js +159 -0
  24. package/dist/index-CXNYHPLK.js +43 -0
  25. package/dist/index-CiNAZsvy.js +100 -0
  26. package/dist/index-CifChfEv.js +20 -0
  27. package/dist/index-CjKir6nk.js +280 -0
  28. package/dist/index-CvnfmMTc.js +202 -0
  29. package/dist/index-CzkuANsf.js +20 -0
  30. package/dist/index-D7zr1ztZ.js +73 -0
  31. package/dist/index-DHjsGntq.js +157 -0
  32. package/dist/index-DQ3y00Pa.js +65 -0
  33. package/dist/index-DYFp4hH-.js +95 -0
  34. package/dist/index-Dag4zSq7.js +88 -0
  35. package/dist/index-DnmLceC9.js +281 -0
  36. package/dist/index-Dz10Ntti.js +127 -0
  37. package/dist/index-FVwll8uc.js +124 -0
  38. package/dist/index-HNpIFY7h.js +44 -0
  39. package/dist/index-ZVIqhtUw.js +132 -0
  40. package/dist/index-c0zw96Jm.js +139 -0
  41. package/dist/index-dGJDj4ro.js +97 -0
  42. package/dist/index-kUQct_cM.js +172 -0
  43. package/dist/index-kzElMYkk.js +256 -0
  44. package/dist/index-nY_E-1Gm.js +180 -0
  45. package/dist/index-zkXVDNsL.js +184 -0
  46. package/dist/js/loader.js +11 -0
  47. package/dist/style.css +1 -0
  48. package/dist/sun-form-v3.es.js +4 -0
  49. package/dist/sun-form-v3.umd.js +7064 -0
  50. package/package.json +62 -0
@@ -0,0 +1,202 @@
1
+ import { resolveComponent as i, openBlock as m, createElementBlock as b, Fragment as f, createVNode as e, withCtx as a, unref as t, createBlock as U, createCommentVNode as _ } from "vue";
2
+ const x = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(g) {
15
+ let l = g;
16
+ const V = (r) => !!l.widget.props.hasOwnProperty(r);
17
+ return (r, o) => {
18
+ const w = i("common-icon-choose"), n = i("common-label-container"), u = i("el-option"), s = i("el-select"), p = i("el-switch");
19
+ return m(), b(f, null, [
20
+ e(n, { label: "图标选择" }, {
21
+ default: a(() => [
22
+ e(w, {
23
+ modelValue: t(l).widget.props.icon,
24
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.icon = d)
25
+ }, null, 8, ["modelValue"])
26
+ ]),
27
+ _: 1
28
+ }),
29
+ e(n, { label: "组件尺寸" }, {
30
+ default: a(() => [
31
+ e(s, {
32
+ modelValue: t(l).widget.props.size,
33
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.size = d)
34
+ }, {
35
+ default: a(() => [
36
+ e(u, {
37
+ label: "大尺寸",
38
+ value: "large"
39
+ }),
40
+ e(u, {
41
+ label: "默认",
42
+ value: "default"
43
+ }),
44
+ e(u, {
45
+ label: "小尺寸",
46
+ value: "small"
47
+ })
48
+ ]),
49
+ _: 1
50
+ }, 8, ["modelValue"])
51
+ ]),
52
+ _: 1
53
+ }),
54
+ e(n, { label: "组件对齐" }, {
55
+ default: a(() => [
56
+ e(s, {
57
+ modelValue: t(l).widget.props.align,
58
+ "onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.align = d)
59
+ }, {
60
+ default: a(() => [
61
+ e(u, {
62
+ label: "居左",
63
+ value: "left"
64
+ }),
65
+ e(u, {
66
+ label: "居中",
67
+ value: "center"
68
+ }),
69
+ e(u, {
70
+ label: "居右",
71
+ value: "right"
72
+ })
73
+ ]),
74
+ _: 1
75
+ }, 8, ["modelValue"])
76
+ ]),
77
+ _: 1
78
+ }),
79
+ e(n, { label: "组件类型" }, {
80
+ default: a(() => [
81
+ e(s, {
82
+ modelValue: t(l).widget.props.type,
83
+ "onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.type = d)
84
+ }, {
85
+ default: a(() => [
86
+ e(u, {
87
+ label: "primary",
88
+ value: "primary"
89
+ }),
90
+ e(u, {
91
+ label: "success",
92
+ value: "success"
93
+ }),
94
+ e(u, {
95
+ label: "info",
96
+ value: "info"
97
+ }),
98
+ e(u, {
99
+ label: "warning",
100
+ value: "warning"
101
+ }),
102
+ e(u, {
103
+ label: "danger",
104
+ value: "danger"
105
+ })
106
+ ]),
107
+ _: 1
108
+ }, 8, ["modelValue"])
109
+ ]),
110
+ _: 1
111
+ }),
112
+ e(n, { label: "是否朴素按钮" }, {
113
+ default: a(() => [
114
+ e(p, {
115
+ modelValue: t(l).widget.props.isPlain,
116
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.isPlain = d)
117
+ }, null, 8, ["modelValue"])
118
+ ]),
119
+ _: 1
120
+ }),
121
+ e(n, { label: "是否文字按钮" }, {
122
+ default: a(() => [
123
+ e(p, {
124
+ modelValue: t(l).widget.props.isText,
125
+ "onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.isText = d)
126
+ }, null, 8, ["modelValue"])
127
+ ]),
128
+ _: 1
129
+ }),
130
+ e(n, { label: "是否背景颜色" }, {
131
+ default: a(() => [
132
+ e(p, {
133
+ modelValue: t(l).widget.props.isTextBgColor,
134
+ "onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.isTextBgColor = d)
135
+ }, null, 8, ["modelValue"])
136
+ ]),
137
+ _: 1
138
+ }),
139
+ e(n, { label: "是否链接按钮" }, {
140
+ default: a(() => [
141
+ e(p, {
142
+ modelValue: t(l).widget.props.isLink,
143
+ "onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.isLink = d)
144
+ }, null, 8, ["modelValue"])
145
+ ]),
146
+ _: 1
147
+ }),
148
+ e(n, { label: "是否圆角按钮" }, {
149
+ default: a(() => [
150
+ e(p, {
151
+ modelValue: t(l).widget.props.isRound,
152
+ "onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).widget.props.isRound = d)
153
+ }, null, 8, ["modelValue"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ e(n, { label: "是否圆形按钮" }, {
158
+ default: a(() => [
159
+ e(p, {
160
+ modelValue: t(l).widget.props.isCircle,
161
+ "onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).widget.props.isCircle = d)
162
+ }, null, 8, ["modelValue"])
163
+ ]),
164
+ _: 1
165
+ }),
166
+ e(n, { label: "是否加载中" }, {
167
+ default: a(() => [
168
+ e(p, {
169
+ modelValue: t(l).widget.props.isLoading,
170
+ "onUpdate:modelValue": o[10] || (o[10] = (d) => t(l).widget.props.isLoading = d)
171
+ }, null, 8, ["modelValue"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ e(n, { label: "是否禁用" }, {
176
+ default: a(() => [
177
+ e(p, {
178
+ modelValue: t(l).widget.props.disabled,
179
+ "onUpdate:modelValue": o[11] || (o[11] = (d) => t(l).widget.props.disabled = d)
180
+ }, null, 8, ["modelValue"])
181
+ ]),
182
+ _: 1
183
+ }),
184
+ V("isSide") ? (m(), U(n, {
185
+ key: 0,
186
+ label: "是否侧边按钮"
187
+ }, {
188
+ default: a(() => [
189
+ e(p, {
190
+ modelValue: t(l).widget.props.isSide,
191
+ "onUpdate:modelValue": o[12] || (o[12] = (d) => t(l).widget.props.isSide = d)
192
+ }, null, 8, ["modelValue"])
193
+ ]),
194
+ _: 1
195
+ })) : _("", !0)
196
+ ], 64);
197
+ };
198
+ }
199
+ });
200
+ export {
201
+ x as default
202
+ };
@@ -0,0 +1,20 @@
1
+ import "vue";
2
+ const r = /* @__PURE__ */ Object.assign({ name: "config-codeEditor" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(e) {
15
+ return (t, n) => null;
16
+ }
17
+ });
18
+ export {
19
+ r as default
20
+ };
@@ -0,0 +1,73 @@
1
+ import { resolveComponent as m, openBlock as r, createElementBlock as s, Fragment as g, createVNode as o, withCtx as n, unref as t } from "vue";
2
+ const w = /* @__PURE__ */ Object.assign({ name: "config-modal2" }, {
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 e = i;
16
+ return (V, l) => {
17
+ const p = m("el-input"), a = m("common-label-container"), u = m("el-switch");
18
+ return r(), s(g, null, [
19
+ o(a, { label: "弹窗标题" }, {
20
+ default: n(() => [
21
+ o(p, {
22
+ modelValue: t(e).widget.props.title,
23
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => t(e).widget.props.title = d),
24
+ placeholder: "填写弹窗标题"
25
+ }, null, 8, ["modelValue"])
26
+ ]),
27
+ _: 1
28
+ }),
29
+ o(a, { label: "弹窗宽度" }, {
30
+ default: n(() => [
31
+ o(p, {
32
+ modelValue: t(e).widget.props.modalWidth,
33
+ "onUpdate:modelValue": l[1] || (l[1] = (d) => t(e).widget.props.modalWidth = d),
34
+ placeholder: "填写弹窗宽度"
35
+ }, null, 8, ["modelValue"])
36
+ ]),
37
+ _: 1
38
+ }),
39
+ o(a, { label: "弹窗高度" }, {
40
+ default: n(() => [
41
+ o(p, {
42
+ modelValue: t(e).widget.props.modalHeight,
43
+ "onUpdate:modelValue": l[2] || (l[2] = (d) => t(e).widget.props.modalHeight = d),
44
+ placeholder: "填写弹窗高度"
45
+ }, null, 8, ["modelValue"])
46
+ ]),
47
+ _: 1
48
+ }),
49
+ o(a, { label: "是否显示按钮栏" }, {
50
+ default: n(() => [
51
+ o(u, {
52
+ modelValue: t(e).widget.props.hasFooter,
53
+ "onUpdate:modelValue": l[3] || (l[3] = (d) => t(e).widget.props.hasFooter = d)
54
+ }, null, 8, ["modelValue"])
55
+ ]),
56
+ _: 1
57
+ }),
58
+ o(a, { label: "是否隐藏确定键" }, {
59
+ default: n(() => [
60
+ o(u, {
61
+ modelValue: t(e).widget.props.hideConfirm,
62
+ "onUpdate:modelValue": l[4] || (l[4] = (d) => t(e).widget.props.hideConfirm = d)
63
+ }, null, 8, ["modelValue"])
64
+ ]),
65
+ _: 1
66
+ })
67
+ ], 64);
68
+ };
69
+ }
70
+ });
71
+ export {
72
+ w as default
73
+ };
@@ -0,0 +1,157 @@
1
+ import { ref as V, resolveComponent as d, openBlock as b, createElementBlock as _, Fragment as c, createVNode as e, withCtx as p, unref as t } from "vue";
2
+ const U = /* @__PURE__ */ Object.assign({ name: "config-qrcode" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(f) {
15
+ let l = f;
16
+ const u = V([
17
+ "#ff4500",
18
+ "#ff8c00",
19
+ "#ffd700",
20
+ "#90ee90",
21
+ "#00ced1",
22
+ "#1e90ff",
23
+ "#c71585",
24
+ "#000000",
25
+ "#ffffff",
26
+ "rgba(255, 69, 0, 0.68)",
27
+ "rgb(255, 120, 0)",
28
+ "hsv(51, 100, 98)",
29
+ "hsva(120, 40, 94, 0.5)",
30
+ "hsl(181, 100%, 37%)",
31
+ "hsla(209, 100%, 56%, 0.73)",
32
+ "#c7158577"
33
+ ]);
34
+ return (v, o) => {
35
+ const s = d("el-input"), n = d("common-label-container"), i = d("el-input-number"), m = d("el-color-picker"), r = d("el-option"), g = d("el-select"), w = d("el-switch");
36
+ return b(), _(c, null, [
37
+ e(n, { label: "二维码内容" }, {
38
+ default: p(() => [
39
+ e(s, {
40
+ modelValue: t(l).widget.props.value,
41
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.value = a),
42
+ placeholder: "请输入二维码内容",
43
+ type: "textarea",
44
+ rows: 3
45
+ }, null, 8, ["modelValue"])
46
+ ]),
47
+ _: 1
48
+ }),
49
+ e(n, { label: "二维码尺寸" }, {
50
+ default: p(() => [
51
+ e(i, {
52
+ class: "w-full",
53
+ modelValue: t(l).widget.props.size,
54
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.size = a),
55
+ min: 50,
56
+ max: 500,
57
+ step: 10,
58
+ "controls-position": "right",
59
+ placeholder: "二维码尺寸(像素)"
60
+ }, null, 8, ["modelValue"])
61
+ ]),
62
+ _: 1
63
+ }),
64
+ e(n, { label: "背景颜色" }, {
65
+ default: p(() => [
66
+ e(m, {
67
+ modelValue: t(l).widget.props.bgColor,
68
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.bgColor = a),
69
+ "show-alpha": "",
70
+ predefine: u.value
71
+ }, null, 8, ["modelValue", "predefine"])
72
+ ]),
73
+ _: 1
74
+ }),
75
+ e(n, { label: "前景颜色" }, {
76
+ default: p(() => [
77
+ e(m, {
78
+ modelValue: t(l).widget.props.fgColor,
79
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.fgColor = a),
80
+ "show-alpha": "",
81
+ predefine: u.value
82
+ }, null, 8, ["modelValue", "predefine"])
83
+ ]),
84
+ _: 1
85
+ }),
86
+ e(n, { label: "纠错级别" }, {
87
+ default: p(() => [
88
+ e(g, {
89
+ modelValue: t(l).widget.props.level,
90
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.level = a),
91
+ placeholder: "选择纠错级别"
92
+ }, {
93
+ default: p(() => [
94
+ e(r, {
95
+ label: "低(L)",
96
+ value: "L"
97
+ }),
98
+ e(r, {
99
+ label: "中(M)",
100
+ value: "M"
101
+ }),
102
+ e(r, {
103
+ label: "较高(Q)",
104
+ value: "Q"
105
+ }),
106
+ e(r, {
107
+ label: "高(H)",
108
+ value: "H"
109
+ })
110
+ ]),
111
+ _: 1
112
+ }, 8, ["modelValue"])
113
+ ]),
114
+ _: 1
115
+ }),
116
+ e(n, { label: "边距" }, {
117
+ default: p(() => [
118
+ e(i, {
119
+ class: "w-full",
120
+ modelValue: t(l).widget.props.margin,
121
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.margin = a),
122
+ min: 0,
123
+ max: 10,
124
+ "controls-position": "right",
125
+ placeholder: "二维码边距"
126
+ }, null, 8, ["modelValue"])
127
+ ]),
128
+ _: 1
129
+ }),
130
+ e(n, { label: "是否隐藏" }, {
131
+ default: p(() => [
132
+ e(w, {
133
+ modelValue: t(l).widget.props.hide,
134
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.hide = a)
135
+ }, null, 8, ["modelValue"])
136
+ ]),
137
+ _: 1
138
+ }),
139
+ e(n, { label: "备注说明" }, {
140
+ default: p(() => [
141
+ e(s, {
142
+ modelValue: t(l).widget.props.remark,
143
+ "onUpdate:modelValue": o[7] || (o[7] = (a) => t(l).widget.props.remark = a),
144
+ placeholder: "填写备注说明",
145
+ type: "textarea",
146
+ rows: 2
147
+ }, null, 8, ["modelValue"])
148
+ ]),
149
+ _: 1
150
+ })
151
+ ], 64);
152
+ };
153
+ }
154
+ });
155
+ export {
156
+ U as default
157
+ };
@@ -0,0 +1,65 @@
1
+ import { resolveComponent as r, openBlock as i, createElementBlock as m, Fragment as s, createVNode as o, withCtx as d, unref as t } from "vue";
2
+ const V = /* @__PURE__ */ Object.assign({ name: "config-transfer" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(u) {
15
+ let e = u;
16
+ return (g, l) => {
17
+ const n = r("el-input"), a = r("common-label-container");
18
+ return i(), m(s, null, [
19
+ o(a, { label: "左侧标题" }, {
20
+ default: d(() => [
21
+ o(n, {
22
+ modelValue: t(e).widget.props.leftTitle,
23
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => t(e).widget.props.leftTitle = p),
24
+ placeholder: "填写备选项"
25
+ }, null, 8, ["modelValue"])
26
+ ]),
27
+ _: 1
28
+ }),
29
+ o(a, { label: "右侧标题" }, {
30
+ default: d(() => [
31
+ o(n, {
32
+ modelValue: t(e).widget.props.rightTitle,
33
+ "onUpdate:modelValue": l[1] || (l[1] = (p) => t(e).widget.props.rightTitle = p),
34
+ placeholder: "填写已选项"
35
+ }, null, 8, ["modelValue"])
36
+ ]),
37
+ _: 1
38
+ }),
39
+ o(a, { label: "数据源真实值" }, {
40
+ default: d(() => [
41
+ o(n, {
42
+ modelValue: t(e).widget.props.propsKey,
43
+ "onUpdate:modelValue": l[2] || (l[2] = (p) => t(e).widget.props.propsKey = p),
44
+ placeholder: "填写数据源真实值"
45
+ }, null, 8, ["modelValue"])
46
+ ]),
47
+ _: 1
48
+ }),
49
+ o(a, { label: "数据源显示值" }, {
50
+ default: d(() => [
51
+ o(n, {
52
+ modelValue: t(e).widget.props.propsLabel,
53
+ "onUpdate:modelValue": l[3] || (l[3] = (p) => t(e).widget.props.propsLabel = p),
54
+ placeholder: "填写数据源显示值"
55
+ }, null, 8, ["modelValue"])
56
+ ]),
57
+ _: 1
58
+ })
59
+ ], 64);
60
+ };
61
+ }
62
+ });
63
+ export {
64
+ V as default
65
+ };
@@ -0,0 +1,95 @@
1
+ import { resolveComponent as u, openBlock as m, createElementBlock as V, Fragment as b, createVNode as e, withCtx as a, unref as t } from "vue";
2
+ const f = /* @__PURE__ */ Object.assign({ name: "config-radio" }, {
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 (g, o) => {
17
+ const r = u("el-option"), i = u("el-select"), n = u("common-label-container"), p = u("el-switch");
18
+ return m(), V(b, null, [
19
+ e(n, { label: "组件尺寸" }, {
20
+ default: a(() => [
21
+ e(i, {
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(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: a(() => [
46
+ e(p, {
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(p, {
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(p, {
65
+ modelValue: t(l).widget.props.required,
66
+ "onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.required = d)
67
+ }, null, 8, ["modelValue"])
68
+ ]),
69
+ _: 1
70
+ }),
71
+ e(n, { label: "是否禁用" }, {
72
+ default: a(() => [
73
+ e(p, {
74
+ modelValue: t(l).widget.props.disabled,
75
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.disabled = d)
76
+ }, null, 8, ["modelValue"])
77
+ ]),
78
+ _: 1
79
+ }),
80
+ e(n, { label: "是否边框" }, {
81
+ default: a(() => [
82
+ e(p, {
83
+ modelValue: t(l).widget.props.border,
84
+ "onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.border = d)
85
+ }, null, 8, ["modelValue"])
86
+ ]),
87
+ _: 1
88
+ })
89
+ ], 64);
90
+ };
91
+ }
92
+ });
93
+ export {
94
+ f as default
95
+ };
@@ -0,0 +1,88 @@
1
+ import { resolveComponent as p, openBlock as c, createElementBlock as _, Fragment as g, createVNode as e, withCtx as n, unref as o } from "vue";
2
+ const w = /* @__PURE__ */ Object.assign({ name: "config-switch" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(r) {
15
+ let l = r;
16
+ return (V, t) => {
17
+ const u = p("el-option"), m = p("el-select"), d = p("common-label-container"), i = p("el-input"), s = p("el-switch");
18
+ return c(), _(g, null, [
19
+ e(d, { label: "组件尺寸" }, {
20
+ default: n(() => [
21
+ e(m, {
22
+ modelValue: o(l).widget.props.size,
23
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => o(l).widget.props.size = a)
24
+ }, {
25
+ default: n(() => [
26
+ e(u, {
27
+ label: "大尺寸",
28
+ value: "large"
29
+ }),
30
+ e(u, {
31
+ label: "默认",
32
+ value: "default"
33
+ }),
34
+ e(u, {
35
+ label: "小尺寸",
36
+ value: "small"
37
+ })
38
+ ]),
39
+ _: 1
40
+ }, 8, ["modelValue"])
41
+ ]),
42
+ _: 1
43
+ }),
44
+ e(d, { label: "打开文字" }, {
45
+ default: n(() => [
46
+ e(i, {
47
+ modelValue: o(l).widget.props.activeText,
48
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).widget.props.activeText = a),
49
+ placeholder: "填写打开文字"
50
+ }, null, 8, ["modelValue"])
51
+ ]),
52
+ _: 1
53
+ }),
54
+ e(d, { label: "关闭文字" }, {
55
+ default: n(() => [
56
+ e(i, {
57
+ modelValue: o(l).widget.props.inactiveText,
58
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).widget.props.inactiveText = a),
59
+ placeholder: "填写关闭文字"
60
+ }, null, 8, ["modelValue"])
61
+ ]),
62
+ _: 1
63
+ }),
64
+ e(d, { label: "是否禁用" }, {
65
+ default: n(() => [
66
+ e(s, {
67
+ modelValue: o(l).widget.props.disabled,
68
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).widget.props.disabled = a)
69
+ }, null, 8, ["modelValue"])
70
+ ]),
71
+ _: 1
72
+ }),
73
+ e(d, { label: "是否必填" }, {
74
+ default: n(() => [
75
+ e(s, {
76
+ modelValue: o(l).widget.props.required,
77
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => o(l).widget.props.required = a)
78
+ }, null, 8, ["modelValue"])
79
+ ]),
80
+ _: 1
81
+ })
82
+ ], 64);
83
+ };
84
+ }
85
+ });
86
+ export {
87
+ w as default
88
+ };