sun-form-v3 1.0.79 → 1.0.81

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,139 @@
1
+ import { resolveComponent as r, openBlock as m, createElementBlock as w, Fragment as b, createVNode as e, withCtx as d, unref as o, createBlock as V, createCommentVNode as c } from "vue";
2
+ const v = /* @__PURE__ */ Object.assign({ name: "config-progress" }, {
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
+ return (f, t) => {
17
+ const n = r("el-option"), i = r("el-select"), p = r("common-label-container"), s = r("el-input-number"), u = r("el-switch");
18
+ return m(), w(b, null, [
19
+ e(p, { label: "组件状态" }, {
20
+ default: d(() => [
21
+ e(i, {
22
+ modelValue: o(l).widget.props.color,
23
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => o(l).widget.props.color = a)
24
+ }, {
25
+ default: d(() => [
26
+ e(n, {
27
+ label: "primary",
28
+ value: "#409EFF"
29
+ }),
30
+ e(n, {
31
+ label: "success",
32
+ value: "#67C23A"
33
+ }),
34
+ e(n, {
35
+ label: "warning",
36
+ value: "#E6A23C"
37
+ }),
38
+ e(n, {
39
+ label: "danger",
40
+ value: "#F56C6C"
41
+ }),
42
+ e(n, {
43
+ label: "info",
44
+ value: "#909399"
45
+ })
46
+ ]),
47
+ _: 1
48
+ }, 8, ["modelValue"])
49
+ ]),
50
+ _: 1
51
+ }),
52
+ e(p, { label: "组件类型" }, {
53
+ default: d(() => [
54
+ e(i, {
55
+ modelValue: o(l).widget.props.type,
56
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).widget.props.type = a)
57
+ }, {
58
+ default: d(() => [
59
+ e(n, {
60
+ label: "直线",
61
+ value: "line"
62
+ }),
63
+ e(n, {
64
+ label: "圆环",
65
+ value: "circle"
66
+ }),
67
+ e(n, {
68
+ label: "仪表盘",
69
+ value: "dashboard"
70
+ })
71
+ ]),
72
+ _: 1
73
+ }, 8, ["modelValue"])
74
+ ]),
75
+ _: 1
76
+ }),
77
+ e(p, { label: "进度条宽" }, {
78
+ default: d(() => [
79
+ e(s, {
80
+ class: "w-full",
81
+ placeholder: "填写进度条宽",
82
+ modelValue: o(l).widget.props.strokeWidth,
83
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).widget.props.strokeWidth = a),
84
+ min: 0,
85
+ "controls-position": "right"
86
+ }, null, 8, ["modelValue"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ e(p, { label: "文字是否在内" }, {
91
+ default: d(() => [
92
+ e(u, {
93
+ modelValue: o(l).widget.props.textInside,
94
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).widget.props.textInside = a)
95
+ }, null, 8, ["modelValue"])
96
+ ]),
97
+ _: 1
98
+ }),
99
+ e(p, { label: "是否有条纹" }, {
100
+ default: d(() => [
101
+ e(u, {
102
+ modelValue: o(l).widget.props.hasStriped,
103
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => o(l).widget.props.hasStriped = a)
104
+ }, null, 8, ["modelValue"])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ e(p, { label: "条纹是否流动" }, {
109
+ default: d(() => [
110
+ e(u, {
111
+ modelValue: o(l).widget.props.hasStripedFlow,
112
+ "onUpdate:modelValue": t[5] || (t[5] = (a) => o(l).widget.props.hasStripedFlow = a)
113
+ }, null, 8, ["modelValue"])
114
+ ]),
115
+ _: 1
116
+ }),
117
+ o(l).widget.props.type !== "line" ? (m(), V(p, {
118
+ key: 0,
119
+ label: "画布宽度"
120
+ }, {
121
+ default: d(() => [
122
+ e(s, {
123
+ class: "w-full",
124
+ placeholder: "填写画布宽度",
125
+ modelValue: o(l).widget.props.circleWidth,
126
+ "onUpdate:modelValue": t[6] || (t[6] = (a) => o(l).widget.props.circleWidth = a),
127
+ min: 0,
128
+ "controls-position": "right"
129
+ }, null, 8, ["modelValue"])
130
+ ]),
131
+ _: 1
132
+ })) : c("", !0)
133
+ ], 64);
134
+ };
135
+ }
136
+ });
137
+ export {
138
+ v as default
139
+ };
@@ -0,0 +1,113 @@
1
+ import { resolveComponent as n, openBlock as V, createElementBlock as b, Fragment as w, createVNode as e, withCtx as d, unref as t } from "vue";
2
+ const c = /* @__PURE__ */ Object.assign({ name: "config-selects" }, {
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 (_, o) => {
17
+ const u = n("el-option"), r = n("el-select"), p = n("common-label-container"), i = n("el-input-number"), g = n("el-input"), s = n("el-switch");
18
+ return V(), b(w, null, [
19
+ e(p, { label: "组件尺寸" }, {
20
+ default: d(() => [
21
+ e(r, {
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(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(p, { label: "最多可选" }, {
45
+ default: d(() => [
46
+ e(i, {
47
+ class: "w-full",
48
+ placeholder: "填写最多可选个数",
49
+ modelValue: t(l).widget.props.multipleLimit,
50
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.multipleLimit = a),
51
+ min: 0,
52
+ "controls-position": "right"
53
+ }, null, 8, ["modelValue"])
54
+ ]),
55
+ _: 1
56
+ }),
57
+ e(p, { label: "超出个数合并" }, {
58
+ default: d(() => [
59
+ e(i, {
60
+ class: "w-full",
61
+ placeholder: "填写超出多少条目合并",
62
+ modelValue: t(l).widget.props.maxCollapseTags,
63
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.maxCollapseTags = a),
64
+ min: 0,
65
+ "controls-position": "right"
66
+ }, null, 8, ["modelValue"])
67
+ ]),
68
+ _: 1
69
+ }),
70
+ e(p, { label: "占位文字" }, {
71
+ default: d(() => [
72
+ e(g, {
73
+ modelValue: t(l).widget.props.placeholder,
74
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.placeholder = a),
75
+ placeholder: "填写占位文字"
76
+ }, null, 8, ["modelValue"])
77
+ ]),
78
+ _: 1
79
+ }),
80
+ e(p, { label: "是否必填" }, {
81
+ default: d(() => [
82
+ e(s, {
83
+ modelValue: t(l).widget.props.required,
84
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.required = a)
85
+ }, null, 8, ["modelValue"])
86
+ ]),
87
+ _: 1
88
+ }),
89
+ e(p, { label: "是否可清除" }, {
90
+ default: d(() => [
91
+ e(s, {
92
+ modelValue: t(l).widget.props.clearable,
93
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.clearable = a)
94
+ }, null, 8, ["modelValue"])
95
+ ]),
96
+ _: 1
97
+ }),
98
+ e(p, { label: "是否禁用" }, {
99
+ default: d(() => [
100
+ e(s, {
101
+ modelValue: t(l).widget.props.disabled,
102
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.disabled = a)
103
+ }, null, 8, ["modelValue"])
104
+ ]),
105
+ _: 1
106
+ })
107
+ ], 64);
108
+ };
109
+ }
110
+ });
111
+ export {
112
+ c as default
113
+ };
@@ -0,0 +1,184 @@
1
+ import { resolveComponent as m, openBlock as V, createElementBlock as g, Fragment as b, createVNode as e, withCtx as t, unref as a } from "vue";
2
+ const _ = /* @__PURE__ */ Object.assign({ name: "config-time" }, {
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 (w, o) => {
17
+ const u = m("el-option"), r = m("el-select"), p = m("common-label-container"), s = m("el-input"), n = m("el-switch");
18
+ return V(), g(b, null, [
19
+ e(p, { label: "组件尺寸" }, {
20
+ default: t(() => [
21
+ e(r, {
22
+ modelValue: a(l).widget.props.size,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(l).widget.props.size = d)
24
+ }, {
25
+ default: t(() => [
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(p, { label: "组件类型" }, {
45
+ default: t(() => [
46
+ e(r, {
47
+ modelValue: a(l).widget.props.type,
48
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => a(l).widget.props.type = d)
49
+ }, {
50
+ default: t(() => [
51
+ e(u, {
52
+ label: "时间",
53
+ value: "time"
54
+ }),
55
+ e(u, {
56
+ label: "时间区间",
57
+ value: "timerange"
58
+ })
59
+ ]),
60
+ _: 1
61
+ }, 8, ["modelValue"])
62
+ ]),
63
+ _: 1
64
+ }),
65
+ e(p, { label: "显示格式" }, {
66
+ default: t(() => [
67
+ e(r, {
68
+ modelValue: a(l).widget.props.format,
69
+ "onUpdate:modelValue": o[2] || (o[2] = (d) => a(l).widget.props.format = d)
70
+ }, {
71
+ default: t(() => [
72
+ e(u, {
73
+ label: "HH:mm:ss",
74
+ value: "HH:mm:ss"
75
+ }),
76
+ e(u, {
77
+ label: "hh:mm:ss",
78
+ value: "hh:mm:ss"
79
+ }),
80
+ e(u, {
81
+ label: "HH时mm分ss秒",
82
+ value: "HH时mm分ss秒"
83
+ })
84
+ ]),
85
+ _: 1
86
+ }, 8, ["modelValue"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ e(p, { label: "输出格式" }, {
91
+ default: t(() => [
92
+ e(r, {
93
+ modelValue: a(l).widget.props.valueFormat,
94
+ "onUpdate:modelValue": o[3] || (o[3] = (d) => a(l).widget.props.valueFormat = d)
95
+ }, {
96
+ default: t(() => [
97
+ e(u, {
98
+ label: "HH:mm:ss",
99
+ value: "HH:mm:ss"
100
+ }),
101
+ e(u, {
102
+ label: "hh:mm:ss",
103
+ value: "hh:mm:ss"
104
+ })
105
+ ]),
106
+ _: 1
107
+ }, 8, ["modelValue"])
108
+ ]),
109
+ _: 1
110
+ }),
111
+ e(p, { label: "分隔符" }, {
112
+ default: t(() => [
113
+ e(s, {
114
+ modelValue: a(l).widget.props.rangeSeparator,
115
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => a(l).widget.props.rangeSeparator = d),
116
+ placeholder: "填写分隔符"
117
+ }, null, 8, ["modelValue"])
118
+ ]),
119
+ _: 1
120
+ }),
121
+ e(p, { label: "开始占位内容" }, {
122
+ default: t(() => [
123
+ e(s, {
124
+ modelValue: a(l).widget.props.startPlaceholder,
125
+ "onUpdate:modelValue": o[5] || (o[5] = (d) => a(l).widget.props.startPlaceholder = d),
126
+ placeholder: "填写开始占位内容"
127
+ }, null, 8, ["modelValue"])
128
+ ]),
129
+ _: 1
130
+ }),
131
+ e(p, { label: "结束占位内容" }, {
132
+ default: t(() => [
133
+ e(s, {
134
+ modelValue: a(l).widget.props.endPlaceholder,
135
+ "onUpdate:modelValue": o[6] || (o[6] = (d) => a(l).widget.props.endPlaceholder = d),
136
+ placeholder: "填写结束占位内容"
137
+ }, null, 8, ["modelValue"])
138
+ ]),
139
+ _: 1
140
+ }),
141
+ e(p, { label: "占位文字" }, {
142
+ default: t(() => [
143
+ e(s, {
144
+ modelValue: a(l).widget.props.placeholder,
145
+ "onUpdate:modelValue": o[7] || (o[7] = (d) => a(l).widget.props.placeholder = d),
146
+ placeholder: "填写占位文字"
147
+ }, null, 8, ["modelValue"])
148
+ ]),
149
+ _: 1
150
+ }),
151
+ e(p, { label: "是否必填" }, {
152
+ default: t(() => [
153
+ e(n, {
154
+ modelValue: a(l).widget.props.required,
155
+ "onUpdate:modelValue": o[8] || (o[8] = (d) => a(l).widget.props.required = d)
156
+ }, null, 8, ["modelValue"])
157
+ ]),
158
+ _: 1
159
+ }),
160
+ e(p, { label: "是否只读" }, {
161
+ default: t(() => [
162
+ e(n, {
163
+ modelValue: a(l).widget.props.readonly,
164
+ "onUpdate:modelValue": o[9] || (o[9] = (d) => a(l).widget.props.readonly = d)
165
+ }, null, 8, ["modelValue"])
166
+ ]),
167
+ _: 1
168
+ }),
169
+ e(p, { label: "是否禁用" }, {
170
+ default: t(() => [
171
+ e(n, {
172
+ modelValue: a(l).widget.props.disabled,
173
+ "onUpdate:modelValue": o[10] || (o[10] = (d) => a(l).widget.props.disabled = d)
174
+ }, null, 8, ["modelValue"])
175
+ ]),
176
+ _: 1
177
+ })
178
+ ], 64);
179
+ };
180
+ }
181
+ });
182
+ export {
183
+ _ as default
184
+ };