sun-form-v3 1.0.89 → 1.0.92

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,127 @@
1
+ import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
2
+ import { e as E, i as M } from "./index-DAk2H32-.js";
3
+ const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
4
+ __name: "chartChoose",
5
+ props: {
6
+ modelValue: [String, null],
7
+ default: null
8
+ },
9
+ emits: ["update:modelValue"],
10
+ setup(h, { emit: d }) {
11
+ const w = d, c = h, n = j({
12
+ get() {
13
+ return c.modelValue;
14
+ },
15
+ set(l) {
16
+ w("update:modelValue", l);
17
+ }
18
+ }), i = g([]), k = (l, e) => {
19
+ n.value = e, a.value = !1;
20
+ }, a = g(!1), y = (l, e, s) => {
21
+ l && !i[s] && U(() => {
22
+ const m = M(l);
23
+ m.setOption(e, null, {
24
+ renderer: "svg",
25
+ useDirtyRect: !0
26
+ }), i[s] = m;
27
+ });
28
+ };
29
+ return $(() => {
30
+ }), (l, e) => {
31
+ const s = f("el-button"), m = f("el-input"), O = f("vxe-modal");
32
+ return _(), v(x, null, [
33
+ r(m, {
34
+ modelValue: n.value,
35
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => n.value = t),
36
+ placeholder: "请选择图表",
37
+ readonly: ""
38
+ }, {
39
+ append: o(() => [
40
+ r(s, {
41
+ onClick: e[0] || (e[0] = (t) => a.value = !0)
42
+ }, {
43
+ default: o(() => [
44
+ C("选择")
45
+ ]),
46
+ _: 1
47
+ })
48
+ ]),
49
+ _: 1
50
+ }, 8, ["modelValue"]),
51
+ r(O, {
52
+ transfer: "",
53
+ modelValue: a.value,
54
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => a.value = t),
55
+ width: "80%",
56
+ height: "80%",
57
+ "show-footer": ""
58
+ }, {
59
+ title: o(() => [
60
+ R
61
+ ]),
62
+ default: o(() => [
63
+ u("div", S, [
64
+ (_(!0), v(x, null, B(V(E), (t, p) => (_(), v("div", {
65
+ key: p,
66
+ class: "w-1/4 h-80 p-1",
67
+ onClick: (b) => k(t, p)
68
+ }, [
69
+ u("div", z, [
70
+ u("div", {
71
+ class: "chart flex-1 w-full p-1",
72
+ ref_for: !0,
73
+ ref: (b) => y(b, t, p)
74
+ }, null, 512),
75
+ u("div", F, N(p), 1)
76
+ ])
77
+ ], 8, T))), 128))
78
+ ])
79
+ ]),
80
+ footer: o(() => [
81
+ r(s, {
82
+ icon: "Close",
83
+ size: "small",
84
+ onClick: e[2] || (e[2] = (t) => a.value = !1)
85
+ }, {
86
+ default: o(() => [
87
+ C("关闭")
88
+ ]),
89
+ _: 1
90
+ })
91
+ ]),
92
+ _: 1
93
+ }, 8, ["modelValue"])
94
+ ], 64);
95
+ };
96
+ }
97
+ }), G = /* @__PURE__ */ Object.assign({ name: "config-echarts" }, {
98
+ __name: "index",
99
+ props: {
100
+ designer: {
101
+ type: Object,
102
+ default: {}
103
+ },
104
+ widget: {
105
+ type: Object,
106
+ default: {}
107
+ }
108
+ },
109
+ setup(h) {
110
+ let d = h;
111
+ return (w, c) => {
112
+ const n = f("common-label-container");
113
+ return _(), D(n, { label: "图表类型" }, {
114
+ default: o(() => [
115
+ r(L, {
116
+ modelValue: V(d).widget.props.type,
117
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => V(d).widget.props.type = i)
118
+ }, null, 8, ["modelValue"])
119
+ ]),
120
+ _: 1
121
+ });
122
+ };
123
+ }
124
+ });
125
+ export {
126
+ G as default
127
+ };
@@ -0,0 +1,132 @@
1
+ import { resolveComponent as u, openBlock as g, createElementBlock as V, Fragment as w, createVNode as e, withCtx as d, unref as t } from "vue";
2
+ const c = /* @__PURE__ */ Object.assign({ name: "config-alert" }, {
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 (f, o) => {
17
+ const p = u("el-option"), i = u("el-select"), n = u("common-label-container"), r = u("el-input"), s = u("el-switch");
18
+ return g(), V(w, null, [
19
+ e(n, { label: "警告类型" }, {
20
+ default: d(() => [
21
+ e(i, {
22
+ modelValue: t(l).widget.props.type,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.type = a)
24
+ }, {
25
+ default: d(() => [
26
+ e(p, {
27
+ label: "info",
28
+ value: "info"
29
+ }),
30
+ e(p, {
31
+ label: "success",
32
+ value: "success"
33
+ }),
34
+ e(p, {
35
+ label: "warning",
36
+ value: "warning"
37
+ }),
38
+ e(p, {
39
+ label: "error",
40
+ value: "error"
41
+ })
42
+ ]),
43
+ _: 1
44
+ }, 8, ["modelValue"])
45
+ ]),
46
+ _: 1
47
+ }),
48
+ e(n, { label: "主题类型" }, {
49
+ default: d(() => [
50
+ e(i, {
51
+ modelValue: t(l).widget.props.effect,
52
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).widget.props.effect = a)
53
+ }, {
54
+ default: d(() => [
55
+ e(p, {
56
+ label: "light",
57
+ value: "light"
58
+ }),
59
+ e(p, {
60
+ label: "dark",
61
+ value: "dark"
62
+ })
63
+ ]),
64
+ _: 1
65
+ }, 8, ["modelValue"])
66
+ ]),
67
+ _: 1
68
+ }),
69
+ e(n, { label: "标题文字" }, {
70
+ default: d(() => [
71
+ e(r, {
72
+ modelValue: t(l).widget.props.title,
73
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.title = a),
74
+ placeholder: "填写标题文字"
75
+ }, null, 8, ["modelValue"])
76
+ ]),
77
+ _: 1
78
+ }),
79
+ e(n, { label: "描述文字" }, {
80
+ default: d(() => [
81
+ e(r, {
82
+ modelValue: t(l).widget.props.description,
83
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.description = a),
84
+ placeholder: "填写描述文字"
85
+ }, null, 8, ["modelValue"])
86
+ ]),
87
+ _: 1
88
+ }),
89
+ e(n, { label: "是否有图标" }, {
90
+ default: d(() => [
91
+ e(s, {
92
+ modelValue: t(l).widget.props.showIcon,
93
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.showIcon = a)
94
+ }, null, 8, ["modelValue"])
95
+ ]),
96
+ _: 1
97
+ }),
98
+ e(n, { label: "是否有居中" }, {
99
+ default: d(() => [
100
+ e(s, {
101
+ modelValue: t(l).widget.props.center,
102
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.center = a)
103
+ }, null, 8, ["modelValue"])
104
+ ]),
105
+ _: 1
106
+ }),
107
+ e(n, { label: "是否可关闭" }, {
108
+ default: d(() => [
109
+ e(s, {
110
+ modelValue: t(l).widget.props.closable,
111
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).widget.props.closable = a)
112
+ }, null, 8, ["modelValue"])
113
+ ]),
114
+ _: 1
115
+ }),
116
+ e(n, { label: "关闭文字" }, {
117
+ default: d(() => [
118
+ e(r, {
119
+ modelValue: t(l).widget.props.closeText,
120
+ "onUpdate:modelValue": o[7] || (o[7] = (a) => t(l).widget.props.closeText = a),
121
+ placeholder: "填写关闭文字"
122
+ }, null, 8, ["modelValue"])
123
+ ]),
124
+ _: 1
125
+ })
126
+ ], 64);
127
+ };
128
+ }
129
+ });
130
+ export {
131
+ c as default
132
+ };
@@ -0,0 +1,97 @@
1
+ import { resolveComponent as i, openBlock as c, createElementBlock as g, Fragment as w, createVNode as e, withCtx as a, unref as t } from "vue";
2
+ const V = /* @__PURE__ */ Object.assign({ name: "config-image" }, {
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 d = i("el-option"), r = i("el-select"), p = i("common-label-container"), u = i("el-input"), s = i("el-switch");
18
+ return c(), g(w, null, [
19
+ e(p, { label: "适应容器" }, {
20
+ default: a(() => [
21
+ e(r, {
22
+ modelValue: t(l).widget.props.fit,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => t(l).widget.props.fit = n)
24
+ }, {
25
+ default: a(() => [
26
+ e(d, {
27
+ label: "fill",
28
+ value: "fill"
29
+ }),
30
+ e(d, {
31
+ label: "contain",
32
+ value: "contain"
33
+ }),
34
+ e(d, {
35
+ label: "cover",
36
+ value: "cover"
37
+ }),
38
+ e(d, {
39
+ label: "none",
40
+ value: "none"
41
+ }),
42
+ e(d, {
43
+ label: "scale-down",
44
+ value: "scale-down"
45
+ })
46
+ ]),
47
+ _: 1
48
+ }, 8, ["modelValue"])
49
+ ]),
50
+ _: 1
51
+ }),
52
+ e(p, { label: "文字描述" }, {
53
+ default: a(() => [
54
+ e(u, {
55
+ modelValue: t(l).widget.props.alt,
56
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).widget.props.alt = n),
57
+ placeholder: "填写文字描述"
58
+ }, null, 8, ["modelValue"])
59
+ ]),
60
+ _: 1
61
+ }),
62
+ e(p, { label: "图片宽度" }, {
63
+ default: a(() => [
64
+ e(u, {
65
+ modelValue: t(l).widget.props.imgWidth,
66
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).widget.props.imgWidth = n),
67
+ placeholder: "填写图片宽度"
68
+ }, null, 8, ["modelValue"])
69
+ ]),
70
+ _: 1
71
+ }),
72
+ e(p, { label: "图片高度" }, {
73
+ default: a(() => [
74
+ e(u, {
75
+ modelValue: t(l).widget.props.imgHeight,
76
+ "onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).widget.props.imgHeight = n),
77
+ placeholder: "填写图片高度"
78
+ }, null, 8, ["modelValue"])
79
+ ]),
80
+ _: 1
81
+ }),
82
+ e(p, { label: "是否可预览" }, {
83
+ default: a(() => [
84
+ e(s, {
85
+ modelValue: t(l).widget.props.canPreview,
86
+ "onUpdate:modelValue": o[4] || (o[4] = (n) => t(l).widget.props.canPreview = n)
87
+ }, null, 8, ["modelValue"])
88
+ ]),
89
+ _: 1
90
+ })
91
+ ], 64);
92
+ };
93
+ }
94
+ });
95
+ export {
96
+ V as default
97
+ };
@@ -0,0 +1,172 @@
1
+ import { resolveComponent as u, openBlock as m, createElementBlock as g, Fragment as b, createVNode as e, withCtx as a, unref as o, createBlock as f, createCommentVNode as _ } from "vue";
2
+ const c = /* @__PURE__ */ Object.assign({ name: "config-checkCode" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(w) {
15
+ let l = w;
16
+ return (U, t) => {
17
+ const i = u("el-input-number"), p = u("common-label-container"), n = u("el-option"), s = u("el-select"), V = u("el-input"), r = u("el-switch");
18
+ return m(), g(b, null, [
19
+ e(p, { label: "倒计时时间" }, {
20
+ default: a(() => [
21
+ e(i, {
22
+ class: "w-full",
23
+ placeholder: "填写倒计时时间",
24
+ modelValue: o(l).widget.props.timeSec,
25
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => o(l).widget.props.timeSec = d),
26
+ min: 0,
27
+ "controls-position": "right"
28
+ }, null, 8, ["modelValue"])
29
+ ]),
30
+ _: 1
31
+ }),
32
+ e(p, { label: "组件尺寸" }, {
33
+ default: a(() => [
34
+ e(s, {
35
+ modelValue: o(l).widget.props.size,
36
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => o(l).widget.props.size = d)
37
+ }, {
38
+ default: a(() => [
39
+ e(n, {
40
+ label: "大尺寸",
41
+ value: "large"
42
+ }),
43
+ e(n, {
44
+ label: "默认",
45
+ value: "default"
46
+ }),
47
+ e(n, {
48
+ label: "小尺寸",
49
+ value: "small"
50
+ })
51
+ ]),
52
+ _: 1
53
+ }, 8, ["modelValue"])
54
+ ]),
55
+ _: 1
56
+ }),
57
+ e(p, { label: "组件类型" }, {
58
+ default: a(() => [
59
+ e(s, {
60
+ modelValue: o(l).widget.props.type,
61
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => o(l).widget.props.type = d)
62
+ }, {
63
+ default: a(() => [
64
+ e(n, {
65
+ label: "文字",
66
+ value: "text"
67
+ }),
68
+ e(n, {
69
+ label: "密码",
70
+ value: "password"
71
+ }),
72
+ e(n, {
73
+ label: "文本域",
74
+ value: "textarea"
75
+ })
76
+ ]),
77
+ _: 1
78
+ }, 8, ["modelValue"])
79
+ ]),
80
+ _: 1
81
+ }),
82
+ e(p, { label: "占位文字" }, {
83
+ default: a(() => [
84
+ e(V, {
85
+ modelValue: o(l).widget.props.placeholder,
86
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => o(l).widget.props.placeholder = d),
87
+ placeholder: "填写占位文字"
88
+ }, null, 8, ["modelValue"])
89
+ ]),
90
+ _: 1
91
+ }),
92
+ e(p, { label: "最大输入长度" }, {
93
+ default: a(() => [
94
+ e(i, {
95
+ class: "w-full",
96
+ placeholder: "填写最大输入长度",
97
+ modelValue: o(l).widget.props.maxlength,
98
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => o(l).widget.props.maxlength = d),
99
+ min: 0,
100
+ "controls-position": "right"
101
+ }, null, 8, ["modelValue"])
102
+ ]),
103
+ _: 1
104
+ }),
105
+ o(l).widget.props.type == "textarea" ? (m(), f(p, {
106
+ key: 0,
107
+ label: "行数"
108
+ }, {
109
+ default: a(() => [
110
+ e(i, {
111
+ class: "w-full",
112
+ placeholder: "填写行数",
113
+ modelValue: o(l).widget.props.rows,
114
+ "onUpdate:modelValue": t[5] || (t[5] = (d) => o(l).widget.props.rows = d),
115
+ min: 0,
116
+ "controls-position": "right"
117
+ }, null, 8, ["modelValue"])
118
+ ]),
119
+ _: 1
120
+ })) : _("", !0),
121
+ e(p, { label: "是否去空格" }, {
122
+ default: a(() => [
123
+ e(r, {
124
+ modelValue: o(l).widget.props.isTrim,
125
+ "onUpdate:modelValue": t[6] || (t[6] = (d) => o(l).widget.props.isTrim = d)
126
+ }, null, 8, ["modelValue"])
127
+ ]),
128
+ _: 1
129
+ }),
130
+ e(p, { label: "是否必填" }, {
131
+ default: a(() => [
132
+ e(r, {
133
+ modelValue: o(l).widget.props.required,
134
+ "onUpdate:modelValue": t[7] || (t[7] = (d) => o(l).widget.props.required = d)
135
+ }, null, 8, ["modelValue"])
136
+ ]),
137
+ _: 1
138
+ }),
139
+ e(p, { label: "是否只读" }, {
140
+ default: a(() => [
141
+ e(r, {
142
+ modelValue: o(l).widget.props.readonly,
143
+ "onUpdate:modelValue": t[8] || (t[8] = (d) => o(l).widget.props.readonly = d)
144
+ }, null, 8, ["modelValue"])
145
+ ]),
146
+ _: 1
147
+ }),
148
+ e(p, { label: "是否禁用" }, {
149
+ default: a(() => [
150
+ e(r, {
151
+ modelValue: o(l).widget.props.disabled,
152
+ "onUpdate:modelValue": t[9] || (t[9] = (d) => o(l).widget.props.disabled = d)
153
+ }, null, 8, ["modelValue"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ e(p, { label: "显示限制字数" }, {
158
+ default: a(() => [
159
+ e(r, {
160
+ modelValue: o(l).widget.props.showLimit,
161
+ "onUpdate:modelValue": t[10] || (t[10] = (d) => o(l).widget.props.showLimit = d)
162
+ }, null, 8, ["modelValue"])
163
+ ]),
164
+ _: 1
165
+ })
166
+ ], 64);
167
+ };
168
+ }
169
+ });
170
+ export {
171
+ c as default
172
+ };