vuv-ui 1.0.11 → 1.0.13
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.
- package/package.json +1 -1
- package/src/components/button/Data.vue +3 -12
- package/src/components/button/View.vue +1 -1
- package/src/components/button/index.ts +4 -4
- package/src/components/index.ts +12 -4
- package/vuv-ui/components/button/Data.vue.d.ts +2 -2
- package/vuv-ui/components/button/index.d.ts +2 -2
- package/vuv-ui/components/index.d.ts +5 -225
- package/vuv-ui/style.css +1 -1
- package/vuv-ui/vuv-ui.es.js +323 -321
- package/vuv-ui/vuv-ui.umd.js +1 -1
package/vuv-ui/vuv-ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as _, openBlock as
|
|
2
|
-
import { uvButton as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
name: "
|
|
6
|
-
}),
|
|
7
|
-
...
|
|
1
|
+
import { defineComponent as _, openBlock as g, createElementBlock as U, normalizeClass as G, normalizeStyle as O, createVNode as e, unref as u, withCtx as t, createTextVNode as r, toDisplayString as P, createCommentVNode as h, ref as c, onMounted as L, createBlock as N, resolveComponent as v, watch as X, computed as J, Fragment as F, renderList as H, createElementVNode as b, pushScopeId as K, popScopeId as Q } from "vue";
|
|
2
|
+
import { uvButton as Y, uvStepper as Z, uvCollapse as ee, uvCollapseItem as le } from "uv-ui";
|
|
3
|
+
import { ElForm as ae, ElFormItem as V, ElSwitch as $, ElInputNumber as M, ElSelect as q, ElOption as y, ElRadioGroup as D, ElRadioButton as T, ElInput as z, ElColorPicker as W } from "element-plus";
|
|
4
|
+
const te = _({
|
|
5
|
+
name: "uvuiButtonView"
|
|
6
|
+
}), oe = /* @__PURE__ */ _({
|
|
7
|
+
...te,
|
|
8
8
|
props: {
|
|
9
9
|
data: {
|
|
10
10
|
type: Object,
|
|
@@ -12,114 +12,113 @@ const G = _({
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
return (
|
|
15
|
+
setup(d) {
|
|
16
|
+
return (s, l) => d.data && d.data.options ? (g(), U("div", {
|
|
17
17
|
key: 0,
|
|
18
|
-
class:
|
|
19
|
-
style:
|
|
18
|
+
class: G(["button_box", { plain: d.data.options.plain }]),
|
|
19
|
+
style: O({ "justify-content": d.data.options.position })
|
|
20
20
|
}, [
|
|
21
|
-
e(u(
|
|
22
|
-
type:
|
|
23
|
-
bgColor:
|
|
24
|
-
disabled:
|
|
25
|
-
color:
|
|
26
|
-
round:
|
|
27
|
-
square:
|
|
28
|
-
size:
|
|
29
|
-
loading:
|
|
30
|
-
icon:
|
|
31
|
-
style:
|
|
32
|
-
width:
|
|
33
|
-
height:
|
|
21
|
+
e(u(Y), {
|
|
22
|
+
type: d.data.options.type || "primary",
|
|
23
|
+
bgColor: d.data.options.color,
|
|
24
|
+
disabled: d.data.options.disabled,
|
|
25
|
+
color: d.data.options.textColor,
|
|
26
|
+
round: d.data.options.shape == "circle",
|
|
27
|
+
square: d.data.options.shape == "square",
|
|
28
|
+
size: d.data.options.size,
|
|
29
|
+
loading: d.data.options.loading,
|
|
30
|
+
icon: d.data.options.icon,
|
|
31
|
+
style: O({
|
|
32
|
+
width: d.data.options.width + "px",
|
|
33
|
+
height: d.data.options.height + "px"
|
|
34
34
|
})
|
|
35
35
|
}, {
|
|
36
36
|
default: t(() => [
|
|
37
|
-
|
|
37
|
+
r(P(d.data.options.text || "按钮"), 1)
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}, 8, ["type", "bgColor", "disabled", "color", "round", "square", "size", "loading", "icon", "style"])
|
|
41
|
-
], 6)) :
|
|
41
|
+
], 6)) : h("", !0);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
const l =
|
|
46
|
-
for (const [
|
|
47
|
-
l[
|
|
44
|
+
const I = (d, s) => {
|
|
45
|
+
const l = d.__vccOpts || d;
|
|
46
|
+
for (const [p, m] of s)
|
|
47
|
+
l[p] = m;
|
|
48
48
|
return l;
|
|
49
|
-
},
|
|
49
|
+
}, A = /* @__PURE__ */ I(oe, [["__scopeId", "data-v-ddf92851"]]), ue = {
|
|
50
50
|
key: 0,
|
|
51
51
|
class: "banner-content"
|
|
52
|
-
},
|
|
53
|
-
name: "
|
|
54
|
-
}),
|
|
55
|
-
...
|
|
52
|
+
}, de = _({
|
|
53
|
+
name: "uvuiButtonData"
|
|
54
|
+
}), ne = /* @__PURE__ */ _({
|
|
55
|
+
...de,
|
|
56
56
|
props: {
|
|
57
57
|
data: {
|
|
58
58
|
type: Object,
|
|
59
|
-
default: () => {
|
|
60
|
-
}
|
|
59
|
+
default: () => ({})
|
|
61
60
|
}
|
|
62
61
|
},
|
|
63
|
-
setup(
|
|
64
|
-
const
|
|
65
|
-
return
|
|
66
|
-
console.log(
|
|
67
|
-
}), (
|
|
68
|
-
e(u(
|
|
62
|
+
setup(d) {
|
|
63
|
+
const s = d, l = c(), p = c(), m = c(!1);
|
|
64
|
+
return L(() => {
|
|
65
|
+
console.log(s.data, s, "参数接收"), s.data && (p.value = s.data.data, l.value = s.data.options, m.value = !0);
|
|
66
|
+
}), (w, a) => m.value ? (g(), U("div", ue, [
|
|
67
|
+
e(u(ae), { "label-width": "100px" }, {
|
|
69
68
|
default: t(() => [
|
|
70
|
-
e(u(
|
|
69
|
+
e(u(V), { label: "显示边框" }, {
|
|
71
70
|
default: t(() => [
|
|
72
|
-
e(u(
|
|
71
|
+
e(u($), {
|
|
73
72
|
modelValue: l.value.hairline,
|
|
74
73
|
"onUpdate:modelValue": a[0] || (a[0] = (n) => l.value.hairline = n)
|
|
75
74
|
}, null, 8, ["modelValue"])
|
|
76
75
|
]),
|
|
77
76
|
_: 1
|
|
78
77
|
}),
|
|
79
|
-
e(u(
|
|
78
|
+
e(u(V), { label: "宽度" }, {
|
|
80
79
|
default: t(() => [
|
|
81
|
-
e(u(
|
|
80
|
+
e(u(M), {
|
|
82
81
|
modelValue: l.value.width,
|
|
83
82
|
"onUpdate:modelValue": a[1] || (a[1] = (n) => l.value.width = n)
|
|
84
83
|
}, null, 8, ["modelValue"])
|
|
85
84
|
]),
|
|
86
85
|
_: 1
|
|
87
86
|
}),
|
|
88
|
-
e(u(
|
|
87
|
+
e(u(V), { label: "高度" }, {
|
|
89
88
|
default: t(() => [
|
|
90
|
-
e(u(
|
|
89
|
+
e(u(M), {
|
|
91
90
|
modelValue: l.value.height,
|
|
92
91
|
"onUpdate:modelValue": a[2] || (a[2] = (n) => l.value.height = n)
|
|
93
92
|
}, null, 8, ["modelValue"])
|
|
94
93
|
]),
|
|
95
94
|
_: 1
|
|
96
95
|
}),
|
|
97
|
-
e(u(
|
|
96
|
+
e(u(V), { label: "主题颜色" }, {
|
|
98
97
|
default: t(() => [
|
|
99
|
-
e(u(
|
|
98
|
+
e(u(q), {
|
|
100
99
|
modelValue: l.value.type,
|
|
101
100
|
"onUpdate:modelValue": a[3] || (a[3] = (n) => l.value.type = n),
|
|
102
101
|
placeholder: "请选择",
|
|
103
102
|
style: { width: "180px" }
|
|
104
103
|
}, {
|
|
105
104
|
default: t(() => [
|
|
106
|
-
e(u(
|
|
105
|
+
e(u(y), {
|
|
107
106
|
label: "primary",
|
|
108
107
|
value: "primary"
|
|
109
108
|
}),
|
|
110
|
-
e(u(
|
|
109
|
+
e(u(y), {
|
|
111
110
|
label: "success",
|
|
112
111
|
value: "success"
|
|
113
112
|
}),
|
|
114
|
-
e(u(
|
|
113
|
+
e(u(y), {
|
|
115
114
|
label: "info",
|
|
116
115
|
value: "info"
|
|
117
116
|
}),
|
|
118
|
-
e(u(
|
|
117
|
+
e(u(y), {
|
|
119
118
|
label: "warning",
|
|
120
119
|
value: "warning"
|
|
121
120
|
}),
|
|
122
|
-
e(u(
|
|
121
|
+
e(u(y), {
|
|
123
122
|
label: "error",
|
|
124
123
|
value: "error"
|
|
125
124
|
})
|
|
@@ -129,28 +128,28 @@ const k = (s, i) => {
|
|
|
129
128
|
]),
|
|
130
129
|
_: 1
|
|
131
130
|
}),
|
|
132
|
-
e(u(
|
|
131
|
+
e(u(V), { label: "大小" }, {
|
|
133
132
|
default: t(() => [
|
|
134
|
-
e(u(
|
|
133
|
+
e(u(D), {
|
|
135
134
|
modelValue: l.value.size,
|
|
136
135
|
"onUpdate:modelValue": a[4] || (a[4] = (n) => l.value.size = n)
|
|
137
136
|
}, {
|
|
138
137
|
default: t(() => [
|
|
139
|
-
e(u(
|
|
138
|
+
e(u(T), { label: "normal" }, {
|
|
140
139
|
default: t(() => [
|
|
141
|
-
|
|
140
|
+
r("normal")
|
|
142
141
|
]),
|
|
143
142
|
_: 1
|
|
144
143
|
}),
|
|
145
|
-
e(u(
|
|
144
|
+
e(u(T), { label: "medium" }, {
|
|
146
145
|
default: t(() => [
|
|
147
|
-
|
|
146
|
+
r("medium")
|
|
148
147
|
]),
|
|
149
148
|
_: 1
|
|
150
149
|
}),
|
|
151
|
-
e(u(
|
|
150
|
+
e(u(T), { label: "mini" }, {
|
|
152
151
|
default: t(() => [
|
|
153
|
-
|
|
152
|
+
r("mini")
|
|
154
153
|
]),
|
|
155
154
|
_: 1
|
|
156
155
|
})
|
|
@@ -160,28 +159,28 @@ const k = (s, i) => {
|
|
|
160
159
|
]),
|
|
161
160
|
_: 1
|
|
162
161
|
}),
|
|
163
|
-
e(u(
|
|
162
|
+
e(u(V), { label: "按钮位置" }, {
|
|
164
163
|
default: t(() => [
|
|
165
|
-
e(u(
|
|
164
|
+
e(u(D), {
|
|
166
165
|
modelValue: l.value.position,
|
|
167
166
|
"onUpdate:modelValue": a[5] || (a[5] = (n) => l.value.position = n)
|
|
168
167
|
}, {
|
|
169
168
|
default: t(() => [
|
|
170
|
-
e(u(
|
|
169
|
+
e(u(T), { label: "left" }, {
|
|
171
170
|
default: t(() => [
|
|
172
|
-
|
|
171
|
+
r("居左")
|
|
173
172
|
]),
|
|
174
173
|
_: 1
|
|
175
174
|
}),
|
|
176
|
-
e(u(
|
|
175
|
+
e(u(T), { label: "center" }, {
|
|
177
176
|
default: t(() => [
|
|
178
|
-
|
|
177
|
+
r("居中")
|
|
179
178
|
]),
|
|
180
179
|
_: 1
|
|
181
180
|
}),
|
|
182
|
-
e(u(
|
|
181
|
+
e(u(T), { label: "right" }, {
|
|
183
182
|
default: t(() => [
|
|
184
|
-
|
|
183
|
+
r("居右")
|
|
185
184
|
]),
|
|
186
185
|
_: 1
|
|
187
186
|
})
|
|
@@ -191,22 +190,22 @@ const k = (s, i) => {
|
|
|
191
190
|
]),
|
|
192
191
|
_: 1
|
|
193
192
|
}),
|
|
194
|
-
e(u(
|
|
193
|
+
e(u(V), { label: "形状" }, {
|
|
195
194
|
default: t(() => [
|
|
196
|
-
e(u(
|
|
195
|
+
e(u(D), {
|
|
197
196
|
modelValue: l.value.shape,
|
|
198
197
|
"onUpdate:modelValue": a[6] || (a[6] = (n) => l.value.shape = n)
|
|
199
198
|
}, {
|
|
200
199
|
default: t(() => [
|
|
201
|
-
e(u(
|
|
200
|
+
e(u(T), { label: "square" }, {
|
|
202
201
|
default: t(() => [
|
|
203
|
-
|
|
202
|
+
r("square")
|
|
204
203
|
]),
|
|
205
204
|
_: 1
|
|
206
205
|
}),
|
|
207
|
-
e(u(
|
|
206
|
+
e(u(T), { label: "circle" }, {
|
|
208
207
|
default: t(() => [
|
|
209
|
-
|
|
208
|
+
r("circle")
|
|
210
209
|
]),
|
|
211
210
|
_: 1
|
|
212
211
|
})
|
|
@@ -216,45 +215,45 @@ const k = (s, i) => {
|
|
|
216
215
|
]),
|
|
217
216
|
_: 1
|
|
218
217
|
}),
|
|
219
|
-
e(u(
|
|
218
|
+
e(u(V), { label: "镂空" }, {
|
|
220
219
|
default: t(() => [
|
|
221
|
-
e(u(
|
|
220
|
+
e(u($), {
|
|
222
221
|
modelValue: l.value.plain,
|
|
223
222
|
"onUpdate:modelValue": a[7] || (a[7] = (n) => l.value.plain = n)
|
|
224
223
|
}, null, 8, ["modelValue"])
|
|
225
224
|
]),
|
|
226
225
|
_: 1
|
|
227
226
|
}),
|
|
228
|
-
e(u(
|
|
227
|
+
e(u(V), { label: "禁用" }, {
|
|
229
228
|
default: t(() => [
|
|
230
|
-
e(u(
|
|
229
|
+
e(u($), {
|
|
231
230
|
modelValue: l.value.disabled,
|
|
232
231
|
"onUpdate:modelValue": a[8] || (a[8] = (n) => l.value.disabled = n)
|
|
233
232
|
}, null, 8, ["modelValue"])
|
|
234
233
|
]),
|
|
235
234
|
_: 1
|
|
236
235
|
}),
|
|
237
|
-
e(u(
|
|
236
|
+
e(u(V), { label: "铺满" }, {
|
|
238
237
|
default: t(() => [
|
|
239
|
-
e(u(
|
|
238
|
+
e(u($), {
|
|
240
239
|
modelValue: l.value.fill,
|
|
241
240
|
"onUpdate:modelValue": a[9] || (a[9] = (n) => l.value.fill = n)
|
|
242
241
|
}, null, 8, ["modelValue"])
|
|
243
242
|
]),
|
|
244
243
|
_: 1
|
|
245
244
|
}),
|
|
246
|
-
e(u(
|
|
245
|
+
e(u(V), { label: "loading图标" }, {
|
|
247
246
|
default: t(() => [
|
|
248
|
-
e(u(
|
|
247
|
+
e(u($), {
|
|
249
248
|
modelValue: l.value.loading,
|
|
250
249
|
"onUpdate:modelValue": a[10] || (a[10] = (n) => l.value.loading = n)
|
|
251
250
|
}, null, 8, ["modelValue"])
|
|
252
251
|
]),
|
|
253
252
|
_: 1
|
|
254
253
|
}),
|
|
255
|
-
e(u(
|
|
254
|
+
e(u(V), { label: "加载中文字" }, {
|
|
256
255
|
default: t(() => [
|
|
257
|
-
e(u(
|
|
256
|
+
e(u(z), {
|
|
258
257
|
modelValue: l.value.loadingText,
|
|
259
258
|
"onUpdate:modelValue": a[11] || (a[11] = (n) => l.value.loadingText = n),
|
|
260
259
|
style: { width: "180px" },
|
|
@@ -264,9 +263,9 @@ const k = (s, i) => {
|
|
|
264
263
|
]),
|
|
265
264
|
_: 1
|
|
266
265
|
}),
|
|
267
|
-
e(u(
|
|
266
|
+
e(u(V), { label: "开放能力" }, {
|
|
268
267
|
default: t(() => [
|
|
269
|
-
e(u(
|
|
268
|
+
e(u(q), {
|
|
270
269
|
modelValue: l.value.openType,
|
|
271
270
|
"onUpdate:modelValue": a[12] || (a[12] = (n) => l.value.openType = n),
|
|
272
271
|
placeholder: "请选择",
|
|
@@ -274,39 +273,39 @@ const k = (s, i) => {
|
|
|
274
273
|
clearable: ""
|
|
275
274
|
}, {
|
|
276
275
|
default: t(() => [
|
|
277
|
-
e(u(
|
|
276
|
+
e(u(y), {
|
|
278
277
|
label: "跳转页面",
|
|
279
278
|
value: "navigateTo"
|
|
280
279
|
}),
|
|
281
|
-
e(u(
|
|
280
|
+
e(u(y), {
|
|
282
281
|
label: "获取用户信息",
|
|
283
282
|
value: "getUserInfo"
|
|
284
283
|
}),
|
|
285
|
-
e(u(
|
|
284
|
+
e(u(y), {
|
|
286
285
|
label: "联系客服",
|
|
287
286
|
value: "contact"
|
|
288
287
|
}),
|
|
289
|
-
e(u(
|
|
288
|
+
e(u(y), {
|
|
290
289
|
label: "获取手机号",
|
|
291
290
|
value: "getPhoneNumber"
|
|
292
291
|
}),
|
|
293
|
-
e(u(
|
|
292
|
+
e(u(y), {
|
|
294
293
|
label: "打开授权设置",
|
|
295
294
|
value: "openSetting"
|
|
296
295
|
}),
|
|
297
|
-
e(u(
|
|
296
|
+
e(u(y), {
|
|
298
297
|
label: "获取用户头像",
|
|
299
298
|
value: "chooseAvatar"
|
|
300
299
|
}),
|
|
301
|
-
e(u(
|
|
300
|
+
e(u(y), {
|
|
302
301
|
label: "意见反馈",
|
|
303
302
|
value: "feedback"
|
|
304
303
|
}),
|
|
305
|
-
e(u(
|
|
304
|
+
e(u(y), {
|
|
306
305
|
label: "分享",
|
|
307
306
|
value: "share"
|
|
308
307
|
}),
|
|
309
|
-
e(u(
|
|
308
|
+
e(u(y), {
|
|
310
309
|
label: "自定义",
|
|
311
310
|
value: "customize"
|
|
312
311
|
})
|
|
@@ -316,12 +315,12 @@ const k = (s, i) => {
|
|
|
316
315
|
]),
|
|
317
316
|
_: 1
|
|
318
317
|
}),
|
|
319
|
-
l.value.openType == "navigateTo" ? (
|
|
318
|
+
l.value.openType == "navigateTo" ? (g(), N(u(V), {
|
|
320
319
|
key: 0,
|
|
321
320
|
label: "页面路径"
|
|
322
321
|
}, {
|
|
323
322
|
default: t(() => [
|
|
324
|
-
e(u(
|
|
323
|
+
e(u(z), {
|
|
325
324
|
modelValue: l.value.pagePath,
|
|
326
325
|
"onUpdate:modelValue": a[13] || (a[13] = (n) => l.value.pagePath = n),
|
|
327
326
|
style: { width: "180px" },
|
|
@@ -330,22 +329,22 @@ const k = (s, i) => {
|
|
|
330
329
|
}, null, 8, ["modelValue"])
|
|
331
330
|
]),
|
|
332
331
|
_: 1
|
|
333
|
-
})) :
|
|
334
|
-
l.value.openType == "navigateTo" ? (
|
|
332
|
+
})) : h("", !0),
|
|
333
|
+
l.value.openType == "navigateTo" ? (g(), N(u(V), {
|
|
335
334
|
key: 1,
|
|
336
335
|
label: "tabbar页面"
|
|
337
336
|
}, {
|
|
338
337
|
default: t(() => [
|
|
339
|
-
e(u(
|
|
338
|
+
e(u($), {
|
|
340
339
|
modelValue: l.value.isTabBar,
|
|
341
340
|
"onUpdate:modelValue": a[14] || (a[14] = (n) => l.value.isTabBar = n)
|
|
342
341
|
}, null, 8, ["modelValue"])
|
|
343
342
|
]),
|
|
344
343
|
_: 1
|
|
345
|
-
})) :
|
|
346
|
-
e(u(
|
|
344
|
+
})) : h("", !0),
|
|
345
|
+
e(u(V), { label: "按钮文字" }, {
|
|
347
346
|
default: t(() => [
|
|
348
|
-
e(u(
|
|
347
|
+
e(u(z), {
|
|
349
348
|
modelValue: l.value.text,
|
|
350
349
|
"onUpdate:modelValue": a[15] || (a[15] = (n) => l.value.text = n),
|
|
351
350
|
style: { width: "180px" },
|
|
@@ -355,9 +354,9 @@ const k = (s, i) => {
|
|
|
355
354
|
]),
|
|
356
355
|
_: 1
|
|
357
356
|
}),
|
|
358
|
-
e(u(
|
|
357
|
+
e(u(V), { label: "按钮颜色" }, {
|
|
359
358
|
default: t(() => [
|
|
360
|
-
e(u(
|
|
359
|
+
e(u(W), {
|
|
361
360
|
modelValue: l.value.color,
|
|
362
361
|
"onUpdate:modelValue": a[16] || (a[16] = (n) => l.value.color = n),
|
|
363
362
|
"show-alpha": ""
|
|
@@ -365,9 +364,9 @@ const k = (s, i) => {
|
|
|
365
364
|
]),
|
|
366
365
|
_: 1
|
|
367
366
|
}),
|
|
368
|
-
e(u(
|
|
367
|
+
e(u(V), { label: "文字颜色" }, {
|
|
369
368
|
default: t(() => [
|
|
370
|
-
e(u(
|
|
369
|
+
e(u(W), {
|
|
371
370
|
modelValue: l.value.textColor,
|
|
372
371
|
"onUpdate:modelValue": a[17] || (a[17] = (n) => l.value.textColor = n),
|
|
373
372
|
"show-alpha": ""
|
|
@@ -375,9 +374,9 @@ const k = (s, i) => {
|
|
|
375
374
|
]),
|
|
376
375
|
_: 1
|
|
377
376
|
}),
|
|
378
|
-
e(u(
|
|
377
|
+
e(u(V), { label: "自定义样式" }, {
|
|
379
378
|
default: t(() => [
|
|
380
|
-
e(u(
|
|
379
|
+
e(u(z), {
|
|
381
380
|
modelValue: l.value.customStyle,
|
|
382
381
|
"onUpdate:modelValue": a[18] || (a[18] = (n) => l.value.customStyle = n),
|
|
383
382
|
style: { width: "240px" },
|
|
@@ -391,19 +390,19 @@ const k = (s, i) => {
|
|
|
391
390
|
]),
|
|
392
391
|
_: 1
|
|
393
392
|
})
|
|
394
|
-
])) :
|
|
393
|
+
])) : h("", !0);
|
|
395
394
|
}
|
|
396
395
|
});
|
|
397
|
-
const
|
|
396
|
+
const R = /* @__PURE__ */ I(ne, [["__scopeId", "data-v-3a40ecc1"]]), se = {
|
|
398
397
|
type: "uvui-button",
|
|
399
398
|
name: "按钮",
|
|
400
399
|
icon: "Postcard",
|
|
401
400
|
fontIcon: "icon-shangpinanniu_changtiaoanniu",
|
|
402
401
|
page: "index,activity",
|
|
403
|
-
viewCom:
|
|
404
|
-
editCom:
|
|
402
|
+
viewCom: A,
|
|
403
|
+
editCom: R,
|
|
405
404
|
limit: 0
|
|
406
|
-
},
|
|
405
|
+
}, ie = {
|
|
407
406
|
data: {},
|
|
408
407
|
options: {
|
|
409
408
|
width: "100",
|
|
@@ -447,13 +446,13 @@ const Y = /* @__PURE__ */ k(Q, [["__scopeId", "data-v-f4e926bb"]]), Z = {
|
|
|
447
446
|
fill: !0
|
|
448
447
|
//组件是否铺满父容器
|
|
449
448
|
}
|
|
450
|
-
},
|
|
449
|
+
}, me = {
|
|
451
450
|
key: 0,
|
|
452
451
|
class: "textarea_box"
|
|
453
|
-
},
|
|
452
|
+
}, pe = _({
|
|
454
453
|
name: "TextareaView"
|
|
455
|
-
}),
|
|
456
|
-
...
|
|
454
|
+
}), re = /* @__PURE__ */ _({
|
|
455
|
+
...pe,
|
|
457
456
|
props: {
|
|
458
457
|
data: {
|
|
459
458
|
type: Object,
|
|
@@ -461,33 +460,33 @@ const Y = /* @__PURE__ */ k(Q, [["__scopeId", "data-v-f4e926bb"]]), Z = {
|
|
|
461
460
|
}
|
|
462
461
|
}
|
|
463
462
|
},
|
|
464
|
-
setup(
|
|
465
|
-
const
|
|
466
|
-
return (l,
|
|
467
|
-
const
|
|
468
|
-
return
|
|
469
|
-
e(
|
|
470
|
-
modelValue:
|
|
471
|
-
"onUpdate:modelValue":
|
|
472
|
-
placeholder:
|
|
473
|
-
style:
|
|
474
|
-
"show-word-limit":
|
|
475
|
-
autosize:
|
|
476
|
-
maxlength:
|
|
463
|
+
setup(d) {
|
|
464
|
+
const s = c("");
|
|
465
|
+
return (l, p) => {
|
|
466
|
+
const m = v("el-input");
|
|
467
|
+
return d.data && d.data.options ? (g(), U("div", me, [
|
|
468
|
+
e(m, {
|
|
469
|
+
modelValue: s.value,
|
|
470
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => s.value = w),
|
|
471
|
+
placeholder: d.data.options.placeholder || "请输入",
|
|
472
|
+
style: O({ width: "100%", height: d.data.options.height }),
|
|
473
|
+
"show-word-limit": d.data.options.count,
|
|
474
|
+
autosize: d.data.options.autoHeight,
|
|
475
|
+
maxlength: d.data.options.maxlength,
|
|
477
476
|
rows: 2,
|
|
478
477
|
type: "textarea"
|
|
479
478
|
}, null, 8, ["modelValue", "placeholder", "style", "show-word-limit", "autosize", "maxlength"])
|
|
480
|
-
])) :
|
|
479
|
+
])) : h("", !0);
|
|
481
480
|
};
|
|
482
481
|
}
|
|
483
482
|
});
|
|
484
|
-
const
|
|
483
|
+
const ve = /* @__PURE__ */ I(re, [["__scopeId", "data-v-b4db5b9f"]]), Ve = {
|
|
485
484
|
key: 0,
|
|
486
485
|
class: "banner-content"
|
|
487
|
-
},
|
|
486
|
+
}, fe = _({
|
|
488
487
|
name: "TextareaData"
|
|
489
|
-
}),
|
|
490
|
-
...
|
|
488
|
+
}), be = /* @__PURE__ */ _({
|
|
489
|
+
...fe,
|
|
491
490
|
props: {
|
|
492
491
|
data: {
|
|
493
492
|
type: Object,
|
|
@@ -495,16 +494,16 @@ const oe = /* @__PURE__ */ k(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
495
494
|
}
|
|
496
495
|
}
|
|
497
496
|
},
|
|
498
|
-
setup(
|
|
499
|
-
const
|
|
500
|
-
return
|
|
501
|
-
console.log(
|
|
502
|
-
}), (
|
|
503
|
-
const n =
|
|
504
|
-
return
|
|
505
|
-
e(
|
|
497
|
+
setup(d) {
|
|
498
|
+
const s = d, l = c(), p = c(), m = c(!1);
|
|
499
|
+
return L(() => {
|
|
500
|
+
console.log(s.data, s, "参数接收"), s.data && (p.value = s.data.data, l.value = s.data.options, m.value = !0);
|
|
501
|
+
}), (w, a) => {
|
|
502
|
+
const n = v("el-input"), i = v("el-form-item"), f = v("el-input-number"), C = v("el-switch"), k = v("el-radio-button"), E = v("el-radio-group"), B = v("el-form");
|
|
503
|
+
return m.value ? (g(), U("div", Ve, [
|
|
504
|
+
e(B, { "label-width": "100px" }, {
|
|
506
505
|
default: t(() => [
|
|
507
|
-
e(
|
|
506
|
+
e(i, { label: "空值占位内容" }, {
|
|
508
507
|
default: t(() => [
|
|
509
508
|
e(n, {
|
|
510
509
|
modelValue: l.value.placeholder,
|
|
@@ -513,16 +512,16 @@ const oe = /* @__PURE__ */ k(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
513
512
|
]),
|
|
514
513
|
_: 1
|
|
515
514
|
}),
|
|
516
|
-
e(
|
|
515
|
+
e(i, { label: "高度" }, {
|
|
517
516
|
default: t(() => [
|
|
518
|
-
e(
|
|
517
|
+
e(f, {
|
|
519
518
|
modelValue: l.value.height,
|
|
520
519
|
"onUpdate:modelValue": a[1] || (a[1] = (o) => l.value.height = o)
|
|
521
520
|
}, null, 8, ["modelValue"])
|
|
522
521
|
]),
|
|
523
522
|
_: 1
|
|
524
523
|
}),
|
|
525
|
-
e(
|
|
524
|
+
e(i, { label: "右下角按钮文字" }, {
|
|
526
525
|
default: t(() => [
|
|
527
526
|
e(n, {
|
|
528
527
|
modelValue: l.value.confirmType,
|
|
@@ -531,73 +530,73 @@ const oe = /* @__PURE__ */ k(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
531
530
|
]),
|
|
532
531
|
_: 1
|
|
533
532
|
}),
|
|
534
|
-
e(
|
|
533
|
+
e(i, { label: "显示字数统计" }, {
|
|
535
534
|
default: t(() => [
|
|
536
|
-
e(
|
|
535
|
+
e(C, {
|
|
537
536
|
modelValue: l.value.count,
|
|
538
537
|
"onUpdate:modelValue": a[3] || (a[3] = (o) => l.value.count = o)
|
|
539
538
|
}, null, 8, ["modelValue"])
|
|
540
539
|
]),
|
|
541
540
|
_: 1
|
|
542
541
|
}),
|
|
543
|
-
e(
|
|
542
|
+
e(i, { label: "自动增高" }, {
|
|
544
543
|
default: t(() => [
|
|
545
|
-
e(
|
|
544
|
+
e(C, {
|
|
546
545
|
modelValue: l.value.autoHeight,
|
|
547
546
|
"onUpdate:modelValue": a[4] || (a[4] = (o) => l.value.autoHeight = o)
|
|
548
547
|
}, null, 8, ["modelValue"])
|
|
549
548
|
]),
|
|
550
549
|
_: 1
|
|
551
550
|
}),
|
|
552
|
-
e(
|
|
551
|
+
e(i, { label: "显示完成按钮" }, {
|
|
553
552
|
default: t(() => [
|
|
554
|
-
e(
|
|
553
|
+
e(C, {
|
|
555
554
|
modelValue: l.value.showConfirmBar,
|
|
556
555
|
"onUpdate:modelValue": a[5] || (a[5] = (o) => l.value.showConfirmBar = o)
|
|
557
556
|
}, null, 8, ["modelValue"])
|
|
558
557
|
]),
|
|
559
558
|
_: 1
|
|
560
559
|
}),
|
|
561
|
-
e(
|
|
560
|
+
e(i, { label: "输入长度" }, {
|
|
562
561
|
default: t(() => [
|
|
563
|
-
e(
|
|
562
|
+
e(f, {
|
|
564
563
|
modelValue: l.value.maxlength,
|
|
565
564
|
"onUpdate:modelValue": a[6] || (a[6] = (o) => l.value.maxlength = o)
|
|
566
565
|
}, null, 8, ["modelValue"])
|
|
567
566
|
]),
|
|
568
567
|
_: 1
|
|
569
568
|
}),
|
|
570
|
-
e(
|
|
569
|
+
e(i, { label: "是否铺满" }, {
|
|
571
570
|
default: t(() => [
|
|
572
|
-
e(
|
|
571
|
+
e(C, {
|
|
573
572
|
modelValue: l.value.fill,
|
|
574
573
|
"onUpdate:modelValue": a[7] || (a[7] = (o) => l.value.fill = o)
|
|
575
574
|
}, null, 8, ["modelValue"])
|
|
576
575
|
]),
|
|
577
576
|
_: 1
|
|
578
577
|
}),
|
|
579
|
-
e(
|
|
578
|
+
e(i, { label: "边框" }, {
|
|
580
579
|
default: t(() => [
|
|
581
|
-
e(
|
|
580
|
+
e(E, {
|
|
582
581
|
modelValue: l.value.size,
|
|
583
582
|
"onUpdate:modelValue": a[8] || (a[8] = (o) => l.value.size = o)
|
|
584
583
|
}, {
|
|
585
584
|
default: t(() => [
|
|
586
|
-
e(
|
|
585
|
+
e(k, { label: "surround" }, {
|
|
587
586
|
default: t(() => [
|
|
588
|
-
|
|
587
|
+
r("四周边框")
|
|
589
588
|
]),
|
|
590
589
|
_: 1
|
|
591
590
|
}),
|
|
592
|
-
e(
|
|
591
|
+
e(k, { label: "none" }, {
|
|
593
592
|
default: t(() => [
|
|
594
|
-
|
|
593
|
+
r("无边框")
|
|
595
594
|
]),
|
|
596
595
|
_: 1
|
|
597
596
|
}),
|
|
598
|
-
e(
|
|
597
|
+
e(k, { label: "bottom" }, {
|
|
599
598
|
default: t(() => [
|
|
600
|
-
|
|
599
|
+
r("底部边框")
|
|
601
600
|
]),
|
|
602
601
|
_: 1
|
|
603
602
|
})
|
|
@@ -607,7 +606,7 @@ const oe = /* @__PURE__ */ k(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
607
606
|
]),
|
|
608
607
|
_: 1
|
|
609
608
|
}),
|
|
610
|
-
e(
|
|
609
|
+
e(i, { label: "自定义样式" }, {
|
|
611
610
|
default: t(() => [
|
|
612
611
|
e(n, {
|
|
613
612
|
modelValue: l.value.customStyle,
|
|
@@ -623,20 +622,20 @@ const oe = /* @__PURE__ */ k(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
623
622
|
]),
|
|
624
623
|
_: 1
|
|
625
624
|
})
|
|
626
|
-
])) :
|
|
625
|
+
])) : h("", !0);
|
|
627
626
|
};
|
|
628
627
|
}
|
|
629
628
|
});
|
|
630
|
-
const
|
|
629
|
+
const _e = /* @__PURE__ */ I(be, [["__scopeId", "data-v-91c833b3"]]), ce = {
|
|
631
630
|
type: "uvui-textarea",
|
|
632
631
|
name: "文本域",
|
|
633
632
|
icon: "Textarea",
|
|
634
633
|
fontIcon: "icon-24gl-grid",
|
|
635
634
|
page: "index,activity",
|
|
636
|
-
viewCom:
|
|
637
|
-
editCom:
|
|
635
|
+
viewCom: ve,
|
|
636
|
+
editCom: _e,
|
|
638
637
|
limit: 0
|
|
639
|
-
},
|
|
638
|
+
}, xe = {
|
|
640
639
|
type: "uvui-textarea",
|
|
641
640
|
data: {},
|
|
642
641
|
options: {
|
|
@@ -661,10 +660,10 @@ const se = /* @__PURE__ */ k(ne, [["__scopeId", "data-v-91c833b3"]]), ie = {
|
|
|
661
660
|
fill: !0
|
|
662
661
|
//组件是否铺满父容器
|
|
663
662
|
}
|
|
664
|
-
},
|
|
663
|
+
}, ye = _({
|
|
665
664
|
name: "NumberBoxView"
|
|
666
|
-
}),
|
|
667
|
-
...
|
|
665
|
+
}), ge = /* @__PURE__ */ _({
|
|
666
|
+
...ye,
|
|
668
667
|
props: {
|
|
669
668
|
data: {
|
|
670
669
|
type: Object,
|
|
@@ -672,38 +671,38 @@ const se = /* @__PURE__ */ k(ne, [["__scopeId", "data-v-91c833b3"]]), ie = {
|
|
|
672
671
|
}
|
|
673
672
|
}
|
|
674
673
|
},
|
|
675
|
-
setup(
|
|
676
|
-
const
|
|
677
|
-
return
|
|
678
|
-
() =>
|
|
679
|
-
(
|
|
680
|
-
l.value =
|
|
674
|
+
setup(d) {
|
|
675
|
+
const s = d, l = c(1);
|
|
676
|
+
return X(
|
|
677
|
+
() => s.data.options,
|
|
678
|
+
(p) => {
|
|
679
|
+
l.value = p;
|
|
681
680
|
}
|
|
682
|
-
), (
|
|
681
|
+
), (p, m) => d.data && d.data.options ? (g(), U("div", {
|
|
683
682
|
key: 0,
|
|
684
683
|
class: "number-box-wrapper",
|
|
685
|
-
style:
|
|
684
|
+
style: O({ "justify-content": d.data.options.align })
|
|
686
685
|
}, [
|
|
687
|
-
e(u(
|
|
688
|
-
min:
|
|
686
|
+
e(u(Z), {
|
|
687
|
+
min: d.data.options.min,
|
|
689
688
|
modelValue: l.value,
|
|
690
|
-
"onUpdate:modelValue":
|
|
691
|
-
max:
|
|
692
|
-
integer:
|
|
689
|
+
"onUpdate:modelValue": m[0] || (m[0] = (w) => l.value = w),
|
|
690
|
+
max: d.data.options.max,
|
|
691
|
+
integer: d.data.options.integer,
|
|
693
692
|
disabled: !0,
|
|
694
|
-
inputWidth:
|
|
695
|
-
step:
|
|
693
|
+
inputWidth: d.data.options.inputWidth + "px",
|
|
694
|
+
step: d.data.options.step
|
|
696
695
|
}, null, 8, ["min", "modelValue", "max", "integer", "inputWidth", "step"])
|
|
697
|
-
], 4)) :
|
|
696
|
+
], 4)) : h("", !0);
|
|
698
697
|
}
|
|
699
698
|
});
|
|
700
|
-
const
|
|
699
|
+
const we = /* @__PURE__ */ I(ge, [["__scopeId", "data-v-d025175e"]]), Ue = {
|
|
701
700
|
key: 0,
|
|
702
701
|
class: "banner-content"
|
|
703
|
-
},
|
|
702
|
+
}, he = _({
|
|
704
703
|
name: "NumberBoxData"
|
|
705
|
-
}),
|
|
706
|
-
...
|
|
704
|
+
}), Ce = /* @__PURE__ */ _({
|
|
705
|
+
...he,
|
|
707
706
|
props: {
|
|
708
707
|
data: {
|
|
709
708
|
type: Object,
|
|
@@ -711,16 +710,16 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
711
710
|
}
|
|
712
711
|
}
|
|
713
712
|
},
|
|
714
|
-
setup(
|
|
715
|
-
const
|
|
716
|
-
return
|
|
717
|
-
console.log(
|
|
718
|
-
}), (
|
|
719
|
-
const n =
|
|
720
|
-
return
|
|
721
|
-
e(
|
|
713
|
+
setup(d) {
|
|
714
|
+
const s = d, l = c(), p = c(), m = c(!1);
|
|
715
|
+
return L(() => {
|
|
716
|
+
console.log(s.data, s, "参数接收"), s.data && (p.value = s.data.data, l.value = s.data.options, m.value = !0);
|
|
717
|
+
}), (w, a) => {
|
|
718
|
+
const n = v("el-input-number"), i = v("el-form-item"), f = v("el-switch"), C = v("el-color-picker"), k = v("el-radio-button"), E = v("el-radio-group"), B = v("el-form");
|
|
719
|
+
return m.value ? (g(), U("div", Ue, [
|
|
720
|
+
e(B, { "label-width": "120px" }, {
|
|
722
721
|
default: t(() => [
|
|
723
|
-
e(
|
|
722
|
+
e(i, { label: "当前值" }, {
|
|
724
723
|
default: t(() => [
|
|
725
724
|
e(n, {
|
|
726
725
|
modelValue: l.value.value,
|
|
@@ -732,7 +731,7 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
732
731
|
]),
|
|
733
732
|
_: 1
|
|
734
733
|
}),
|
|
735
|
-
e(
|
|
734
|
+
e(i, { label: "最小值" }, {
|
|
736
735
|
default: t(() => [
|
|
737
736
|
e(n, {
|
|
738
737
|
modelValue: l.value.min,
|
|
@@ -741,7 +740,7 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
741
740
|
]),
|
|
742
741
|
_: 1
|
|
743
742
|
}),
|
|
744
|
-
e(
|
|
743
|
+
e(i, { label: "最大值" }, {
|
|
745
744
|
default: t(() => [
|
|
746
745
|
e(n, {
|
|
747
746
|
modelValue: l.value.max,
|
|
@@ -750,7 +749,7 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
750
749
|
]),
|
|
751
750
|
_: 1
|
|
752
751
|
}),
|
|
753
|
-
e(
|
|
752
|
+
e(i, { label: "步长" }, {
|
|
754
753
|
default: t(() => [
|
|
755
754
|
e(n, {
|
|
756
755
|
modelValue: l.value.step,
|
|
@@ -761,34 +760,34 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
761
760
|
]),
|
|
762
761
|
_: 1
|
|
763
762
|
}),
|
|
764
|
-
e(
|
|
763
|
+
e(i, { label: "只能正整数" }, {
|
|
765
764
|
default: t(() => [
|
|
766
|
-
e(
|
|
765
|
+
e(f, {
|
|
767
766
|
modelValue: l.value.integer,
|
|
768
767
|
"onUpdate:modelValue": a[4] || (a[4] = (o) => l.value.integer = o)
|
|
769
768
|
}, null, 8, ["modelValue"])
|
|
770
769
|
]),
|
|
771
770
|
_: 1
|
|
772
771
|
}),
|
|
773
|
-
e(
|
|
772
|
+
e(i, { label: "禁用操作" }, {
|
|
774
773
|
default: t(() => [
|
|
775
|
-
e(
|
|
774
|
+
e(f, {
|
|
776
775
|
modelValue: l.value.disabled,
|
|
777
776
|
"onUpdate:modelValue": a[5] || (a[5] = (o) => l.value.disabled = o)
|
|
778
777
|
}, null, 8, ["modelValue"])
|
|
779
778
|
]),
|
|
780
779
|
_: 1
|
|
781
780
|
}),
|
|
782
|
-
e(
|
|
781
|
+
e(i, { label: "禁止输入框" }, {
|
|
783
782
|
default: t(() => [
|
|
784
|
-
e(
|
|
783
|
+
e(f, {
|
|
785
784
|
modelValue: l.value.disabledInput,
|
|
786
785
|
"onUpdate:modelValue": a[6] || (a[6] = (o) => l.value.disabledInput = o)
|
|
787
786
|
}, null, 8, ["modelValue"])
|
|
788
787
|
]),
|
|
789
788
|
_: 1
|
|
790
789
|
}),
|
|
791
|
-
e(
|
|
790
|
+
e(i, { label: "输入框宽度(px)" }, {
|
|
792
791
|
default: t(() => [
|
|
793
792
|
e(n, {
|
|
794
793
|
modelValue: l.value.inputWidth,
|
|
@@ -799,25 +798,25 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
799
798
|
]),
|
|
800
799
|
_: 1
|
|
801
800
|
}),
|
|
802
|
-
e(
|
|
801
|
+
e(i, { label: "显示减少按钮" }, {
|
|
803
802
|
default: t(() => [
|
|
804
|
-
e(
|
|
803
|
+
e(f, {
|
|
805
804
|
modelValue: l.value.showMinus,
|
|
806
805
|
"onUpdate:modelValue": a[8] || (a[8] = (o) => l.value.showMinus = o)
|
|
807
806
|
}, null, 8, ["modelValue"])
|
|
808
807
|
]),
|
|
809
808
|
_: 1
|
|
810
809
|
}),
|
|
811
|
-
e(
|
|
810
|
+
e(i, { label: "显示增加按钮" }, {
|
|
812
811
|
default: t(() => [
|
|
813
|
-
e(
|
|
812
|
+
e(f, {
|
|
814
813
|
modelValue: l.value.showPlus,
|
|
815
814
|
"onUpdate:modelValue": a[9] || (a[9] = (o) => l.value.showPlus = o)
|
|
816
815
|
}, null, 8, ["modelValue"])
|
|
817
816
|
]),
|
|
818
817
|
_: 1
|
|
819
818
|
}),
|
|
820
|
-
e(
|
|
819
|
+
e(i, { label: "小数位数" }, {
|
|
821
820
|
default: t(() => [
|
|
822
821
|
e(n, {
|
|
823
822
|
modelValue: l.value.decimalLength,
|
|
@@ -828,18 +827,18 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
828
827
|
]),
|
|
829
828
|
_: 1
|
|
830
829
|
}),
|
|
831
|
-
e(
|
|
830
|
+
e(i, { label: "允许长按" }, {
|
|
832
831
|
default: t(() => [
|
|
833
|
-
e(
|
|
832
|
+
e(f, {
|
|
834
833
|
modelValue: l.value.longPress,
|
|
835
834
|
"onUpdate:modelValue": a[11] || (a[11] = (o) => l.value.longPress = o)
|
|
836
835
|
}, null, 8, ["modelValue"])
|
|
837
836
|
]),
|
|
838
837
|
_: 1
|
|
839
838
|
}),
|
|
840
|
-
e(
|
|
839
|
+
e(i, { label: "文字颜色" }, {
|
|
841
840
|
default: t(() => [
|
|
842
|
-
e(
|
|
841
|
+
e(C, {
|
|
843
842
|
modelValue: l.value.color,
|
|
844
843
|
"onUpdate:modelValue": a[12] || (a[12] = (o) => l.value.color = o),
|
|
845
844
|
"show-alpha": ""
|
|
@@ -847,7 +846,7 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
847
846
|
]),
|
|
848
847
|
_: 1
|
|
849
848
|
}),
|
|
850
|
-
e(
|
|
849
|
+
e(i, { label: "按钮大小(px)" }, {
|
|
851
850
|
default: t(() => [
|
|
852
851
|
e(n, {
|
|
853
852
|
modelValue: l.value.buttonSize,
|
|
@@ -858,9 +857,9 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
858
857
|
]),
|
|
859
858
|
_: 1
|
|
860
859
|
}),
|
|
861
|
-
e(
|
|
860
|
+
e(i, { label: "背景颜色" }, {
|
|
862
861
|
default: t(() => [
|
|
863
|
-
e(
|
|
862
|
+
e(C, {
|
|
864
863
|
modelValue: l.value.bgColor,
|
|
865
864
|
"onUpdate:modelValue": a[14] || (a[14] = (o) => l.value.bgColor = o),
|
|
866
865
|
"show-alpha": ""
|
|
@@ -868,46 +867,46 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
868
867
|
]),
|
|
869
868
|
_: 1
|
|
870
869
|
}),
|
|
871
|
-
e(
|
|
870
|
+
e(i, { label: "禁用增加按钮" }, {
|
|
872
871
|
default: t(() => [
|
|
873
|
-
e(
|
|
872
|
+
e(f, {
|
|
874
873
|
modelValue: l.value.disablePlus,
|
|
875
874
|
"onUpdate:modelValue": a[15] || (a[15] = (o) => l.value.disablePlus = o)
|
|
876
875
|
}, null, 8, ["modelValue"])
|
|
877
876
|
]),
|
|
878
877
|
_: 1
|
|
879
878
|
}),
|
|
880
|
-
e(
|
|
879
|
+
e(i, { label: "禁用减少按钮" }, {
|
|
881
880
|
default: t(() => [
|
|
882
|
-
e(
|
|
881
|
+
e(f, {
|
|
883
882
|
modelValue: l.value.disableMinus,
|
|
884
883
|
"onUpdate:modelValue": a[16] || (a[16] = (o) => l.value.disableMinus = o)
|
|
885
884
|
}, null, 8, ["modelValue"])
|
|
886
885
|
]),
|
|
887
886
|
_: 1
|
|
888
887
|
}),
|
|
889
|
-
e(
|
|
888
|
+
e(i, { label: "对齐方式" }, {
|
|
890
889
|
default: t(() => [
|
|
891
|
-
e(
|
|
890
|
+
e(E, {
|
|
892
891
|
modelValue: l.value.align,
|
|
893
892
|
"onUpdate:modelValue": a[17] || (a[17] = (o) => l.value.align = o)
|
|
894
893
|
}, {
|
|
895
894
|
default: t(() => [
|
|
896
|
-
e(
|
|
895
|
+
e(k, { label: "left" }, {
|
|
897
896
|
default: t(() => [
|
|
898
|
-
|
|
897
|
+
r("左对齐")
|
|
899
898
|
]),
|
|
900
899
|
_: 1
|
|
901
900
|
}),
|
|
902
|
-
e(
|
|
901
|
+
e(k, { label: "center" }, {
|
|
903
902
|
default: t(() => [
|
|
904
|
-
|
|
903
|
+
r("居中对齐")
|
|
905
904
|
]),
|
|
906
905
|
_: 1
|
|
907
906
|
}),
|
|
908
|
-
e(
|
|
907
|
+
e(k, { label: "right" }, {
|
|
909
908
|
default: t(() => [
|
|
910
|
-
|
|
909
|
+
r("右对齐")
|
|
911
910
|
]),
|
|
912
911
|
_: 1
|
|
913
912
|
})
|
|
@@ -917,9 +916,9 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
917
916
|
]),
|
|
918
917
|
_: 1
|
|
919
918
|
}),
|
|
920
|
-
e(
|
|
919
|
+
e(i, { label: "铺满" }, {
|
|
921
920
|
default: t(() => [
|
|
922
|
-
e(
|
|
921
|
+
e(f, {
|
|
923
922
|
modelValue: l.value.fill,
|
|
924
923
|
"onUpdate:modelValue": a[18] || (a[18] = (o) => l.value.fill = o)
|
|
925
924
|
}, null, 8, ["modelValue"])
|
|
@@ -929,20 +928,20 @@ const ve = /* @__PURE__ */ k(re, [["__scopeId", "data-v-d025175e"]]), Ve = {
|
|
|
929
928
|
]),
|
|
930
929
|
_: 1
|
|
931
930
|
})
|
|
932
|
-
])) :
|
|
931
|
+
])) : h("", !0);
|
|
933
932
|
};
|
|
934
933
|
}
|
|
935
934
|
});
|
|
936
|
-
const
|
|
935
|
+
const ke = /* @__PURE__ */ I(Ce, [["__scopeId", "data-v-0130b026"]]), Te = {
|
|
937
936
|
type: "uvui-numberBox",
|
|
938
937
|
name: "步进器",
|
|
939
938
|
icon: "Postcard",
|
|
940
939
|
fontIcon: "icon-shangpinanniu_changtiaoanniu",
|
|
941
940
|
page: "index,activity",
|
|
942
|
-
viewCom:
|
|
943
|
-
editCom:
|
|
941
|
+
viewCom: we,
|
|
942
|
+
editCom: ke,
|
|
944
943
|
limit: 0
|
|
945
|
-
},
|
|
944
|
+
}, Ie = {
|
|
946
945
|
data: {},
|
|
947
946
|
options: {
|
|
948
947
|
value: 1,
|
|
@@ -984,13 +983,13 @@ const _e = /* @__PURE__ */ k(fe, [["__scopeId", "data-v-0130b026"]]), ce = {
|
|
|
984
983
|
fill: !1
|
|
985
984
|
//是否铺满
|
|
986
985
|
}
|
|
987
|
-
},
|
|
986
|
+
}, Be = {
|
|
988
987
|
key: 0,
|
|
989
988
|
class: "cell_box"
|
|
990
|
-
},
|
|
989
|
+
}, Se = _({
|
|
991
990
|
name: "CollapseView"
|
|
992
|
-
}),
|
|
993
|
-
...
|
|
991
|
+
}), Ee = /* @__PURE__ */ _({
|
|
992
|
+
...Se,
|
|
994
993
|
props: {
|
|
995
994
|
data: {
|
|
996
995
|
type: Object,
|
|
@@ -998,42 +997,42 @@ const _e = /* @__PURE__ */ k(fe, [["__scopeId", "data-v-0130b026"]]), ce = {
|
|
|
998
997
|
}
|
|
999
998
|
}
|
|
1000
999
|
},
|
|
1001
|
-
setup(
|
|
1002
|
-
const
|
|
1003
|
-
return (
|
|
1004
|
-
e(u(
|
|
1000
|
+
setup(d) {
|
|
1001
|
+
const s = d, l = c([]), p = J(() => s.data.data && s.data.data.list ? (l.value = s.data.data.list.map((m, w) => m.title + "_" + w), s.data.data.list) : []);
|
|
1002
|
+
return (m, w) => d.data && d.data.options ? (g(), U("div", Be, [
|
|
1003
|
+
e(u(ee), {
|
|
1005
1004
|
modelValue: l.value,
|
|
1006
|
-
"onUpdate:modelValue":
|
|
1005
|
+
"onUpdate:modelValue": w[0] || (w[0] = (a) => l.value = a)
|
|
1007
1006
|
}, {
|
|
1008
1007
|
default: t(() => [
|
|
1009
|
-
(
|
|
1008
|
+
(g(!0), U(F, null, H(u(p), (a, n) => (g(), N(u(le), {
|
|
1010
1009
|
key: n,
|
|
1011
1010
|
name: a.title + "_" + n
|
|
1012
1011
|
}, {
|
|
1013
1012
|
title: t(() => [
|
|
1014
|
-
|
|
1013
|
+
r(P(a.title), 1)
|
|
1015
1014
|
]),
|
|
1016
1015
|
right: t(() => [
|
|
1017
|
-
|
|
1016
|
+
r(P(a.value), 1)
|
|
1018
1017
|
]),
|
|
1019
1018
|
default: t(() => [
|
|
1020
|
-
|
|
1019
|
+
r(" " + P(a.label), 1)
|
|
1021
1020
|
]),
|
|
1022
1021
|
_: 2
|
|
1023
1022
|
}, 1032, ["name"]))), 128))
|
|
1024
1023
|
]),
|
|
1025
1024
|
_: 1
|
|
1026
1025
|
}, 8, ["modelValue"])
|
|
1027
|
-
])) :
|
|
1026
|
+
])) : h("", !0);
|
|
1028
1027
|
}
|
|
1029
1028
|
});
|
|
1030
|
-
const
|
|
1029
|
+
const $e = /* @__PURE__ */ I(Ee, [["__scopeId", "data-v-cd08eed6"]]), S = (d) => (K("data-v-c904acd0"), d = d(), Q(), d), ze = {
|
|
1031
1030
|
key: 0,
|
|
1032
1031
|
class: "banner-content"
|
|
1033
|
-
},
|
|
1032
|
+
}, Pe = { class: "l-info" }, Oe = { class: "mt-5px" }, Le = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "标题:", -1)), De = { class: "mt-5px" }, Ne = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "内容:", -1)), je = { class: "mt-5px" }, Me = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "描述:", -1)), qe = { class: "mt-5px" }, We = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "禁用:", -1)), Fe = { class: "mt-5px" }, He = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "右箭头:", -1)), Ae = { class: "mt-5px" }, Re = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "点击反馈:", -1)), Ge = { class: "mt-5px" }, Xe = /* @__PURE__ */ S(() => /* @__PURE__ */ b("span", null, "显示内边框:", -1)), Je = { class: "mt-5px" }, Ke = _({
|
|
1034
1033
|
name: "CollapseData"
|
|
1035
|
-
}),
|
|
1036
|
-
...
|
|
1034
|
+
}), Qe = /* @__PURE__ */ _({
|
|
1035
|
+
...Ke,
|
|
1037
1036
|
props: {
|
|
1038
1037
|
data: {
|
|
1039
1038
|
type: Object,
|
|
@@ -1041,11 +1040,11 @@ const Ue = /* @__PURE__ */ k(we, [["__scopeId", "data-v-cd08eed6"]]), I = (s) =>
|
|
|
1041
1040
|
}
|
|
1042
1041
|
}
|
|
1043
1042
|
},
|
|
1044
|
-
setup(
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1043
|
+
setup(d) {
|
|
1044
|
+
const s = d, l = c(), p = c(), m = c(!1), w = (n) => {
|
|
1045
|
+
p.value.list.splice(n, 1);
|
|
1047
1046
|
}, a = () => {
|
|
1048
|
-
|
|
1047
|
+
p.value.list.push({
|
|
1049
1048
|
title: "面板标题",
|
|
1050
1049
|
// 面板标题
|
|
1051
1050
|
value: "右侧内容",
|
|
@@ -1062,18 +1061,18 @@ const Ue = /* @__PURE__ */ k(we, [["__scopeId", "data-v-cd08eed6"]]), I = (s) =>
|
|
|
1062
1061
|
//是否显示内边框
|
|
1063
1062
|
});
|
|
1064
1063
|
};
|
|
1065
|
-
return
|
|
1066
|
-
|
|
1067
|
-
}), (n,
|
|
1068
|
-
const
|
|
1069
|
-
return
|
|
1070
|
-
e(
|
|
1064
|
+
return L(() => {
|
|
1065
|
+
s.data && (p.value = s.data.data, l.value = s.data.options, m.value = !0);
|
|
1066
|
+
}), (n, i) => {
|
|
1067
|
+
const f = v("el-switch"), C = v("el-form-item"), k = v("el-form"), E = v("el-button"), B = v("el-input");
|
|
1068
|
+
return m.value ? (g(), U("div", ze, [
|
|
1069
|
+
e(k, { "label-width": "100px" }, {
|
|
1071
1070
|
default: t(() => [
|
|
1072
|
-
e(
|
|
1071
|
+
e(C, { label: "是否铺满" }, {
|
|
1073
1072
|
default: t(() => [
|
|
1074
|
-
e(
|
|
1073
|
+
e(f, {
|
|
1075
1074
|
modelValue: l.value.fill,
|
|
1076
|
-
"onUpdate:modelValue":
|
|
1075
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => l.value.fill = o)
|
|
1077
1076
|
}, null, 8, ["modelValue"])
|
|
1078
1077
|
]),
|
|
1079
1078
|
_: 1
|
|
@@ -1081,24 +1080,24 @@ const Ue = /* @__PURE__ */ k(we, [["__scopeId", "data-v-cd08eed6"]]), I = (s) =>
|
|
|
1081
1080
|
]),
|
|
1082
1081
|
_: 1
|
|
1083
1082
|
}),
|
|
1084
|
-
e(
|
|
1083
|
+
e(E, {
|
|
1085
1084
|
type: "primary",
|
|
1086
1085
|
onClick: a,
|
|
1087
1086
|
class: "mt-10px"
|
|
1088
1087
|
}, {
|
|
1089
1088
|
default: t(() => [
|
|
1090
|
-
|
|
1089
|
+
r("添加项")
|
|
1091
1090
|
]),
|
|
1092
1091
|
_: 1
|
|
1093
1092
|
}),
|
|
1094
|
-
(
|
|
1093
|
+
(g(!0), U(F, null, H(p.value.list, (o, j) => (g(), U("div", {
|
|
1095
1094
|
class: "item-list",
|
|
1096
|
-
key:
|
|
1095
|
+
key: j
|
|
1097
1096
|
}, [
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
e(
|
|
1097
|
+
b("div", Pe, [
|
|
1098
|
+
b("div", Oe, [
|
|
1099
|
+
Le,
|
|
1100
|
+
e(B, {
|
|
1102
1101
|
modelValue: o.title,
|
|
1103
1102
|
"onUpdate:modelValue": (x) => o.title = x,
|
|
1104
1103
|
style: { width: "180px" },
|
|
@@ -1106,9 +1105,9 @@ const Ue = /* @__PURE__ */ k(we, [["__scopeId", "data-v-cd08eed6"]]), I = (s) =>
|
|
|
1106
1105
|
clearable: ""
|
|
1107
1106
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1108
1107
|
]),
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
e(
|
|
1108
|
+
b("div", De, [
|
|
1109
|
+
Ne,
|
|
1110
|
+
e(B, {
|
|
1112
1111
|
modelValue: o.value,
|
|
1113
1112
|
"onUpdate:modelValue": (x) => o.value = x,
|
|
1114
1113
|
style: { width: "180px" },
|
|
@@ -1116,9 +1115,9 @@ const Ue = /* @__PURE__ */ k(we, [["__scopeId", "data-v-cd08eed6"]]), I = (s) =>
|
|
|
1116
1115
|
clearable: ""
|
|
1117
1116
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1118
1117
|
]),
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
e(
|
|
1118
|
+
b("div", je, [
|
|
1119
|
+
Me,
|
|
1120
|
+
e(B, {
|
|
1122
1121
|
modelValue: o.label,
|
|
1123
1122
|
"onUpdate:modelValue": (x) => o.label = x,
|
|
1124
1123
|
style: { width: "180px" },
|
|
@@ -1126,62 +1125,62 @@ const Ue = /* @__PURE__ */ k(we, [["__scopeId", "data-v-cd08eed6"]]), I = (s) =>
|
|
|
1126
1125
|
clearable: ""
|
|
1127
1126
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1128
1127
|
]),
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
e(
|
|
1128
|
+
b("div", qe, [
|
|
1129
|
+
We,
|
|
1130
|
+
e(f, {
|
|
1132
1131
|
modelValue: o.disabled,
|
|
1133
1132
|
"onUpdate:modelValue": (x) => o.disabled = x
|
|
1134
1133
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1135
1134
|
]),
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
e(
|
|
1135
|
+
b("div", Fe, [
|
|
1136
|
+
He,
|
|
1137
|
+
e(f, {
|
|
1139
1138
|
modelValue: o.isLink,
|
|
1140
1139
|
"onUpdate:modelValue": (x) => o.isLink = x
|
|
1141
1140
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1142
1141
|
]),
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
e(
|
|
1142
|
+
b("div", Ae, [
|
|
1143
|
+
Re,
|
|
1144
|
+
e(f, {
|
|
1146
1145
|
modelValue: o.clickable,
|
|
1147
1146
|
"onUpdate:modelValue": (x) => o.clickable = x
|
|
1148
1147
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1149
1148
|
]),
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
e(
|
|
1149
|
+
b("div", Ge, [
|
|
1150
|
+
Xe,
|
|
1151
|
+
e(f, {
|
|
1153
1152
|
modelValue: o.border,
|
|
1154
1153
|
"onUpdate:modelValue": (x) => o.border = x
|
|
1155
1154
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1156
1155
|
]),
|
|
1157
|
-
|
|
1158
|
-
e(
|
|
1156
|
+
b("div", Je, [
|
|
1157
|
+
e(E, {
|
|
1159
1158
|
type: "danger",
|
|
1160
|
-
onClick: (x) =>
|
|
1159
|
+
onClick: (x) => w(j),
|
|
1161
1160
|
size: "small"
|
|
1162
1161
|
}, {
|
|
1163
1162
|
default: t(() => [
|
|
1164
|
-
|
|
1163
|
+
r("删除")
|
|
1165
1164
|
]),
|
|
1166
1165
|
_: 2
|
|
1167
1166
|
}, 1032, ["onClick"])
|
|
1168
1167
|
])
|
|
1169
1168
|
])
|
|
1170
1169
|
]))), 128))
|
|
1171
|
-
])) :
|
|
1170
|
+
])) : h("", !0);
|
|
1172
1171
|
};
|
|
1173
1172
|
}
|
|
1174
1173
|
});
|
|
1175
|
-
const
|
|
1174
|
+
const Ye = /* @__PURE__ */ I(Qe, [["__scopeId", "data-v-c904acd0"]]), Ze = {
|
|
1176
1175
|
type: "uvui-collapse",
|
|
1177
1176
|
name: "折叠面板",
|
|
1178
1177
|
icon: "Postcard",
|
|
1179
1178
|
fontIcon: "icon-danyuange1",
|
|
1180
1179
|
page: "index,activity",
|
|
1181
|
-
viewCom:
|
|
1182
|
-
editCom:
|
|
1180
|
+
viewCom: $e,
|
|
1181
|
+
editCom: Ye,
|
|
1183
1182
|
limit: 0
|
|
1184
|
-
},
|
|
1183
|
+
}, el = {
|
|
1185
1184
|
data: {
|
|
1186
1185
|
list: [
|
|
1187
1186
|
{
|
|
@@ -1206,12 +1205,15 @@ const He = /* @__PURE__ */ k(We, [["__scopeId", "data-v-c904acd0"]]), Ae = {
|
|
|
1206
1205
|
fill: !1
|
|
1207
1206
|
//组件是否铺满父容器
|
|
1208
1207
|
}
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1211
|
-
|
|
1208
|
+
}, ul = { buttonTypeList: se, textareaTypeList: ce, numberBoxTypeList: Te, collapseTypeList: Ze }, dl = { buttonOptions: ie, textareaOptions: xe, numberBoxOptions: Ie, collapseOptions: el }, ll = [R, A], nl = {
|
|
1209
|
+
install(d) {
|
|
1210
|
+
ll.forEach((s) => {
|
|
1211
|
+
d.component(s.name, s);
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1212
1214
|
};
|
|
1213
1215
|
export {
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1216
|
+
nl as default,
|
|
1217
|
+
dl as uvUIOptions,
|
|
1218
|
+
ul as uvUiList
|
|
1217
1219
|
};
|