sun-form-v3 1.0.80 → 1.0.82

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- import { resolveComponent as i, openBlock as g, createElementBlock as V, Fragment as b, createVNode as e, withCtx as t, unref as a } from "vue";
2
- const _ = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
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
3
  __name: "index",
4
4
  props: {
5
5
  designer: {
@@ -11,27 +11,28 @@ const _ = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
11
11
  default: {}
12
12
  }
13
13
  },
14
- setup(m) {
15
- let l = m;
16
- return (w, o) => {
17
- const r = i("common-icon-choose"), n = i("common-label-container"), u = i("el-option"), s = i("el-select"), p = i("el-switch");
18
- return g(), V(b, null, [
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, [
19
20
  e(n, { label: "图标选择" }, {
20
- default: t(() => [
21
- e(r, {
22
- modelValue: a(l).widget.props.icon,
23
- "onUpdate:modelValue": o[0] || (o[0] = (d) => a(l).widget.props.icon = d)
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)
24
25
  }, null, 8, ["modelValue"])
25
26
  ]),
26
27
  _: 1
27
28
  }),
28
29
  e(n, { label: "组件尺寸" }, {
29
- default: t(() => [
30
+ default: a(() => [
30
31
  e(s, {
31
- modelValue: a(l).widget.props.size,
32
- "onUpdate:modelValue": o[1] || (o[1] = (d) => a(l).widget.props.size = d)
32
+ modelValue: t(l).widget.props.size,
33
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.size = d)
33
34
  }, {
34
- default: t(() => [
35
+ default: a(() => [
35
36
  e(u, {
36
37
  label: "大尺寸",
37
38
  value: "large"
@@ -51,12 +52,12 @@ const _ = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
51
52
  _: 1
52
53
  }),
53
54
  e(n, { label: "组件对齐" }, {
54
- default: t(() => [
55
+ default: a(() => [
55
56
  e(s, {
56
- modelValue: a(l).widget.props.align,
57
- "onUpdate:modelValue": o[2] || (o[2] = (d) => a(l).widget.props.align = d)
57
+ modelValue: t(l).widget.props.align,
58
+ "onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.align = d)
58
59
  }, {
59
- default: t(() => [
60
+ default: a(() => [
60
61
  e(u, {
61
62
  label: "居左",
62
63
  value: "left"
@@ -76,12 +77,12 @@ const _ = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
76
77
  _: 1
77
78
  }),
78
79
  e(n, { label: "组件类型" }, {
79
- default: t(() => [
80
+ default: a(() => [
80
81
  e(s, {
81
- modelValue: a(l).widget.props.type,
82
- "onUpdate:modelValue": o[3] || (o[3] = (d) => a(l).widget.props.type = d)
82
+ modelValue: t(l).widget.props.type,
83
+ "onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.type = d)
83
84
  }, {
84
- default: t(() => [
85
+ default: a(() => [
85
86
  e(u, {
86
87
  label: "primary",
87
88
  value: "primary"
@@ -109,81 +110,93 @@ const _ = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
109
110
  _: 1
110
111
  }),
111
112
  e(n, { label: "是否朴素按钮" }, {
112
- default: t(() => [
113
+ default: a(() => [
113
114
  e(p, {
114
- modelValue: a(l).widget.props.isPlain,
115
- "onUpdate:modelValue": o[4] || (o[4] = (d) => a(l).widget.props.isPlain = d)
115
+ modelValue: t(l).widget.props.isPlain,
116
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.isPlain = d)
116
117
  }, null, 8, ["modelValue"])
117
118
  ]),
118
119
  _: 1
119
120
  }),
120
121
  e(n, { label: "是否文字按钮" }, {
121
- default: t(() => [
122
+ default: a(() => [
122
123
  e(p, {
123
- modelValue: a(l).widget.props.isText,
124
- "onUpdate:modelValue": o[5] || (o[5] = (d) => a(l).widget.props.isText = d)
124
+ modelValue: t(l).widget.props.isText,
125
+ "onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.isText = d)
125
126
  }, null, 8, ["modelValue"])
126
127
  ]),
127
128
  _: 1
128
129
  }),
129
130
  e(n, { label: "是否背景颜色" }, {
130
- default: t(() => [
131
+ default: a(() => [
131
132
  e(p, {
132
- modelValue: a(l).widget.props.isTextBgColor,
133
- "onUpdate:modelValue": o[6] || (o[6] = (d) => a(l).widget.props.isTextBgColor = d)
133
+ modelValue: t(l).widget.props.isTextBgColor,
134
+ "onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.isTextBgColor = d)
134
135
  }, null, 8, ["modelValue"])
135
136
  ]),
136
137
  _: 1
137
138
  }),
138
139
  e(n, { label: "是否链接按钮" }, {
139
- default: t(() => [
140
+ default: a(() => [
140
141
  e(p, {
141
- modelValue: a(l).widget.props.isLink,
142
- "onUpdate:modelValue": o[7] || (o[7] = (d) => a(l).widget.props.isLink = d)
142
+ modelValue: t(l).widget.props.isLink,
143
+ "onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.isLink = d)
143
144
  }, null, 8, ["modelValue"])
144
145
  ]),
145
146
  _: 1
146
147
  }),
147
148
  e(n, { label: "是否圆角按钮" }, {
148
- default: t(() => [
149
+ default: a(() => [
149
150
  e(p, {
150
- modelValue: a(l).widget.props.isRound,
151
- "onUpdate:modelValue": o[8] || (o[8] = (d) => a(l).widget.props.isRound = d)
151
+ modelValue: t(l).widget.props.isRound,
152
+ "onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).widget.props.isRound = d)
152
153
  }, null, 8, ["modelValue"])
153
154
  ]),
154
155
  _: 1
155
156
  }),
156
157
  e(n, { label: "是否圆形按钮" }, {
157
- default: t(() => [
158
+ default: a(() => [
158
159
  e(p, {
159
- modelValue: a(l).widget.props.isCircle,
160
- "onUpdate:modelValue": o[9] || (o[9] = (d) => a(l).widget.props.isCircle = d)
160
+ modelValue: t(l).widget.props.isCircle,
161
+ "onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).widget.props.isCircle = d)
161
162
  }, null, 8, ["modelValue"])
162
163
  ]),
163
164
  _: 1
164
165
  }),
165
166
  e(n, { label: "是否加载中" }, {
166
- default: t(() => [
167
+ default: a(() => [
167
168
  e(p, {
168
- modelValue: a(l).widget.props.isLoading,
169
- "onUpdate:modelValue": o[10] || (o[10] = (d) => a(l).widget.props.isLoading = d)
169
+ modelValue: t(l).widget.props.isLoading,
170
+ "onUpdate:modelValue": o[10] || (o[10] = (d) => t(l).widget.props.isLoading = d)
170
171
  }, null, 8, ["modelValue"])
171
172
  ]),
172
173
  _: 1
173
174
  }),
174
175
  e(n, { label: "是否禁用" }, {
175
- default: t(() => [
176
+ default: a(() => [
176
177
  e(p, {
177
- modelValue: a(l).widget.props.disabled,
178
- "onUpdate:modelValue": o[11] || (o[11] = (d) => a(l).widget.props.disabled = d)
178
+ modelValue: t(l).widget.props.disabled,
179
+ "onUpdate:modelValue": o[11] || (o[11] = (d) => t(l).widget.props.disabled = d)
179
180
  }, null, 8, ["modelValue"])
180
181
  ]),
181
182
  _: 1
182
- })
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)
183
196
  ], 64);
184
197
  };
185
198
  }
186
199
  });
187
200
  export {
188
- _ as default
201
+ x as default
189
202
  };
@@ -0,0 +1,160 @@
1
+ import { resolveComponent as n, openBlock as m, createElementBlock as f, Fragment as U, createVNode as t, withCtx as d, unref as l, createBlock as g, createCommentVNode as V } from "vue";
2
+ const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
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 (_, o) => {
17
+ const b = n("el-input"), p = n("common-label-container"), u = n("el-radio-button"), w = n("el-radio-group"), r = n("el-switch"), s = n("common-api-config");
18
+ return m(), f(U, null, [
19
+ t(p, { label: "表单高度" }, {
20
+ default: d(() => [
21
+ t(b, {
22
+ modelValue: l(e).widget.props.height,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => l(e).widget.props.height = a),
24
+ placeholder: "填写表单容器高度"
25
+ }, null, 8, ["modelValue"])
26
+ ]),
27
+ _: 1
28
+ }),
29
+ t(p, { label: "提交按钮文字" }, {
30
+ default: d(() => [
31
+ t(b, {
32
+ modelValue: l(e).widget.props.submitButtonText,
33
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => l(e).widget.props.submitButtonText = a),
34
+ placeholder: "填写提交按钮文字"
35
+ }, null, 8, ["modelValue"])
36
+ ]),
37
+ _: 1
38
+ }),
39
+ t(p, { label: "表单类型" }, {
40
+ default: d(() => [
41
+ t(w, {
42
+ modelValue: l(e).widget.props.formType,
43
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => l(e).widget.props.formType = a)
44
+ }, {
45
+ default: d(() => [
46
+ t(u, {
47
+ value: "Create",
48
+ label: "新增"
49
+ }),
50
+ t(u, {
51
+ value: "Update",
52
+ label: "修改"
53
+ }),
54
+ t(u, {
55
+ value: "Detail",
56
+ label: "详情"
57
+ })
58
+ ]),
59
+ _: 1
60
+ }, 8, ["modelValue"])
61
+ ]),
62
+ _: 1
63
+ }),
64
+ t(p, { label: "按钮位置" }, {
65
+ default: d(() => [
66
+ t(w, {
67
+ modelValue: l(e).widget.props.buttonAlign,
68
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => l(e).widget.props.buttonAlign = a)
69
+ }, {
70
+ default: d(() => [
71
+ t(u, {
72
+ value: "left",
73
+ label: "左侧"
74
+ }),
75
+ t(u, {
76
+ value: "right",
77
+ label: "右侧"
78
+ })
79
+ ]),
80
+ _: 1
81
+ }, 8, ["modelValue"])
82
+ ]),
83
+ _: 1
84
+ }),
85
+ t(p, { label: "底部显示底色" }, {
86
+ default: d(() => [
87
+ t(r, {
88
+ modelValue: l(e).widget.props.hasFooterBg,
89
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => l(e).widget.props.hasFooterBg = a)
90
+ }, null, 8, ["modelValue"])
91
+ ]),
92
+ _: 1
93
+ }),
94
+ t(p, { label: "是否显示底部" }, {
95
+ default: d(() => [
96
+ t(r, {
97
+ modelValue: l(e).widget.props.hasFooter,
98
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => l(e).widget.props.hasFooter = a)
99
+ }, null, 8, ["modelValue"])
100
+ ]),
101
+ _: 1
102
+ }),
103
+ t(p, { label: "显示提交按钮" }, {
104
+ default: d(() => [
105
+ t(r, {
106
+ modelValue: l(e).widget.props.hasSubmitButton,
107
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => l(e).widget.props.hasSubmitButton = a)
108
+ }, null, 8, ["modelValue"])
109
+ ]),
110
+ _: 1
111
+ }),
112
+ t(p, { label: "显示重置按钮" }, {
113
+ default: d(() => [
114
+ t(r, {
115
+ modelValue: l(e).widget.props.hasResetButton,
116
+ "onUpdate:modelValue": o[7] || (o[7] = (a) => l(e).widget.props.hasResetButton = a)
117
+ }, null, 8, ["modelValue"])
118
+ ]),
119
+ _: 1
120
+ }),
121
+ t(p, { label: "新增数据" }, {
122
+ default: d(() => [
123
+ l(e).widget.props.apiSetCreate ? (m(), g(s, {
124
+ key: 0,
125
+ designer: i.designer,
126
+ modelValue: l(e).widget.props.apiSetCreate,
127
+ "onUpdate:modelValue": o[8] || (o[8] = (a) => l(e).widget.props.apiSetCreate = a)
128
+ }, null, 8, ["designer", "modelValue"])) : V("", !0)
129
+ ]),
130
+ _: 1
131
+ }),
132
+ t(p, { label: "修改数据" }, {
133
+ default: d(() => [
134
+ l(e).widget.props.apiSetUpdate ? (m(), g(s, {
135
+ key: 0,
136
+ designer: i.designer,
137
+ modelValue: l(e).widget.props.apiSetUpdate,
138
+ "onUpdate:modelValue": o[9] || (o[9] = (a) => l(e).widget.props.apiSetUpdate = a)
139
+ }, null, 8, ["designer", "modelValue"])) : V("", !0)
140
+ ]),
141
+ _: 1
142
+ }),
143
+ t(p, { label: "详情数据" }, {
144
+ default: d(() => [
145
+ l(e).widget.props.apiSetDetail ? (m(), g(s, {
146
+ key: 0,
147
+ designer: i.designer,
148
+ modelValue: l(e).widget.props.apiSetDetail,
149
+ "onUpdate:modelValue": o[10] || (o[10] = (a) => l(e).widget.props.apiSetDetail = a)
150
+ }, null, 8, ["designer", "modelValue"])) : V("", !0)
151
+ ]),
152
+ _: 1
153
+ })
154
+ ], 64);
155
+ };
156
+ }
157
+ });
158
+ export {
159
+ S as default
160
+ };
@@ -0,0 +1,86 @@
1
+ import { resolveComponent as u, openBlock as r, createElementBlock as b, Fragment as g, 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 (V, o) => {
17
+ const s = u("el-option"), m = u("el-select"), n = u("common-label-container"), p = u("el-switch");
18
+ return r(), b(g, null, [
19
+ e(n, { label: "组件尺寸" }, {
20
+ default: a(() => [
21
+ e(m, {
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(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
+ ], 64);
81
+ };
82
+ }
83
+ });
84
+ export {
85
+ f as default
86
+ };
@@ -0,0 +1,86 @@
1
+ import { resolveComponent as u, 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-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(i) {
15
+ let l = i;
16
+ return (b, o) => {
17
+ const s = u("el-option"), r = u("el-select"), n = u("common-label-container"), p = u("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(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
+ ], 64);
81
+ };
82
+ }
83
+ });
84
+ export {
85
+ f as default
86
+ };