vuv-ui 1.0.12 → 1.0.14
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 +1 -1
- package/src/components/collapse/Data.vue +1 -1
- package/src/components/collapse/View.vue +1 -1
- package/src/components/collapse/index.ts +4 -4
- package/src/components/index.ts +18 -1
- package/src/components/numberBxo/Data.vue +1 -1
- package/src/components/numberBxo/View.vue +1 -1
- package/src/components/numberBxo/index.ts +4 -4
- package/src/components/textarea/Data.vue +1 -1
- package/src/components/textarea/View.vue +2 -2
- package/src/components/textarea/index.ts +4 -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 +2 -2
- package/vuv-ui/style.css +1 -1
- package/vuv-ui/vuv-ui.es.js +144 -136
- package/vuv-ui/vuv-ui.umd.js +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import uvuiCollapseView from './View.vue';
|
|
2
|
+
import uvuiCollapseData from './Data.vue';
|
|
3
3
|
|
|
4
4
|
const collapseTypeList = {
|
|
5
5
|
type: 'uvui-collapse',
|
|
@@ -7,8 +7,8 @@ const collapseTypeList = {
|
|
|
7
7
|
icon: 'Postcard',
|
|
8
8
|
fontIcon: 'icon-danyuange1',
|
|
9
9
|
page: 'index,activity',
|
|
10
|
-
viewCom:
|
|
11
|
-
editCom:
|
|
10
|
+
viewCom: uvuiCollapseView,
|
|
11
|
+
editCom: uvuiCollapseData,
|
|
12
12
|
limit: 0
|
|
13
13
|
};
|
|
14
14
|
|
package/src/components/index.ts
CHANGED
|
@@ -3,13 +3,30 @@ import uvuiButtonData from './button/Data.vue';
|
|
|
3
3
|
import uvuiButtonView from './button/View.vue';
|
|
4
4
|
|
|
5
5
|
import { textareaTypeList, textareaOptions } from './textarea/index';
|
|
6
|
+
import uvuiTextareaData from './textarea/Data.vue';
|
|
7
|
+
import uvuiTextareaView from './textarea/View.vue';
|
|
8
|
+
|
|
6
9
|
import { numberBoxTypeList, numberBoxOptions } from './numberBxo/index';
|
|
10
|
+
import uvuiNumberBoxData from './numberBxo/Data.vue';
|
|
11
|
+
import uvuiNumberBoxView from './numberBxo/View.vue';
|
|
12
|
+
|
|
7
13
|
import { collapseTypeList, collapseOptions } from './collapse/index';
|
|
14
|
+
import uvuiCollapseData from './collapse/Data.vue';
|
|
15
|
+
import uvuiCollapseView from './collapse/View.vue';
|
|
8
16
|
|
|
9
17
|
export const uvUiList = { buttonTypeList, textareaTypeList, numberBoxTypeList, collapseTypeList };
|
|
10
18
|
export const uvUIOptions = { buttonOptions, textareaOptions, numberBoxOptions, collapseOptions };
|
|
11
19
|
|
|
12
|
-
const component = [
|
|
20
|
+
const component = [
|
|
21
|
+
uvuiButtonData,
|
|
22
|
+
uvuiButtonView,
|
|
23
|
+
uvuiTextareaData,
|
|
24
|
+
uvuiTextareaView,
|
|
25
|
+
uvuiNumberBoxData,
|
|
26
|
+
uvuiNumberBoxView,
|
|
27
|
+
uvuiCollapseData,
|
|
28
|
+
uvuiCollapseView
|
|
29
|
+
];
|
|
13
30
|
|
|
14
31
|
const hsryvuvUI = {
|
|
15
32
|
install(App: any) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import uvuiNumberBoxView from './View.vue';
|
|
2
|
+
import uvuiNumberBoxData from './Data.vue';
|
|
3
3
|
|
|
4
4
|
const numberBoxTypeList = {
|
|
5
5
|
type: 'uvui-numberBox',
|
|
@@ -7,8 +7,8 @@ const numberBoxTypeList = {
|
|
|
7
7
|
icon: 'Postcard',
|
|
8
8
|
fontIcon: 'icon-shangpinanniu_changtiaoanniu',
|
|
9
9
|
page: 'index,activity',
|
|
10
|
-
viewCom:
|
|
11
|
-
editCom:
|
|
10
|
+
viewCom: uvuiNumberBoxView,
|
|
11
|
+
editCom: uvuiNumberBoxData,
|
|
12
12
|
limit: 0
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import uvuiTextareaView from './View.vue';
|
|
2
|
+
import uvuiTextareaData from './Data.vue';
|
|
3
3
|
|
|
4
4
|
const textareaTypeList = {
|
|
5
5
|
type: 'uvui-textarea',
|
|
@@ -7,8 +7,8 @@ const textareaTypeList = {
|
|
|
7
7
|
icon: 'Textarea',
|
|
8
8
|
fontIcon: 'icon-24gl-grid',
|
|
9
9
|
page: 'index,activity',
|
|
10
|
-
viewCom:
|
|
11
|
-
editCom:
|
|
10
|
+
viewCom: uvuiTextareaView,
|
|
11
|
+
editCom: uvuiTextareaData,
|
|
12
12
|
limit: 0
|
|
13
13
|
};
|
|
14
14
|
const textareaOptions = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
data: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
|
-
default: () =>
|
|
4
|
+
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
7
|
data: {
|
|
8
8
|
type: ObjectConstructor;
|
|
9
|
-
default: () =>
|
|
9
|
+
default: () => {};
|
|
10
10
|
};
|
|
11
11
|
}>>, {
|
|
12
12
|
data: Record<string, any>;
|
|
@@ -20,12 +20,12 @@ declare const buttonTypeList: {
|
|
|
20
20
|
editCom: import('vue').DefineComponent<{
|
|
21
21
|
data: {
|
|
22
22
|
type: ObjectConstructor;
|
|
23
|
-
default: () =>
|
|
23
|
+
default: () => {};
|
|
24
24
|
};
|
|
25
25
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
26
|
data: {
|
|
27
27
|
type: ObjectConstructor;
|
|
28
|
-
default: () =>
|
|
28
|
+
default: () => {};
|
|
29
29
|
};
|
|
30
30
|
}>>, {
|
|
31
31
|
data: Record<string, any>;
|
|
@@ -21,12 +21,12 @@ export declare const uvUiList: {
|
|
|
21
21
|
editCom: import('vue').DefineComponent<{
|
|
22
22
|
data: {
|
|
23
23
|
type: ObjectConstructor;
|
|
24
|
-
default: () =>
|
|
24
|
+
default: () => {};
|
|
25
25
|
};
|
|
26
26
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
27
|
data: {
|
|
28
28
|
type: ObjectConstructor;
|
|
29
|
-
default: () =>
|
|
29
|
+
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
}>>, {
|
|
32
32
|
data: Record<string, any>;
|
package/vuv-ui/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.button_box[data-v-ddf92851]{display:flex;align-items:center;margin-top:10px}.button_box[data-v-ddf92851] .uv-button{width:100%;height:100%}.plain[data-v-ddf92851] .uv-button{background-color:transparent!important}.banner-content[data-v-
|
|
1
|
+
.button_box[data-v-ddf92851]{display:flex;align-items:center;margin-top:10px}.button_box[data-v-ddf92851] .uv-button{width:100%;height:100%}.plain[data-v-ddf92851] .uv-button{background-color:transparent!important}.banner-content[data-v-b6cfa2c3]{overflow-x:auto}.item-list[data-v-b6cfa2c3]{display:flex;justify-content:space-between;margin:10px;border:1px solid #c8c8c8;border-radius:4px;padding:5px}.item-list .l-info[data-v-b6cfa2c3]{font-size:12px;padding-top:4px;width:calc(100% - 100px)}.item-list .l-info p[data-v-b6cfa2c3]{margin:5px 0 0;white-space:nowrap;overflow:hidden;display:flex}.item-list .l-info p .link[data-v-b6cfa2c3]{color:#1b8bff;cursor:pointer}.item-list .l-info p .text[data-v-b6cfa2c3]{white-space:nowrap;text-align:-webkit-auto;text-overflow:ellipsis;overflow:hidden}.item-list .r-image[data-v-b6cfa2c3]{text-align:right}.item-list .r-image .el-icon-close[data-v-b6cfa2c3]{color:#999;font-size:12px;font-weight:600;margin-bottom:6px;cursor:pointer}.item-list .r-image .el-icon-close[data-v-b6cfa2c3]:hover{color:red}.item-list .r-image .image-box[data-v-b6cfa2c3]{width:100px;height:70px;border-radius:5px;overflow:hidden;position:relative;background:#fff;display:flex;justify-content:center;align-items:center}.item-list .r-image .image-box img[data-v-b6cfa2c3]{max-width:100%}.item-list .r-image .image-box .placeholder-text[data-v-b6cfa2c3]{color:#999;font-size:12px}.mt-5px[data-v-b6cfa2c3]{margin-top:5px}.mt-10px[data-v-b6cfa2c3]{margin-top:10px}.textarea_box[data-v-2c9ba636]{display:flex;align-items:center;margin-top:10px}.banner-content[data-v-5fabf6f4]{overflow-x:auto}.item-list[data-v-5fabf6f4]{display:flex;justify-content:space-between;margin:10px;border:1px solid #c8c8c8;border-radius:4px;padding:5px}.item-list .l-info[data-v-5fabf6f4]{font-size:12px;padding-top:4px;width:calc(100% - 100px)}.item-list .l-info p[data-v-5fabf6f4]{margin:5px 0 0;white-space:nowrap;overflow:hidden;display:flex}.item-list .l-info p .link[data-v-5fabf6f4]{color:#1b8bff;cursor:pointer}.item-list .l-info p .text[data-v-5fabf6f4]{white-space:nowrap;text-align:-webkit-auto;text-overflow:ellipsis;overflow:hidden}.item-list .r-image[data-v-5fabf6f4]{text-align:right}.item-list .r-image .el-icon-close[data-v-5fabf6f4]{color:#999;font-size:12px;font-weight:600;margin-bottom:6px;cursor:pointer}.item-list .r-image .el-icon-close[data-v-5fabf6f4]:hover{color:red}.item-list .r-image .image-box[data-v-5fabf6f4]{width:100px;height:70px;border-radius:5px;overflow:hidden;position:relative;background:#fff;display:flex;justify-content:center;align-items:center}.item-list .r-image .image-box img[data-v-5fabf6f4]{max-width:100%}.item-list .r-image .image-box .placeholder-text[data-v-5fabf6f4]{color:#999;font-size:12px}.mt-5px[data-v-5fabf6f4]{margin-top:5px}.mt-10px[data-v-5fabf6f4]{margin-top:10px}.number-box-wrapper[data-v-5e5cedd4]{background-color:#fff;display:flex;align-items:center;padding:10px}.banner-content[data-v-8c36631f],.banner-content[data-v-127edc70]{overflow-x:auto}.item-list[data-v-127edc70]{display:flex;justify-content:space-between;margin:10px;border:1px solid #c8c8c8;border-radius:4px;padding:5px}.item-list .l-info[data-v-127edc70]{font-size:12px;padding-top:4px;width:calc(100% - 100px)}.item-list .l-info p[data-v-127edc70]{margin:5px 0 0;white-space:nowrap;overflow:hidden;display:flex}.item-list .l-info p .link[data-v-127edc70]{color:#1b8bff;cursor:pointer}.item-list .l-info p .text[data-v-127edc70]{white-space:nowrap;text-align:-webkit-auto;text-overflow:ellipsis;overflow:hidden}.item-list .r-image[data-v-127edc70]{text-align:right}.item-list .r-image .el-icon-close[data-v-127edc70]{color:#999;font-size:12px;font-weight:600;margin-bottom:6px;cursor:pointer}.item-list .r-image .el-icon-close[data-v-127edc70]:hover{color:red}.item-list .r-image .image-box[data-v-127edc70]{width:100px;height:70px;border-radius:5px;overflow:hidden;position:relative;background:#fff;display:flex;justify-content:center;align-items:center}.item-list .r-image .image-box img[data-v-127edc70]{max-width:100%}.item-list .r-image .image-box .placeholder-text[data-v-127edc70]{color:#999;font-size:12px}.mt-5px[data-v-127edc70]{margin-top:5px}.mt-10px[data-v-127edc70]{margin-top:10px}
|
package/vuv-ui/vuv-ui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as g, createElementBlock as C, normalizeClass as
|
|
2
|
-
import { uvButton as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, openBlock as g, createElementBlock as C, normalizeClass as F, normalizeStyle as z, createVNode as e, unref as S, withCtx as t, createTextVNode as f, toDisplayString as $, createCommentVNode as k, ref as y, onMounted as P, resolveComponent as s, createBlock as L, watch as G, computed as R, Fragment as O, renderList as D, createElementVNode as b, pushScopeId as X, popScopeId as J } from "vue";
|
|
2
|
+
import { uvButton as K, uvStepper as Q, uvCollapse as Y, uvCollapseItem as Z } from "uv-ui";
|
|
3
|
+
const ee = c({
|
|
4
4
|
name: "uvuiButtonView"
|
|
5
|
-
}),
|
|
6
|
-
...
|
|
5
|
+
}), le = /* @__PURE__ */ c({
|
|
6
|
+
...ee,
|
|
7
7
|
props: {
|
|
8
8
|
data: {
|
|
9
9
|
type: Object,
|
|
@@ -14,10 +14,10 @@ const X = c({
|
|
|
14
14
|
setup(u) {
|
|
15
15
|
return (d, l) => u.data && u.data.options ? (g(), C("div", {
|
|
16
16
|
key: 0,
|
|
17
|
-
class:
|
|
17
|
+
class: F(["button_box", { plain: u.data.options.plain }]),
|
|
18
18
|
style: z({ "justify-content": u.data.options.position })
|
|
19
19
|
}, [
|
|
20
|
-
e(S(
|
|
20
|
+
e(S(K), {
|
|
21
21
|
type: u.data.options.type || "primary",
|
|
22
22
|
bgColor: u.data.options.color,
|
|
23
23
|
disabled: u.data.options.disabled,
|
|
@@ -33,7 +33,7 @@ const X = c({
|
|
|
33
33
|
})
|
|
34
34
|
}, {
|
|
35
35
|
default: t(() => [
|
|
36
|
-
|
|
36
|
+
f($(u.data.options.text || "按钮"), 1)
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
}, 8, ["type", "bgColor", "disabled", "color", "round", "square", "size", "loading", "icon", "style"])
|
|
@@ -45,18 +45,17 @@ const T = (u, d) => {
|
|
|
45
45
|
for (const [_, r] of d)
|
|
46
46
|
l[_] = r;
|
|
47
47
|
return l;
|
|
48
|
-
}, N = /* @__PURE__ */ T(
|
|
48
|
+
}, N = /* @__PURE__ */ T(le, [["__scopeId", "data-v-ddf92851"]]), ae = {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "banner-content"
|
|
51
|
-
},
|
|
51
|
+
}, te = c({
|
|
52
52
|
name: "uvuiButtonData"
|
|
53
|
-
}),
|
|
54
|
-
...
|
|
53
|
+
}), oe = /* @__PURE__ */ c({
|
|
54
|
+
...te,
|
|
55
55
|
props: {
|
|
56
56
|
data: {
|
|
57
57
|
type: Object,
|
|
58
|
-
default: () => {
|
|
59
|
-
}
|
|
58
|
+
default: () => ({})
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
setup(u) {
|
|
@@ -64,15 +63,15 @@ const T = (u, d) => {
|
|
|
64
63
|
return P(() => {
|
|
65
64
|
console.log(d.data, d, "参数接收"), d.data && (_.value = d.data.data, l.value = d.data.options, r.value = !0);
|
|
66
65
|
}), (w, a) => {
|
|
67
|
-
const m =
|
|
68
|
-
return r.value ? (g(), C("div",
|
|
69
|
-
e(
|
|
66
|
+
const m = s("el-switch"), n = s("el-form-item"), v = s("el-input-number"), p = s("el-option"), U = s("el-select"), x = s("el-radio-button"), h = s("el-radio-group"), o = s("el-input"), B = s("el-color-picker"), V = s("el-form");
|
|
67
|
+
return r.value ? (g(), C("div", ae, [
|
|
68
|
+
e(V, { "label-width": "100px" }, {
|
|
70
69
|
default: t(() => [
|
|
71
70
|
e(n, { label: "显示边框" }, {
|
|
72
71
|
default: t(() => [
|
|
73
72
|
e(m, {
|
|
74
73
|
modelValue: l.value.hairline,
|
|
75
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
74
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => l.value.hairline = i)
|
|
76
75
|
}, null, 8, ["modelValue"])
|
|
77
76
|
]),
|
|
78
77
|
_: 1
|
|
@@ -81,7 +80,7 @@ const T = (u, d) => {
|
|
|
81
80
|
default: t(() => [
|
|
82
81
|
e(v, {
|
|
83
82
|
modelValue: l.value.width,
|
|
84
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
83
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => l.value.width = i)
|
|
85
84
|
}, null, 8, ["modelValue"])
|
|
86
85
|
]),
|
|
87
86
|
_: 1
|
|
@@ -90,7 +89,7 @@ const T = (u, d) => {
|
|
|
90
89
|
default: t(() => [
|
|
91
90
|
e(v, {
|
|
92
91
|
modelValue: l.value.height,
|
|
93
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
92
|
+
"onUpdate:modelValue": a[2] || (a[2] = (i) => l.value.height = i)
|
|
94
93
|
}, null, 8, ["modelValue"])
|
|
95
94
|
]),
|
|
96
95
|
_: 1
|
|
@@ -99,7 +98,7 @@ const T = (u, d) => {
|
|
|
99
98
|
default: t(() => [
|
|
100
99
|
e(U, {
|
|
101
100
|
modelValue: l.value.type,
|
|
102
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
101
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => l.value.type = i),
|
|
103
102
|
placeholder: "请选择",
|
|
104
103
|
style: { width: "180px" }
|
|
105
104
|
}, {
|
|
@@ -134,24 +133,24 @@ const T = (u, d) => {
|
|
|
134
133
|
default: t(() => [
|
|
135
134
|
e(h, {
|
|
136
135
|
modelValue: l.value.size,
|
|
137
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
136
|
+
"onUpdate:modelValue": a[4] || (a[4] = (i) => l.value.size = i)
|
|
138
137
|
}, {
|
|
139
138
|
default: t(() => [
|
|
140
139
|
e(x, { label: "normal" }, {
|
|
141
140
|
default: t(() => [
|
|
142
|
-
|
|
141
|
+
f("normal")
|
|
143
142
|
]),
|
|
144
143
|
_: 1
|
|
145
144
|
}),
|
|
146
145
|
e(x, { label: "medium" }, {
|
|
147
146
|
default: t(() => [
|
|
148
|
-
|
|
147
|
+
f("medium")
|
|
149
148
|
]),
|
|
150
149
|
_: 1
|
|
151
150
|
}),
|
|
152
151
|
e(x, { label: "mini" }, {
|
|
153
152
|
default: t(() => [
|
|
154
|
-
|
|
153
|
+
f("mini")
|
|
155
154
|
]),
|
|
156
155
|
_: 1
|
|
157
156
|
})
|
|
@@ -165,24 +164,24 @@ const T = (u, d) => {
|
|
|
165
164
|
default: t(() => [
|
|
166
165
|
e(h, {
|
|
167
166
|
modelValue: l.value.position,
|
|
168
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
167
|
+
"onUpdate:modelValue": a[5] || (a[5] = (i) => l.value.position = i)
|
|
169
168
|
}, {
|
|
170
169
|
default: t(() => [
|
|
171
170
|
e(x, { label: "left" }, {
|
|
172
171
|
default: t(() => [
|
|
173
|
-
|
|
172
|
+
f("居左")
|
|
174
173
|
]),
|
|
175
174
|
_: 1
|
|
176
175
|
}),
|
|
177
176
|
e(x, { label: "center" }, {
|
|
178
177
|
default: t(() => [
|
|
179
|
-
|
|
178
|
+
f("居中")
|
|
180
179
|
]),
|
|
181
180
|
_: 1
|
|
182
181
|
}),
|
|
183
182
|
e(x, { label: "right" }, {
|
|
184
183
|
default: t(() => [
|
|
185
|
-
|
|
184
|
+
f("居右")
|
|
186
185
|
]),
|
|
187
186
|
_: 1
|
|
188
187
|
})
|
|
@@ -196,18 +195,18 @@ const T = (u, d) => {
|
|
|
196
195
|
default: t(() => [
|
|
197
196
|
e(h, {
|
|
198
197
|
modelValue: l.value.shape,
|
|
199
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
198
|
+
"onUpdate:modelValue": a[6] || (a[6] = (i) => l.value.shape = i)
|
|
200
199
|
}, {
|
|
201
200
|
default: t(() => [
|
|
202
201
|
e(x, { label: "square" }, {
|
|
203
202
|
default: t(() => [
|
|
204
|
-
|
|
203
|
+
f("square")
|
|
205
204
|
]),
|
|
206
205
|
_: 1
|
|
207
206
|
}),
|
|
208
207
|
e(x, { label: "circle" }, {
|
|
209
208
|
default: t(() => [
|
|
210
|
-
|
|
209
|
+
f("circle")
|
|
211
210
|
]),
|
|
212
211
|
_: 1
|
|
213
212
|
})
|
|
@@ -221,7 +220,7 @@ const T = (u, d) => {
|
|
|
221
220
|
default: t(() => [
|
|
222
221
|
e(m, {
|
|
223
222
|
modelValue: l.value.plain,
|
|
224
|
-
"onUpdate:modelValue": a[7] || (a[7] = (
|
|
223
|
+
"onUpdate:modelValue": a[7] || (a[7] = (i) => l.value.plain = i)
|
|
225
224
|
}, null, 8, ["modelValue"])
|
|
226
225
|
]),
|
|
227
226
|
_: 1
|
|
@@ -230,7 +229,7 @@ const T = (u, d) => {
|
|
|
230
229
|
default: t(() => [
|
|
231
230
|
e(m, {
|
|
232
231
|
modelValue: l.value.disabled,
|
|
233
|
-
"onUpdate:modelValue": a[8] || (a[8] = (
|
|
232
|
+
"onUpdate:modelValue": a[8] || (a[8] = (i) => l.value.disabled = i)
|
|
234
233
|
}, null, 8, ["modelValue"])
|
|
235
234
|
]),
|
|
236
235
|
_: 1
|
|
@@ -239,7 +238,7 @@ const T = (u, d) => {
|
|
|
239
238
|
default: t(() => [
|
|
240
239
|
e(m, {
|
|
241
240
|
modelValue: l.value.fill,
|
|
242
|
-
"onUpdate:modelValue": a[9] || (a[9] = (
|
|
241
|
+
"onUpdate:modelValue": a[9] || (a[9] = (i) => l.value.fill = i)
|
|
243
242
|
}, null, 8, ["modelValue"])
|
|
244
243
|
]),
|
|
245
244
|
_: 1
|
|
@@ -248,7 +247,7 @@ const T = (u, d) => {
|
|
|
248
247
|
default: t(() => [
|
|
249
248
|
e(m, {
|
|
250
249
|
modelValue: l.value.loading,
|
|
251
|
-
"onUpdate:modelValue": a[10] || (a[10] = (
|
|
250
|
+
"onUpdate:modelValue": a[10] || (a[10] = (i) => l.value.loading = i)
|
|
252
251
|
}, null, 8, ["modelValue"])
|
|
253
252
|
]),
|
|
254
253
|
_: 1
|
|
@@ -257,7 +256,7 @@ const T = (u, d) => {
|
|
|
257
256
|
default: t(() => [
|
|
258
257
|
e(o, {
|
|
259
258
|
modelValue: l.value.loadingText,
|
|
260
|
-
"onUpdate:modelValue": a[11] || (a[11] = (
|
|
259
|
+
"onUpdate:modelValue": a[11] || (a[11] = (i) => l.value.loadingText = i),
|
|
261
260
|
style: { width: "180px" },
|
|
262
261
|
placeholder: "请输入",
|
|
263
262
|
clearable: ""
|
|
@@ -269,7 +268,7 @@ const T = (u, d) => {
|
|
|
269
268
|
default: t(() => [
|
|
270
269
|
e(U, {
|
|
271
270
|
modelValue: l.value.openType,
|
|
272
|
-
"onUpdate:modelValue": a[12] || (a[12] = (
|
|
271
|
+
"onUpdate:modelValue": a[12] || (a[12] = (i) => l.value.openType = i),
|
|
273
272
|
placeholder: "请选择",
|
|
274
273
|
style: { width: "180px" },
|
|
275
274
|
clearable: ""
|
|
@@ -324,7 +323,7 @@ const T = (u, d) => {
|
|
|
324
323
|
default: t(() => [
|
|
325
324
|
e(o, {
|
|
326
325
|
modelValue: l.value.pagePath,
|
|
327
|
-
"onUpdate:modelValue": a[13] || (a[13] = (
|
|
326
|
+
"onUpdate:modelValue": a[13] || (a[13] = (i) => l.value.pagePath = i),
|
|
328
327
|
style: { width: "180px" },
|
|
329
328
|
placeholder: "请输入",
|
|
330
329
|
clearable: ""
|
|
@@ -339,7 +338,7 @@ const T = (u, d) => {
|
|
|
339
338
|
default: t(() => [
|
|
340
339
|
e(m, {
|
|
341
340
|
modelValue: l.value.isTabBar,
|
|
342
|
-
"onUpdate:modelValue": a[14] || (a[14] = (
|
|
341
|
+
"onUpdate:modelValue": a[14] || (a[14] = (i) => l.value.isTabBar = i)
|
|
343
342
|
}, null, 8, ["modelValue"])
|
|
344
343
|
]),
|
|
345
344
|
_: 1
|
|
@@ -348,7 +347,7 @@ const T = (u, d) => {
|
|
|
348
347
|
default: t(() => [
|
|
349
348
|
e(o, {
|
|
350
349
|
modelValue: l.value.text,
|
|
351
|
-
"onUpdate:modelValue": a[15] || (a[15] = (
|
|
350
|
+
"onUpdate:modelValue": a[15] || (a[15] = (i) => l.value.text = i),
|
|
352
351
|
style: { width: "180px" },
|
|
353
352
|
placeholder: "请输入",
|
|
354
353
|
clearable: ""
|
|
@@ -360,7 +359,7 @@ const T = (u, d) => {
|
|
|
360
359
|
default: t(() => [
|
|
361
360
|
e(B, {
|
|
362
361
|
modelValue: l.value.color,
|
|
363
|
-
"onUpdate:modelValue": a[16] || (a[16] = (
|
|
362
|
+
"onUpdate:modelValue": a[16] || (a[16] = (i) => l.value.color = i),
|
|
364
363
|
"show-alpha": ""
|
|
365
364
|
}, null, 8, ["modelValue"])
|
|
366
365
|
]),
|
|
@@ -370,7 +369,7 @@ const T = (u, d) => {
|
|
|
370
369
|
default: t(() => [
|
|
371
370
|
e(B, {
|
|
372
371
|
modelValue: l.value.textColor,
|
|
373
|
-
"onUpdate:modelValue": a[17] || (a[17] = (
|
|
372
|
+
"onUpdate:modelValue": a[17] || (a[17] = (i) => l.value.textColor = i),
|
|
374
373
|
"show-alpha": ""
|
|
375
374
|
}, null, 8, ["modelValue"])
|
|
376
375
|
]),
|
|
@@ -380,7 +379,7 @@ const T = (u, d) => {
|
|
|
380
379
|
default: t(() => [
|
|
381
380
|
e(o, {
|
|
382
381
|
modelValue: l.value.customStyle,
|
|
383
|
-
"onUpdate:modelValue": a[18] || (a[18] = (
|
|
382
|
+
"onUpdate:modelValue": a[18] || (a[18] = (i) => l.value.customStyle = i),
|
|
384
383
|
style: { width: "240px" },
|
|
385
384
|
placeholder: "分号分隔,如width: 100px;height: 50px;",
|
|
386
385
|
type: "textarea",
|
|
@@ -396,7 +395,7 @@ const T = (u, d) => {
|
|
|
396
395
|
};
|
|
397
396
|
}
|
|
398
397
|
});
|
|
399
|
-
const j = /* @__PURE__ */ T(
|
|
398
|
+
const j = /* @__PURE__ */ T(oe, [["__scopeId", "data-v-b6cfa2c3"]]), ue = {
|
|
400
399
|
type: "uvui-button",
|
|
401
400
|
name: "按钮",
|
|
402
401
|
icon: "Postcard",
|
|
@@ -405,7 +404,7 @@ const j = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-3bbcd931"]]), Z = {
|
|
|
405
404
|
viewCom: N,
|
|
406
405
|
editCom: j,
|
|
407
406
|
limit: 0
|
|
408
|
-
},
|
|
407
|
+
}, ne = {
|
|
409
408
|
data: {},
|
|
410
409
|
options: {
|
|
411
410
|
width: "100",
|
|
@@ -449,13 +448,13 @@ const j = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-3bbcd931"]]), Z = {
|
|
|
449
448
|
fill: !0
|
|
450
449
|
//组件是否铺满父容器
|
|
451
450
|
}
|
|
452
|
-
},
|
|
451
|
+
}, de = {
|
|
453
452
|
key: 0,
|
|
454
453
|
class: "textarea_box"
|
|
455
|
-
},
|
|
456
|
-
name: "
|
|
457
|
-
}),
|
|
458
|
-
...
|
|
454
|
+
}, ie = c({
|
|
455
|
+
name: "uvuiTextareaView"
|
|
456
|
+
}), se = /* @__PURE__ */ c({
|
|
457
|
+
...ie,
|
|
459
458
|
props: {
|
|
460
459
|
data: {
|
|
461
460
|
type: Object,
|
|
@@ -466,8 +465,8 @@ const j = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-3bbcd931"]]), Z = {
|
|
|
466
465
|
setup(u) {
|
|
467
466
|
const d = y("");
|
|
468
467
|
return (l, _) => {
|
|
469
|
-
const r =
|
|
470
|
-
return u.data && u.data.options ? (g(), C("div",
|
|
468
|
+
const r = s("el-input");
|
|
469
|
+
return u.data && u.data.options ? (g(), C("div", de, [
|
|
471
470
|
e(r, {
|
|
472
471
|
modelValue: d.value,
|
|
473
472
|
"onUpdate:modelValue": _[0] || (_[0] = (w) => d.value = w),
|
|
@@ -483,13 +482,13 @@ const j = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-3bbcd931"]]), Z = {
|
|
|
483
482
|
};
|
|
484
483
|
}
|
|
485
484
|
});
|
|
486
|
-
const
|
|
485
|
+
const E = /* @__PURE__ */ T(se, [["__scopeId", "data-v-2c9ba636"]]), me = {
|
|
487
486
|
key: 0,
|
|
488
487
|
class: "banner-content"
|
|
489
|
-
},
|
|
490
|
-
name: "
|
|
491
|
-
}),
|
|
492
|
-
...
|
|
488
|
+
}, pe = c({
|
|
489
|
+
name: "uvuiTextareaData"
|
|
490
|
+
}), re = /* @__PURE__ */ c({
|
|
491
|
+
...pe,
|
|
493
492
|
props: {
|
|
494
493
|
data: {
|
|
495
494
|
type: Object,
|
|
@@ -502,8 +501,8 @@ const oe = /* @__PURE__ */ T(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
502
501
|
return P(() => {
|
|
503
502
|
console.log(d.data, d, "参数接收"), d.data && (_.value = d.data.data, l.value = d.data.options, r.value = !0);
|
|
504
503
|
}), (w, a) => {
|
|
505
|
-
const m =
|
|
506
|
-
return r.value ? (g(), C("div",
|
|
504
|
+
const m = s("el-input"), n = s("el-form-item"), v = s("el-input-number"), p = s("el-switch"), U = s("el-radio-button"), x = s("el-radio-group"), h = s("el-form");
|
|
505
|
+
return r.value ? (g(), C("div", me, [
|
|
507
506
|
e(h, { "label-width": "100px" }, {
|
|
508
507
|
default: t(() => [
|
|
509
508
|
e(n, { label: "空值占位内容" }, {
|
|
@@ -587,19 +586,19 @@ const oe = /* @__PURE__ */ T(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
587
586
|
default: t(() => [
|
|
588
587
|
e(U, { label: "surround" }, {
|
|
589
588
|
default: t(() => [
|
|
590
|
-
|
|
589
|
+
f("四周边框")
|
|
591
590
|
]),
|
|
592
591
|
_: 1
|
|
593
592
|
}),
|
|
594
593
|
e(U, { label: "none" }, {
|
|
595
594
|
default: t(() => [
|
|
596
|
-
|
|
595
|
+
f("无边框")
|
|
597
596
|
]),
|
|
598
597
|
_: 1
|
|
599
598
|
}),
|
|
600
599
|
e(U, { label: "bottom" }, {
|
|
601
600
|
default: t(() => [
|
|
602
|
-
|
|
601
|
+
f("底部边框")
|
|
603
602
|
]),
|
|
604
603
|
_: 1
|
|
605
604
|
})
|
|
@@ -629,16 +628,16 @@ const oe = /* @__PURE__ */ T(te, [["__scopeId", "data-v-b4db5b9f"]]), ue = {
|
|
|
629
628
|
};
|
|
630
629
|
}
|
|
631
630
|
});
|
|
632
|
-
const
|
|
631
|
+
const M = /* @__PURE__ */ T(re, [["__scopeId", "data-v-5fabf6f4"]]), ve = {
|
|
633
632
|
type: "uvui-textarea",
|
|
634
633
|
name: "文本域",
|
|
635
634
|
icon: "Textarea",
|
|
636
635
|
fontIcon: "icon-24gl-grid",
|
|
637
636
|
page: "index,activity",
|
|
638
|
-
viewCom:
|
|
639
|
-
editCom:
|
|
637
|
+
viewCom: E,
|
|
638
|
+
editCom: M,
|
|
640
639
|
limit: 0
|
|
641
|
-
},
|
|
640
|
+
}, _e = {
|
|
642
641
|
type: "uvui-textarea",
|
|
643
642
|
data: {},
|
|
644
643
|
options: {
|
|
@@ -663,10 +662,10 @@ const se = /* @__PURE__ */ T(de, [["__scopeId", "data-v-91c833b3"]]), ie = {
|
|
|
663
662
|
fill: !0
|
|
664
663
|
//组件是否铺满父容器
|
|
665
664
|
}
|
|
666
|
-
},
|
|
667
|
-
name: "
|
|
668
|
-
}),
|
|
669
|
-
...
|
|
665
|
+
}, fe = c({
|
|
666
|
+
name: "uvuiNumberBoxView"
|
|
667
|
+
}), Ve = /* @__PURE__ */ c({
|
|
668
|
+
...fe,
|
|
670
669
|
props: {
|
|
671
670
|
data: {
|
|
672
671
|
type: Object,
|
|
@@ -676,7 +675,7 @@ const se = /* @__PURE__ */ T(de, [["__scopeId", "data-v-91c833b3"]]), ie = {
|
|
|
676
675
|
},
|
|
677
676
|
setup(u) {
|
|
678
677
|
const d = u, l = y(1);
|
|
679
|
-
return
|
|
678
|
+
return G(
|
|
680
679
|
() => d.data.options,
|
|
681
680
|
(_) => {
|
|
682
681
|
l.value = _;
|
|
@@ -686,7 +685,7 @@ const se = /* @__PURE__ */ T(de, [["__scopeId", "data-v-91c833b3"]]), ie = {
|
|
|
686
685
|
class: "number-box-wrapper",
|
|
687
686
|
style: z({ "justify-content": u.data.options.align })
|
|
688
687
|
}, [
|
|
689
|
-
e(S(
|
|
688
|
+
e(S(Q), {
|
|
690
689
|
min: u.data.options.min,
|
|
691
690
|
modelValue: l.value,
|
|
692
691
|
"onUpdate:modelValue": r[0] || (r[0] = (w) => l.value = w),
|
|
@@ -699,13 +698,13 @@ const se = /* @__PURE__ */ T(de, [["__scopeId", "data-v-91c833b3"]]), ie = {
|
|
|
699
698
|
], 4)) : k("", !0);
|
|
700
699
|
}
|
|
701
700
|
});
|
|
702
|
-
const
|
|
701
|
+
const q = /* @__PURE__ */ T(Ve, [["__scopeId", "data-v-5e5cedd4"]]), be = {
|
|
703
702
|
key: 0,
|
|
704
703
|
class: "banner-content"
|
|
705
|
-
},
|
|
706
|
-
name: "
|
|
707
|
-
}),
|
|
708
|
-
...
|
|
704
|
+
}, ce = c({
|
|
705
|
+
name: "uvuiNumberBoxData"
|
|
706
|
+
}), xe = /* @__PURE__ */ c({
|
|
707
|
+
...ce,
|
|
709
708
|
props: {
|
|
710
709
|
data: {
|
|
711
710
|
type: Object,
|
|
@@ -718,8 +717,8 @@ const ve = /* @__PURE__ */ T(re, [["__scopeId", "data-v-d025175e"]]), _e = {
|
|
|
718
717
|
return P(() => {
|
|
719
718
|
console.log(d.data, d, "参数接收"), d.data && (_.value = d.data.data, l.value = d.data.options, r.value = !0);
|
|
720
719
|
}), (w, a) => {
|
|
721
|
-
const m =
|
|
722
|
-
return r.value ? (g(), C("div",
|
|
720
|
+
const m = s("el-input-number"), n = s("el-form-item"), v = s("el-switch"), p = s("el-color-picker"), U = s("el-radio-button"), x = s("el-radio-group"), h = s("el-form");
|
|
721
|
+
return r.value ? (g(), C("div", be, [
|
|
723
722
|
e(h, { "label-width": "120px" }, {
|
|
724
723
|
default: t(() => [
|
|
725
724
|
e(n, { label: "当前值" }, {
|
|
@@ -897,19 +896,19 @@ const ve = /* @__PURE__ */ T(re, [["__scopeId", "data-v-d025175e"]]), _e = {
|
|
|
897
896
|
default: t(() => [
|
|
898
897
|
e(U, { label: "left" }, {
|
|
899
898
|
default: t(() => [
|
|
900
|
-
|
|
899
|
+
f("左对齐")
|
|
901
900
|
]),
|
|
902
901
|
_: 1
|
|
903
902
|
}),
|
|
904
903
|
e(U, { label: "center" }, {
|
|
905
904
|
default: t(() => [
|
|
906
|
-
|
|
905
|
+
f("居中对齐")
|
|
907
906
|
]),
|
|
908
907
|
_: 1
|
|
909
908
|
}),
|
|
910
909
|
e(U, { label: "right" }, {
|
|
911
910
|
default: t(() => [
|
|
912
|
-
|
|
911
|
+
f("右对齐")
|
|
913
912
|
]),
|
|
914
913
|
_: 1
|
|
915
914
|
})
|
|
@@ -935,16 +934,16 @@ const ve = /* @__PURE__ */ T(re, [["__scopeId", "data-v-d025175e"]]), _e = {
|
|
|
935
934
|
};
|
|
936
935
|
}
|
|
937
936
|
});
|
|
938
|
-
const
|
|
937
|
+
const W = /* @__PURE__ */ T(xe, [["__scopeId", "data-v-8c36631f"]]), ye = {
|
|
939
938
|
type: "uvui-numberBox",
|
|
940
939
|
name: "步进器",
|
|
941
940
|
icon: "Postcard",
|
|
942
941
|
fontIcon: "icon-shangpinanniu_changtiaoanniu",
|
|
943
942
|
page: "index,activity",
|
|
944
|
-
viewCom:
|
|
945
|
-
editCom:
|
|
943
|
+
viewCom: q,
|
|
944
|
+
editCom: W,
|
|
946
945
|
limit: 0
|
|
947
|
-
},
|
|
946
|
+
}, ge = {
|
|
948
947
|
data: {},
|
|
949
948
|
options: {
|
|
950
949
|
value: 1,
|
|
@@ -986,13 +985,13 @@ const fe = /* @__PURE__ */ T(be, [["__scopeId", "data-v-0130b026"]]), ce = {
|
|
|
986
985
|
fill: !1
|
|
987
986
|
//是否铺满
|
|
988
987
|
}
|
|
989
|
-
},
|
|
988
|
+
}, we = {
|
|
990
989
|
key: 0,
|
|
991
990
|
class: "cell_box"
|
|
992
|
-
},
|
|
993
|
-
name: "
|
|
994
|
-
}),
|
|
995
|
-
...
|
|
991
|
+
}, Ue = c({
|
|
992
|
+
name: "uvuiCollapseView"
|
|
993
|
+
}), he = /* @__PURE__ */ c({
|
|
994
|
+
...Ue,
|
|
996
995
|
props: {
|
|
997
996
|
data: {
|
|
998
997
|
type: Object,
|
|
@@ -1001,25 +1000,25 @@ const fe = /* @__PURE__ */ T(be, [["__scopeId", "data-v-0130b026"]]), ce = {
|
|
|
1001
1000
|
}
|
|
1002
1001
|
},
|
|
1003
1002
|
setup(u) {
|
|
1004
|
-
const d = u, l = y([]), _ =
|
|
1005
|
-
return (r, w) => u.data && u.data.options ? (g(), C("div",
|
|
1006
|
-
e(S(
|
|
1003
|
+
const d = u, l = y([]), _ = R(() => d.data.data && d.data.data.list ? (l.value = d.data.data.list.map((r, w) => r.title + "_" + w), d.data.data.list) : []);
|
|
1004
|
+
return (r, w) => u.data && u.data.options ? (g(), C("div", we, [
|
|
1005
|
+
e(S(Y), {
|
|
1007
1006
|
modelValue: l.value,
|
|
1008
1007
|
"onUpdate:modelValue": w[0] || (w[0] = (a) => l.value = a)
|
|
1009
1008
|
}, {
|
|
1010
1009
|
default: t(() => [
|
|
1011
|
-
(g(!0), C(O, null, D(S(_), (a, m) => (g(), L(S(
|
|
1010
|
+
(g(!0), C(O, null, D(S(_), (a, m) => (g(), L(S(Z), {
|
|
1012
1011
|
key: m,
|
|
1013
1012
|
name: a.title + "_" + m
|
|
1014
1013
|
}, {
|
|
1015
1014
|
title: t(() => [
|
|
1016
|
-
|
|
1015
|
+
f($(a.title), 1)
|
|
1017
1016
|
]),
|
|
1018
1017
|
right: t(() => [
|
|
1019
|
-
|
|
1018
|
+
f($(a.value), 1)
|
|
1020
1019
|
]),
|
|
1021
1020
|
default: t(() => [
|
|
1022
|
-
|
|
1021
|
+
f(" " + $(a.label), 1)
|
|
1023
1022
|
]),
|
|
1024
1023
|
_: 2
|
|
1025
1024
|
}, 1032, ["name"]))), 128))
|
|
@@ -1029,13 +1028,13 @@ const fe = /* @__PURE__ */ T(be, [["__scopeId", "data-v-0130b026"]]), ce = {
|
|
|
1029
1028
|
])) : k("", !0);
|
|
1030
1029
|
}
|
|
1031
1030
|
});
|
|
1032
|
-
const
|
|
1031
|
+
const H = /* @__PURE__ */ T(he, [["__scopeId", "data-v-5dc143d6"]]), I = (u) => (X("data-v-127edc70"), u = u(), J(), u), Ce = {
|
|
1033
1032
|
key: 0,
|
|
1034
1033
|
class: "banner-content"
|
|
1035
|
-
},
|
|
1036
|
-
name: "
|
|
1037
|
-
}),
|
|
1038
|
-
...
|
|
1034
|
+
}, ke = { class: "l-info" }, Te = { class: "mt-5px" }, Ie = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "标题:", -1)), Be = { class: "mt-5px" }, Se = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "内容:", -1)), $e = { class: "mt-5px" }, ze = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "描述:", -1)), Pe = { class: "mt-5px" }, Le = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "禁用:", -1)), Oe = { class: "mt-5px" }, De = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "右箭头:", -1)), Ne = { class: "mt-5px" }, je = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "点击反馈:", -1)), Ee = { class: "mt-5px" }, Me = /* @__PURE__ */ I(() => /* @__PURE__ */ b("span", null, "显示内边框:", -1)), qe = { class: "mt-5px" }, We = c({
|
|
1035
|
+
name: "uvuiCollapseData"
|
|
1036
|
+
}), He = /* @__PURE__ */ c({
|
|
1037
|
+
...We,
|
|
1039
1038
|
props: {
|
|
1040
1039
|
data: {
|
|
1041
1040
|
type: Object,
|
|
@@ -1067,8 +1066,8 @@ const Ue = /* @__PURE__ */ T(we, [["__scopeId", "data-v-cd08eed6"]]), I = (u) =>
|
|
|
1067
1066
|
return P(() => {
|
|
1068
1067
|
d.data && (_.value = d.data.data, l.value = d.data.options, r.value = !0);
|
|
1069
1068
|
}), (m, n) => {
|
|
1070
|
-
const v =
|
|
1071
|
-
return r.value ? (g(), C("div",
|
|
1069
|
+
const v = s("el-switch"), p = s("el-form-item"), U = s("el-form"), x = s("el-button"), h = s("el-input");
|
|
1070
|
+
return r.value ? (g(), C("div", Ce, [
|
|
1072
1071
|
e(U, { "label-width": "100px" }, {
|
|
1073
1072
|
default: t(() => [
|
|
1074
1073
|
e(p, { label: "是否铺满" }, {
|
|
@@ -1089,7 +1088,7 @@ const Ue = /* @__PURE__ */ T(we, [["__scopeId", "data-v-cd08eed6"]]), I = (u) =>
|
|
|
1089
1088
|
class: "mt-10px"
|
|
1090
1089
|
}, {
|
|
1091
1090
|
default: t(() => [
|
|
1092
|
-
|
|
1091
|
+
f("添加项")
|
|
1093
1092
|
]),
|
|
1094
1093
|
_: 1
|
|
1095
1094
|
}),
|
|
@@ -1097,73 +1096,73 @@ const Ue = /* @__PURE__ */ T(we, [["__scopeId", "data-v-cd08eed6"]]), I = (u) =>
|
|
|
1097
1096
|
class: "item-list",
|
|
1098
1097
|
key: B
|
|
1099
1098
|
}, [
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1099
|
+
b("div", ke, [
|
|
1100
|
+
b("div", Te, [
|
|
1101
|
+
Ie,
|
|
1103
1102
|
e(h, {
|
|
1104
1103
|
modelValue: o.title,
|
|
1105
|
-
"onUpdate:modelValue": (
|
|
1104
|
+
"onUpdate:modelValue": (V) => o.title = V,
|
|
1106
1105
|
style: { width: "180px" },
|
|
1107
1106
|
placeholder: "请输入",
|
|
1108
1107
|
clearable: ""
|
|
1109
1108
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1110
1109
|
]),
|
|
1111
|
-
|
|
1112
|
-
|
|
1110
|
+
b("div", Be, [
|
|
1111
|
+
Se,
|
|
1113
1112
|
e(h, {
|
|
1114
1113
|
modelValue: o.value,
|
|
1115
|
-
"onUpdate:modelValue": (
|
|
1114
|
+
"onUpdate:modelValue": (V) => o.value = V,
|
|
1116
1115
|
style: { width: "180px" },
|
|
1117
1116
|
placeholder: "请输入",
|
|
1118
1117
|
clearable: ""
|
|
1119
1118
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1120
1119
|
]),
|
|
1121
|
-
|
|
1122
|
-
|
|
1120
|
+
b("div", $e, [
|
|
1121
|
+
ze,
|
|
1123
1122
|
e(h, {
|
|
1124
1123
|
modelValue: o.label,
|
|
1125
|
-
"onUpdate:modelValue": (
|
|
1124
|
+
"onUpdate:modelValue": (V) => o.label = V,
|
|
1126
1125
|
style: { width: "180px" },
|
|
1127
1126
|
placeholder: "请输入",
|
|
1128
1127
|
clearable: ""
|
|
1129
1128
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1130
1129
|
]),
|
|
1131
|
-
|
|
1132
|
-
|
|
1130
|
+
b("div", Pe, [
|
|
1131
|
+
Le,
|
|
1133
1132
|
e(v, {
|
|
1134
1133
|
modelValue: o.disabled,
|
|
1135
|
-
"onUpdate:modelValue": (
|
|
1134
|
+
"onUpdate:modelValue": (V) => o.disabled = V
|
|
1136
1135
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1137
1136
|
]),
|
|
1138
|
-
|
|
1139
|
-
|
|
1137
|
+
b("div", Oe, [
|
|
1138
|
+
De,
|
|
1140
1139
|
e(v, {
|
|
1141
1140
|
modelValue: o.isLink,
|
|
1142
|
-
"onUpdate:modelValue": (
|
|
1141
|
+
"onUpdate:modelValue": (V) => o.isLink = V
|
|
1143
1142
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1144
1143
|
]),
|
|
1145
|
-
|
|
1146
|
-
|
|
1144
|
+
b("div", Ne, [
|
|
1145
|
+
je,
|
|
1147
1146
|
e(v, {
|
|
1148
1147
|
modelValue: o.clickable,
|
|
1149
|
-
"onUpdate:modelValue": (
|
|
1148
|
+
"onUpdate:modelValue": (V) => o.clickable = V
|
|
1150
1149
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1151
1150
|
]),
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
b("div", Ee, [
|
|
1152
|
+
Me,
|
|
1154
1153
|
e(v, {
|
|
1155
1154
|
modelValue: o.border,
|
|
1156
|
-
"onUpdate:modelValue": (
|
|
1155
|
+
"onUpdate:modelValue": (V) => o.border = V
|
|
1157
1156
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
1158
1157
|
]),
|
|
1159
|
-
|
|
1158
|
+
b("div", qe, [
|
|
1160
1159
|
e(x, {
|
|
1161
1160
|
type: "danger",
|
|
1162
|
-
onClick: (
|
|
1161
|
+
onClick: (V) => w(B),
|
|
1163
1162
|
size: "small"
|
|
1164
1163
|
}, {
|
|
1165
1164
|
default: t(() => [
|
|
1166
|
-
|
|
1165
|
+
f("删除")
|
|
1167
1166
|
]),
|
|
1168
1167
|
_: 2
|
|
1169
1168
|
}, 1032, ["onClick"])
|
|
@@ -1174,14 +1173,14 @@ const Ue = /* @__PURE__ */ T(we, [["__scopeId", "data-v-cd08eed6"]]), I = (u) =>
|
|
|
1174
1173
|
};
|
|
1175
1174
|
}
|
|
1176
1175
|
});
|
|
1177
|
-
const
|
|
1176
|
+
const A = /* @__PURE__ */ T(He, [["__scopeId", "data-v-127edc70"]]), Ae = {
|
|
1178
1177
|
type: "uvui-collapse",
|
|
1179
1178
|
name: "折叠面板",
|
|
1180
1179
|
icon: "Postcard",
|
|
1181
1180
|
fontIcon: "icon-danyuange1",
|
|
1182
1181
|
page: "index,activity",
|
|
1183
|
-
viewCom:
|
|
1184
|
-
editCom:
|
|
1182
|
+
viewCom: H,
|
|
1183
|
+
editCom: A,
|
|
1185
1184
|
limit: 0
|
|
1186
1185
|
}, Fe = {
|
|
1187
1186
|
data: {
|
|
@@ -1208,7 +1207,16 @@ const He = /* @__PURE__ */ T(We, [["__scopeId", "data-v-c904acd0"]]), Ae = {
|
|
|
1208
1207
|
fill: !1
|
|
1209
1208
|
//组件是否铺满父容器
|
|
1210
1209
|
}
|
|
1211
|
-
}, Je = { buttonTypeList:
|
|
1210
|
+
}, Je = { buttonTypeList: ue, textareaTypeList: ve, numberBoxTypeList: ye, collapseTypeList: Ae }, Ke = { buttonOptions: ne, textareaOptions: _e, numberBoxOptions: ge, collapseOptions: Fe }, Ge = [
|
|
1211
|
+
j,
|
|
1212
|
+
N,
|
|
1213
|
+
M,
|
|
1214
|
+
E,
|
|
1215
|
+
W,
|
|
1216
|
+
q,
|
|
1217
|
+
A,
|
|
1218
|
+
H
|
|
1219
|
+
], Qe = {
|
|
1212
1220
|
install(u) {
|
|
1213
1221
|
Ge.forEach((d) => {
|
|
1214
1222
|
u.component(d.name, d);
|
package/vuv-ui/vuv-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("uv-ui")):typeof define=="function"&&define.amd?define(["exports","vue","uv-ui"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b.VuvUi={},b.Vue,b.UvUi))})(this,function(b,e,h){"use strict";const U=e.defineComponent({name:"uvuiButtonView"}),k=e.defineComponent({...U,props:{data:{type:Object,default:()=>{}}},setup(o){return(n,t)=>o.data&&o.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button_box",{plain:o.data.options.plain}]),style:e.normalizeStyle({"justify-content":o.data.options.position})},[e.createVNode(e.unref(h.uvButton),{type:o.data.options.type||"primary",bgColor:o.data.options.color,disabled:o.data.options.disabled,color:o.data.options.textColor,round:o.data.options.shape=="circle",square:o.data.options.shape=="square",size:o.data.options.size,loading:o.data.options.loading,icon:o.data.options.icon,style:e.normalizeStyle({width:o.data.options.width+"px",height:o.data.options.height+"px"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.options.text||"按钮"),1)]),_:1},8,["type","bgColor","disabled","color","round","square","size","loading","icon","style"])],6)):e.createCommentVNode("",!0)}}),ge="",N=(o,n)=>{const t=o.__vccOpts||o;for(const[c,m]of n)t[c]=m;return t},y=N(k,[["__scopeId","data-v-ddf92851"]]),T={key:0,class:"banner-content"},B=e.defineComponent({name:"uvuiButtonData"}),E=e.defineComponent({...B,props:{data:{type:Object,default:()=>{}}},setup(o){const n=o,t=e.ref(),c=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(c.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-switch"),d=e.resolveComponent("el-form-item"),p=e.resolveComponent("el-input-number"),s=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),u=e.resolveComponent("el-radio-button"),x=e.resolveComponent("el-radio-group"),a=e.resolveComponent("el-input"),w=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(V,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"显示边框"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.hairline,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value.hairline=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.width,"onUpdate:modelValue":l[1]||(l[1]=i=>t.value.width=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.height,"onUpdate:modelValue":l[2]||(l[2]=i=>t.value.height=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"主题颜色"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.type,"onUpdate:modelValue":l[3]||(l[3]=i=>t.value.type=i),placeholder:"请选择",style:{width:"180px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"primary",value:"primary"}),e.createVNode(s,{label:"success",value:"success"}),e.createVNode(s,{label:"info",value:"info"}),e.createVNode(s,{label:"warning",value:"warning"}),e.createVNode(s,{label:"error",value:"error"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"大小"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.size,"onUpdate:modelValue":l[4]||(l[4]=i=>t.value.size=i)},{default:e.withCtx(()=>[e.createVNode(u,{label:"normal"},{default:e.withCtx(()=>[e.createTextVNode("normal")]),_:1}),e.createVNode(u,{label:"medium"},{default:e.withCtx(()=>[e.createTextVNode("medium")]),_:1}),e.createVNode(u,{label:"mini"},{default:e.withCtx(()=>[e.createTextVNode("mini")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮位置"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.position,"onUpdate:modelValue":l[5]||(l[5]=i=>t.value.position=i)},{default:e.withCtx(()=>[e.createVNode(u,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("居左")]),_:1}),e.createVNode(u,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(u,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("居右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"形状"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.shape,"onUpdate:modelValue":l[6]||(l[6]=i=>t.value.shape=i)},{default:e.withCtx(()=>[e.createVNode(u,{label:"square"},{default:e.withCtx(()=>[e.createTextVNode("square")]),_:1}),e.createVNode(u,{label:"circle"},{default:e.withCtx(()=>[e.createTextVNode("circle")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"镂空"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.plain,"onUpdate:modelValue":l[7]||(l[7]=i=>t.value.plain=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.disabled,"onUpdate:modelValue":l[8]||(l[8]=i=>t.value.disabled=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.fill,"onUpdate:modelValue":l[9]||(l[9]=i=>t.value.fill=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"loading图标"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.loading,"onUpdate:modelValue":l[10]||(l[10]=i=>t.value.loading=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"加载中文字"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:t.value.loadingText,"onUpdate:modelValue":l[11]||(l[11]=i=>t.value.loadingText=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"开放能力"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.openType,"onUpdate:modelValue":l[12]||(l[12]=i=>t.value.openType=i),placeholder:"请选择",style:{width:"180px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(s,{label:"跳转页面",value:"navigateTo"}),e.createVNode(s,{label:"获取用户信息",value:"getUserInfo"}),e.createVNode(s,{label:"联系客服",value:"contact"}),e.createVNode(s,{label:"获取手机号",value:"getPhoneNumber"}),e.createVNode(s,{label:"打开授权设置",value:"openSetting"}),e.createVNode(s,{label:"获取用户头像",value:"chooseAvatar"}),e.createVNode(s,{label:"意见反馈",value:"feedback"}),e.createVNode(s,{label:"分享",value:"share"}),e.createVNode(s,{label:"自定义",value:"customize"})]),_:1},8,["modelValue"])]),_:1}),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(d,{key:0,label:"页面路径"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:t.value.pagePath,"onUpdate:modelValue":l[13]||(l[13]=i=>t.value.pagePath=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(d,{key:1,label:"tabbar页面"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.isTabBar,"onUpdate:modelValue":l[14]||(l[14]=i=>t.value.isTabBar=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(d,{label:"按钮文字"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:t.value.text,"onUpdate:modelValue":l[15]||(l[15]=i=>t.value.text=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮颜色"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.color,"onUpdate:modelValue":l[16]||(l[16]=i=>t.value.color=i),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.textColor,"onUpdate:modelValue":l[17]||(l[17]=i=>t.value.textColor=i),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[18]||(l[18]=i=>t.value.customStyle=i),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Ue="",g=N(E,[["__scopeId","data-v-3bbcd931"]]),S={type:"uvui-button",name:"按钮",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:y,editCom:g,limit:0},I={data:{},options:{width:"100",height:"45",hairline:!0,type:"primary",size:"normal",shape:"square",position:"left",plain:!1,disabled:!1,loading:!1,loadingText:"",openType:"navigateTo",pagePath:"",isTabBar:!1,text:"",textColor:"#ffffff",icon:"",color:"",customStyle:"",fill:!0}},z={key:0,class:"textarea_box"},$=e.defineComponent({name:"TextareaView"}),D=e.defineComponent({...$,props:{data:{type:Object,default:()=>{}}},setup(o){const n=e.ref("");return(t,c)=>{const m=e.resolveComponent("el-input");return o.data&&o.data.options?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=f=>n.value=f),placeholder:o.data.options.placeholder||"请输入",style:e.normalizeStyle({width:"100%",height:o.data.options.height}),"show-word-limit":o.data.options.count,autosize:o.data.options.autoHeight,maxlength:o.data.options.maxlength,rows:2,type:"textarea"},null,8,["modelValue","placeholder","style","show-word-limit","autosize","maxlength"])])):e.createCommentVNode("",!0)}}}),ke="",P=N(D,[["__scopeId","data-v-b4db5b9f"]]),L={key:0,class:"banner-content"},O=e.defineComponent({name:"TextareaData"}),M=e.defineComponent({...O,props:{data:{type:Object,default:()=>{}}},setup(o){const n=o,t=e.ref(),c=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(c.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-input"),d=e.resolveComponent("el-form-item"),p=e.resolveComponent("el-input-number"),s=e.resolveComponent("el-switch"),_=e.resolveComponent("el-radio-button"),u=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(x,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"空值占位内容"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.placeholder,"onUpdate:modelValue":l[0]||(l[0]=a=>t.value.placeholder=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.height,"onUpdate:modelValue":l[1]||(l[1]=a=>t.value.height=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"右下角按钮文字"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.confirmType,"onUpdate:modelValue":l[2]||(l[2]=a=>t.value.confirmType=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示字数统计"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.count,"onUpdate:modelValue":l[3]||(l[3]=a=>t.value.count=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自动增高"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.autoHeight,"onUpdate:modelValue":l[4]||(l[4]=a=>t.value.autoHeight=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示完成按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.showConfirmBar,"onUpdate:modelValue":l[5]||(l[5]=a=>t.value.showConfirmBar=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"输入长度"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.maxlength,"onUpdate:modelValue":l[6]||(l[6]=a=>t.value.maxlength=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.fill,"onUpdate:modelValue":l[7]||(l[7]=a=>t.value.fill=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"边框"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:t.value.size,"onUpdate:modelValue":l[8]||(l[8]=a=>t.value.size=a)},{default:e.withCtx(()=>[e.createVNode(_,{label:"surround"},{default:e.withCtx(()=>[e.createTextVNode("四周边框")]),_:1}),e.createVNode(_,{label:"none"},{default:e.withCtx(()=>[e.createTextVNode("无边框")]),_:1}),e.createVNode(_,{label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("底部边框")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[9]||(l[9]=a=>t.value.customStyle=a),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Te="",j={type:"uvui-textarea",name:"文本域",icon:"Textarea",fontIcon:"icon-24gl-grid",page:"index,activity",viewCom:P,editCom:N(M,[["__scopeId","data-v-91c833b3"]]),limit:0},q={type:"uvui-textarea",data:{},options:{placeholder:"请输入",height:"70",confirmType:"done",count:!1,autoHeight:!1,showConfirmBar:!1,maxlength:140,border:"surround",customStyle:"",fill:!0}},W=e.defineComponent({name:"NumberBoxView"}),H=e.defineComponent({...W,props:{data:{type:Object,default:()=>{}}},setup(o){const n=o,t=e.ref(1);return e.watch(()=>n.data.options,c=>{t.value=c}),(c,m)=>o.data&&o.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:"number-box-wrapper",style:e.normalizeStyle({"justify-content":o.data.options.align})},[e.createVNode(e.unref(h.uvStepper),{min:o.data.options.min,modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=f=>t.value=f),max:o.data.options.max,integer:o.data.options.integer,disabled:!0,inputWidth:o.data.options.inputWidth+"px",step:o.data.options.step},null,8,["min","modelValue","max","integer","inputWidth","step"])],4)):e.createCommentVNode("",!0)}}),Ee="",A=N(H,[["__scopeId","data-v-d025175e"]]),F={key:0,class:"banner-content"},G=e.defineComponent({name:"NumberBoxData"}),R=e.defineComponent({...G,props:{data:{type:Object,default:()=>{}}},setup(o){const n=o,t=e.ref(),c=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(c.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-form-item"),p=e.resolveComponent("el-switch"),s=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-radio-button"),u=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(x,{"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"当前值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.value,"onUpdate:modelValue":l[0]||(l[0]=a=>t.value.value=a),min:t.value.min,max:t.value.max,step:t.value.step},null,8,["modelValue","min","max","step"])]),_:1}),e.createVNode(d,{label:"最小值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.min,"onUpdate:modelValue":l[1]||(l[1]=a=>t.value.min=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"最大值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.max,"onUpdate:modelValue":l[2]||(l[2]=a=>t.value.max=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"步长"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.step,"onUpdate:modelValue":l[3]||(l[3]=a=>t.value.step=a),min:0,precision:2},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"只能正整数"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.integer,"onUpdate:modelValue":l[4]||(l[4]=a=>t.value.integer=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用操作"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disabled,"onUpdate:modelValue":l[5]||(l[5]=a=>t.value.disabled=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁止输入框"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disabledInput,"onUpdate:modelValue":l[6]||(l[6]=a=>t.value.disabledInput=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"输入框宽度(px)"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.inputWidth,"onUpdate:modelValue":l[7]||(l[7]=a=>t.value.inputWidth=a),min:20,max:200},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示减少按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.showMinus,"onUpdate:modelValue":l[8]||(l[8]=a=>t.value.showMinus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示增加按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.showPlus,"onUpdate:modelValue":l[9]||(l[9]=a=>t.value.showPlus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"小数位数"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.decimalLength,"onUpdate:modelValue":l[10]||(l[10]=a=>t.value.decimalLength=a),min:0,max:10},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"允许长按"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.longPress,"onUpdate:modelValue":l[11]||(l[11]=a=>t.value.longPress=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.color,"onUpdate:modelValue":l[12]||(l[12]=a=>t.value.color=a),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮大小(px)"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.buttonSize,"onUpdate:modelValue":l[13]||(l[13]=a=>t.value.buttonSize=a),min:20,max:100},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.bgColor,"onUpdate:modelValue":l[14]||(l[14]=a=>t.value.bgColor=a),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用增加按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disablePlus,"onUpdate:modelValue":l[15]||(l[15]=a=>t.value.disablePlus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用减少按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disableMinus,"onUpdate:modelValue":l[16]||(l[16]=a=>t.value.disableMinus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"对齐方式"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:t.value.align,"onUpdate:modelValue":l[17]||(l[17]=a=>t.value.align=a)},{default:e.withCtx(()=>[e.createVNode(_,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(_,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中对齐")]),_:1}),e.createVNode(_,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.fill,"onUpdate:modelValue":l[18]||(l[18]=a=>t.value.fill=a)},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Se="",X={type:"uvui-numberBox",name:"步进器",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:A,editCom:N(R,[["__scopeId","data-v-0130b026"]]),limit:0},J={data:{},options:{value:1,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:0,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",disablePlus:!1,disableMinus:!1,align:"left",fill:!1}},K={key:0,class:"cell_box"},Q=e.defineComponent({name:"CollapseView"}),Y=e.defineComponent({...Q,props:{data:{type:Object,default:()=>{}}},setup(o){const n=o,t=e.ref([]),c=e.computed(()=>n.data.data&&n.data.data.list?(t.value=n.data.data.list.map((m,f)=>m.title+"_"+f),n.data.data.list):[]);return(m,f)=>o.data&&o.data.options?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(e.unref(h.uvCollapse),{modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=l=>t.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(l,r)=>(e.openBlock(),e.createBlock(e.unref(h.uvCollapseItem),{key:r,name:l.title+"_"+r},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),right:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(l.label),1)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}),ze="",Z=N(Y,[["__scopeId","data-v-cd08eed6"]]),C=o=>(e.pushScopeId("data-v-c904acd0"),o=o(),e.popScopeId(),o),v={key:0,class:"banner-content"},ee={class:"l-info"},te={class:"mt-5px"},le=C(()=>e.createElementVNode("span",null,"标题:",-1)),ae={class:"mt-5px"},oe=C(()=>e.createElementVNode("span",null,"内容:",-1)),de={class:"mt-5px"},ne=C(()=>e.createElementVNode("span",null,"描述:",-1)),ie={class:"mt-5px"},re=C(()=>e.createElementVNode("span",null,"禁用:",-1)),se={class:"mt-5px"},me=C(()=>e.createElementVNode("span",null,"右箭头:",-1)),pe={class:"mt-5px"},ce=C(()=>e.createElementVNode("span",null,"点击反馈:",-1)),Ve={class:"mt-5px"},ue=C(()=>e.createElementVNode("span",null,"显示内边框:",-1)),fe={class:"mt-5px"},_e=e.defineComponent({name:"CollapseData"}),xe=e.defineComponent({..._e,props:{data:{type:Object,default:()=>{}}},setup(o){const n=o,t=e.ref(),c=e.ref(),m=e.ref(!1),f=r=>{c.value.list.splice(r,1)},l=()=>{c.value.list.push({title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0})};return e.onMounted(()=>{n.data&&(c.value=n.data.data,t.value=n.data.options,m.value=!0)}),(r,d)=>{const p=e.resolveComponent("el-switch"),s=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-form"),u=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return m.value?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(_,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.fill,"onUpdate:modelValue":d[0]||(d[0]=a=>t.value.fill=a)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(u,{type:"primary",onClick:l,class:"mt-10px"},{default:e.withCtx(()=>[e.createTextVNode("添加项")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.list,(a,w)=>(e.openBlock(),e.createElementBlock("div",{class:"item-list",key:w},[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[le,e.createVNode(x,{modelValue:a.title,"onUpdate:modelValue":V=>a.title=V,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ae,[oe,e.createVNode(x,{modelValue:a.value,"onUpdate:modelValue":V=>a.value=V,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",de,[ne,e.createVNode(x,{modelValue:a.label,"onUpdate:modelValue":V=>a.label=V,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ie,[re,e.createVNode(p,{modelValue:a.disabled,"onUpdate:modelValue":V=>a.disabled=V},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",se,[me,e.createVNode(p,{modelValue:a.isLink,"onUpdate:modelValue":V=>a.isLink=V},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",pe,[ce,e.createVNode(p,{modelValue:a.clickable,"onUpdate:modelValue":V=>a.clickable=V},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",Ve,[ue,e.createVNode(p,{modelValue:a.border,"onUpdate:modelValue":V=>a.border=V},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",fe,[e.createVNode(u,{type:"danger",onClick:V=>f(w),size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])])]))),128))])):e.createCommentVNode("",!0)}}}),$e="",be={type:"uvui-collapse",name:"折叠面板",icon:"Postcard",fontIcon:"icon-danyuange1",page:"index,activity",viewCom:Z,editCom:N(xe,[["__scopeId","data-v-c904acd0"]]),limit:0},Ne={data:{list:[{title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0}]},options:{fill:!1}},Ce={buttonTypeList:S,textareaTypeList:j,numberBoxTypeList:X,collapseTypeList:be},we={buttonOptions:I,textareaOptions:q,numberBoxOptions:J,collapseOptions:Ne},he=[g,y],ye={install(o){he.forEach(n=>{o.component(n.name,n)})}};b.default=ye,b.uvUIOptions=we,b.uvUiList=Ce,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("uv-ui")):typeof define=="function"&&define.amd?define(["exports","vue","uv-ui"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.VuvUi={},N.Vue,N.UvUi))})(this,function(N,e,h){"use strict";const I=e.defineComponent({name:"uvuiButtonView"}),z=e.defineComponent({...I,props:{data:{type:Object,default:()=>{}}},setup(a){return(n,t)=>a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button_box",{plain:a.data.options.plain}]),style:e.normalizeStyle({"justify-content":a.data.options.position})},[e.createVNode(e.unref(h.uvButton),{type:a.data.options.type||"primary",bgColor:a.data.options.color,disabled:a.data.options.disabled,color:a.data.options.textColor,round:a.data.options.shape=="circle",square:a.data.options.shape=="square",size:a.data.options.size,loading:a.data.options.loading,icon:a.data.options.icon,style:e.normalizeStyle({width:a.data.options.width+"px",height:a.data.options.height+"px"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.data.options.text||"按钮"),1)]),_:1},8,["type","bgColor","disabled","color","round","square","size","loading","icon","style"])],6)):e.createCommentVNode("",!0)}}),Te="",b=(a,n)=>{const t=a.__vccOpts||a;for(const[p,m]of n)t[p]=m;return t},y=b(z,[["__scopeId","data-v-ddf92851"]]),$={key:0,class:"banner-content"},P=e.defineComponent({name:"uvuiButtonData"}),D=e.defineComponent({...P,props:{data:{type:Object,default:()=>({})}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-switch"),d=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-input-number"),s=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),V=e.resolveComponent("el-radio-button"),x=e.resolveComponent("el-radio-group"),o=e.resolveComponent("el-input"),w=e.resolveComponent("el-color-picker"),u=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",$,[e.createVNode(u,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"显示边框"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.hairline,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value.hairline=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.width,"onUpdate:modelValue":l[1]||(l[1]=i=>t.value.width=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.height,"onUpdate:modelValue":l[2]||(l[2]=i=>t.value.height=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"主题颜色"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.type,"onUpdate:modelValue":l[3]||(l[3]=i=>t.value.type=i),placeholder:"请选择",style:{width:"180px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"primary",value:"primary"}),e.createVNode(s,{label:"success",value:"success"}),e.createVNode(s,{label:"info",value:"info"}),e.createVNode(s,{label:"warning",value:"warning"}),e.createVNode(s,{label:"error",value:"error"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"大小"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.size,"onUpdate:modelValue":l[4]||(l[4]=i=>t.value.size=i)},{default:e.withCtx(()=>[e.createVNode(V,{label:"normal"},{default:e.withCtx(()=>[e.createTextVNode("normal")]),_:1}),e.createVNode(V,{label:"medium"},{default:e.withCtx(()=>[e.createTextVNode("medium")]),_:1}),e.createVNode(V,{label:"mini"},{default:e.withCtx(()=>[e.createTextVNode("mini")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮位置"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.position,"onUpdate:modelValue":l[5]||(l[5]=i=>t.value.position=i)},{default:e.withCtx(()=>[e.createVNode(V,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("居左")]),_:1}),e.createVNode(V,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(V,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("居右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"形状"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.shape,"onUpdate:modelValue":l[6]||(l[6]=i=>t.value.shape=i)},{default:e.withCtx(()=>[e.createVNode(V,{label:"square"},{default:e.withCtx(()=>[e.createTextVNode("square")]),_:1}),e.createVNode(V,{label:"circle"},{default:e.withCtx(()=>[e.createTextVNode("circle")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"镂空"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.plain,"onUpdate:modelValue":l[7]||(l[7]=i=>t.value.plain=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.disabled,"onUpdate:modelValue":l[8]||(l[8]=i=>t.value.disabled=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.fill,"onUpdate:modelValue":l[9]||(l[9]=i=>t.value.fill=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"loading图标"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.loading,"onUpdate:modelValue":l[10]||(l[10]=i=>t.value.loading=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"加载中文字"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.loadingText,"onUpdate:modelValue":l[11]||(l[11]=i=>t.value.loadingText=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"开放能力"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.openType,"onUpdate:modelValue":l[12]||(l[12]=i=>t.value.openType=i),placeholder:"请选择",style:{width:"180px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(s,{label:"跳转页面",value:"navigateTo"}),e.createVNode(s,{label:"获取用户信息",value:"getUserInfo"}),e.createVNode(s,{label:"联系客服",value:"contact"}),e.createVNode(s,{label:"获取手机号",value:"getPhoneNumber"}),e.createVNode(s,{label:"打开授权设置",value:"openSetting"}),e.createVNode(s,{label:"获取用户头像",value:"chooseAvatar"}),e.createVNode(s,{label:"意见反馈",value:"feedback"}),e.createVNode(s,{label:"分享",value:"share"}),e.createVNode(s,{label:"自定义",value:"customize"})]),_:1},8,["modelValue"])]),_:1}),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(d,{key:0,label:"页面路径"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.pagePath,"onUpdate:modelValue":l[13]||(l[13]=i=>t.value.pagePath=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(d,{key:1,label:"tabbar页面"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.isTabBar,"onUpdate:modelValue":l[14]||(l[14]=i=>t.value.isTabBar=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(d,{label:"按钮文字"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.text,"onUpdate:modelValue":l[15]||(l[15]=i=>t.value.text=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮颜色"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.color,"onUpdate:modelValue":l[16]||(l[16]=i=>t.value.color=i),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.textColor,"onUpdate:modelValue":l[17]||(l[17]=i=>t.value.textColor=i),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[18]||(l[18]=i=>t.value.customStyle=i),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Be="",g=b(D,[["__scopeId","data-v-b6cfa2c3"]]),L={type:"uvui-button",name:"按钮",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:y,editCom:g,limit:0},O={data:{},options:{width:"100",height:"45",hairline:!0,type:"primary",size:"normal",shape:"square",position:"left",plain:!1,disabled:!1,loading:!1,loadingText:"",openType:"navigateTo",pagePath:"",isTabBar:!1,text:"",textColor:"#ffffff",icon:"",color:"",customStyle:"",fill:!0}},M={key:0,class:"textarea_box"},j=e.defineComponent({name:"uvuiTextareaView"}),q=e.defineComponent({...j,props:{data:{type:Object,default:()=>{}}},setup(a){const n=e.ref("");return(t,p)=>{const m=e.resolveComponent("el-input");return a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=f=>n.value=f),placeholder:a.data.options.placeholder||"请输入",style:e.normalizeStyle({width:"100%",height:a.data.options.height}),"show-word-limit":a.data.options.count,autosize:a.data.options.autoHeight,maxlength:a.data.options.maxlength,rows:2,type:"textarea"},null,8,["modelValue","placeholder","style","show-word-limit","autosize","maxlength"])])):e.createCommentVNode("",!0)}}}),Ee="",U=b(q,[["__scopeId","data-v-2c9ba636"]]),W={key:0,class:"banner-content"},H=e.defineComponent({name:"uvuiTextareaData"}),A=e.defineComponent({...H,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-input"),d=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-input-number"),s=e.resolveComponent("el-switch"),_=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(x,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"空值占位内容"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.placeholder,"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.placeholder=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.height,"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.height=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"右下角按钮文字"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.confirmType,"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.confirmType=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示字数统计"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.count,"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.count=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自动增高"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.autoHeight,"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.autoHeight=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示完成按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.showConfirmBar,"onUpdate:modelValue":l[5]||(l[5]=o=>t.value.showConfirmBar=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"输入长度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.maxlength,"onUpdate:modelValue":l[6]||(l[6]=o=>t.value.maxlength=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.fill,"onUpdate:modelValue":l[7]||(l[7]=o=>t.value.fill=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"边框"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:t.value.size,"onUpdate:modelValue":l[8]||(l[8]=o=>t.value.size=o)},{default:e.withCtx(()=>[e.createVNode(_,{label:"surround"},{default:e.withCtx(()=>[e.createTextVNode("四周边框")]),_:1}),e.createVNode(_,{label:"none"},{default:e.withCtx(()=>[e.createTextVNode("无边框")]),_:1}),e.createVNode(_,{label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("底部边框")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[9]||(l[9]=o=>t.value.customStyle=o),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Se="",k=b(A,[["__scopeId","data-v-5fabf6f4"]]),F={type:"uvui-textarea",name:"文本域",icon:"Textarea",fontIcon:"icon-24gl-grid",page:"index,activity",viewCom:U,editCom:k,limit:0},G={type:"uvui-textarea",data:{},options:{placeholder:"请输入",height:"70",confirmType:"done",count:!1,autoHeight:!1,showConfirmBar:!1,maxlength:140,border:"surround",customStyle:"",fill:!0}},R=e.defineComponent({name:"uvuiNumberBoxView"}),X=e.defineComponent({...R,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(1);return e.watch(()=>n.data.options,p=>{t.value=p}),(p,m)=>a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:"number-box-wrapper",style:e.normalizeStyle({"justify-content":a.data.options.align})},[e.createVNode(e.unref(h.uvStepper),{min:a.data.options.min,modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=f=>t.value=f),max:a.data.options.max,integer:a.data.options.integer,disabled:!0,inputWidth:a.data.options.inputWidth+"px",step:a.data.options.step},null,8,["min","modelValue","max","integer","inputWidth","step"])],4)):e.createCommentVNode("",!0)}}),Ie="",T=b(X,[["__scopeId","data-v-5e5cedd4"]]),J={key:0,class:"banner-content"},K=e.defineComponent({name:"uvuiNumberBoxData"}),Q=e.defineComponent({...K,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-switch"),s=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(x,{"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"当前值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.value,"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.value=o),min:t.value.min,max:t.value.max,step:t.value.step},null,8,["modelValue","min","max","step"])]),_:1}),e.createVNode(d,{label:"最小值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.min,"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.min=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"最大值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.max,"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.max=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"步长"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.step,"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.step=o),min:0,precision:2},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"只能正整数"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.integer,"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.integer=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用操作"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disabled,"onUpdate:modelValue":l[5]||(l[5]=o=>t.value.disabled=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁止输入框"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disabledInput,"onUpdate:modelValue":l[6]||(l[6]=o=>t.value.disabledInput=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"输入框宽度(px)"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.inputWidth,"onUpdate:modelValue":l[7]||(l[7]=o=>t.value.inputWidth=o),min:20,max:200},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示减少按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.showMinus,"onUpdate:modelValue":l[8]||(l[8]=o=>t.value.showMinus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示增加按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.showPlus,"onUpdate:modelValue":l[9]||(l[9]=o=>t.value.showPlus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"小数位数"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.decimalLength,"onUpdate:modelValue":l[10]||(l[10]=o=>t.value.decimalLength=o),min:0,max:10},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"允许长按"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.longPress,"onUpdate:modelValue":l[11]||(l[11]=o=>t.value.longPress=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.color,"onUpdate:modelValue":l[12]||(l[12]=o=>t.value.color=o),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮大小(px)"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.buttonSize,"onUpdate:modelValue":l[13]||(l[13]=o=>t.value.buttonSize=o),min:20,max:100},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.bgColor,"onUpdate:modelValue":l[14]||(l[14]=o=>t.value.bgColor=o),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用增加按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disablePlus,"onUpdate:modelValue":l[15]||(l[15]=o=>t.value.disablePlus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用减少按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disableMinus,"onUpdate:modelValue":l[16]||(l[16]=o=>t.value.disableMinus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"对齐方式"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:t.value.align,"onUpdate:modelValue":l[17]||(l[17]=o=>t.value.align=o)},{default:e.withCtx(()=>[e.createVNode(_,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(_,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中对齐")]),_:1}),e.createVNode(_,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.fill,"onUpdate:modelValue":l[18]||(l[18]=o=>t.value.fill=o)},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),ze="",B=b(Q,[["__scopeId","data-v-8c36631f"]]),Y={type:"uvui-numberBox",name:"步进器",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:T,editCom:B,limit:0},Z={data:{},options:{value:1,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:0,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",disablePlus:!1,disableMinus:!1,align:"left",fill:!1}},v={key:0,class:"cell_box"},ee=e.defineComponent({name:"uvuiCollapseView"}),te=e.defineComponent({...ee,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref([]),p=e.computed(()=>n.data.data&&n.data.data.list?(t.value=n.data.data.list.map((m,f)=>m.title+"_"+f),n.data.data.list):[]);return(m,f)=>a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(h.uvCollapse),{modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=l=>t.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(l,r)=>(e.openBlock(),e.createBlock(e.unref(h.uvCollapseItem),{key:r,name:l.title+"_"+r},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),right:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(l.label),1)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}),$e="",E=b(te,[["__scopeId","data-v-5dc143d6"]]),C=a=>(e.pushScopeId("data-v-127edc70"),a=a(),e.popScopeId(),a),le={key:0,class:"banner-content"},oe={class:"l-info"},ae={class:"mt-5px"},de=C(()=>e.createElementVNode("span",null,"标题:",-1)),ne={class:"mt-5px"},ie=C(()=>e.createElementVNode("span",null,"内容:",-1)),re={class:"mt-5px"},se=C(()=>e.createElementVNode("span",null,"描述:",-1)),me={class:"mt-5px"},ce=C(()=>e.createElementVNode("span",null,"禁用:",-1)),pe={class:"mt-5px"},ue=C(()=>e.createElementVNode("span",null,"右箭头:",-1)),Ve={class:"mt-5px"},fe=C(()=>e.createElementVNode("span",null,"点击反馈:",-1)),_e={class:"mt-5px"},xe=C(()=>e.createElementVNode("span",null,"显示内边框:",-1)),Ne={class:"mt-5px"},be=e.defineComponent({name:"uvuiCollapseData"}),Ce=e.defineComponent({...be,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1),f=r=>{p.value.list.splice(r,1)},l=()=>{p.value.list.push({title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0})};return e.onMounted(()=>{n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(r,d)=>{const c=e.resolveComponent("el-switch"),s=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-form"),V=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return m.value?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(_,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.fill,"onUpdate:modelValue":d[0]||(d[0]=o=>t.value.fill=o)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(V,{type:"primary",onClick:l,class:"mt-10px"},{default:e.withCtx(()=>[e.createTextVNode("添加项")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.list,(o,w)=>(e.openBlock(),e.createElementBlock("div",{class:"item-list",key:w},[e.createElementVNode("div",oe,[e.createElementVNode("div",ae,[de,e.createVNode(x,{modelValue:o.title,"onUpdate:modelValue":u=>o.title=u,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ne,[ie,e.createVNode(x,{modelValue:o.value,"onUpdate:modelValue":u=>o.value=u,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",re,[se,e.createVNode(x,{modelValue:o.label,"onUpdate:modelValue":u=>o.label=u,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",me,[ce,e.createVNode(c,{modelValue:o.disabled,"onUpdate:modelValue":u=>o.disabled=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",pe,[ue,e.createVNode(c,{modelValue:o.isLink,"onUpdate:modelValue":u=>o.isLink=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",Ve,[fe,e.createVNode(c,{modelValue:o.clickable,"onUpdate:modelValue":u=>o.clickable=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",_e,[xe,e.createVNode(c,{modelValue:o.border,"onUpdate:modelValue":u=>o.border=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",Ne,[e.createVNode(V,{type:"danger",onClick:u=>f(w),size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])])]))),128))])):e.createCommentVNode("",!0)}}}),Pe="",S=b(Ce,[["__scopeId","data-v-127edc70"]]),we={type:"uvui-collapse",name:"折叠面板",icon:"Postcard",fontIcon:"icon-danyuange1",page:"index,activity",viewCom:E,editCom:S,limit:0},he={data:{list:[{title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0}]},options:{fill:!1}},ye={buttonTypeList:L,textareaTypeList:F,numberBoxTypeList:Y,collapseTypeList:we},ge={buttonOptions:O,textareaOptions:G,numberBoxOptions:Z,collapseOptions:he},Ue=[g,y,k,U,B,T,S,E],ke={install(a){Ue.forEach(n=>{a.component(n.name,n)})}};N.default=ke,N.uvUIOptions=ge,N.uvUiList=ye,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|