sun-form-v3 1.0.89 → 1.0.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ };