sun-form-v3 1.0.89 → 1.0.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,127 @@
1
+ import { resolveComponent as p, openBlock as f, createElementBlock as b, Fragment as c, createVNode as e, withCtx as n, unref as o } from "vue";
2
+ const g = /* @__PURE__ */ Object.assign({ name: "config-div" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(m) {
15
+ let l = m;
16
+ return (w, t) => {
17
+ const i = p("el-switch"), d = p("common-label-container"), u = p("el-radio-button"), s = p("el-radio-group"), r = p("el-radio");
18
+ return f(), b(c, null, [
19
+ e(d, { label: "是否弹性布局" }, {
20
+ default: n(() => [
21
+ e(i, {
22
+ modelValue: o(l).widget.props.flex,
23
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => o(l).widget.props.flex = a)
24
+ }, null, 8, ["modelValue"])
25
+ ]),
26
+ _: 1
27
+ }),
28
+ e(d, { label: "是否弹性换行" }, {
29
+ default: n(() => [
30
+ e(i, {
31
+ modelValue: o(l).widget.props.flexWrap,
32
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).widget.props.flexWrap = a)
33
+ }, null, 8, ["modelValue"])
34
+ ]),
35
+ _: 1
36
+ }),
37
+ e(d, { label: "弹性方向" }, {
38
+ default: n(() => [
39
+ e(s, {
40
+ modelValue: o(l).widget.props.flexDirection,
41
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).widget.props.flexDirection = a)
42
+ }, {
43
+ default: n(() => [
44
+ e(u, {
45
+ value: "row",
46
+ label: "row"
47
+ }),
48
+ e(u, {
49
+ value: "column",
50
+ label: "column"
51
+ })
52
+ ]),
53
+ _: 1
54
+ }, 8, ["modelValue"])
55
+ ]),
56
+ _: 1
57
+ }),
58
+ e(d, { label: "横向对齐" }, {
59
+ default: n(() => [
60
+ e(s, {
61
+ modelValue: o(l).widget.props.alignItems,
62
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).widget.props.alignItems = a)
63
+ }, {
64
+ default: n(() => [
65
+ e(u, {
66
+ value: "center",
67
+ label: "center"
68
+ }),
69
+ e(u, {
70
+ value: "flex-start",
71
+ label: "start"
72
+ }),
73
+ e(u, {
74
+ value: "flex-end",
75
+ label: "end"
76
+ })
77
+ ]),
78
+ _: 1
79
+ }, 8, ["modelValue"])
80
+ ]),
81
+ _: 1
82
+ }),
83
+ e(d, { label: "纵向对齐" }, {
84
+ default: n(() => [
85
+ e(s, {
86
+ modelValue: o(l).widget.props.justifyContent,
87
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => o(l).widget.props.justifyContent = a)
88
+ }, {
89
+ default: n(() => [
90
+ e(r, {
91
+ class: "w-full",
92
+ value: "space-between",
93
+ label: "between"
94
+ }),
95
+ e(r, {
96
+ class: "w-full",
97
+ value: "space-around",
98
+ label: "around"
99
+ }),
100
+ e(r, {
101
+ class: "w-full",
102
+ value: "center",
103
+ label: "center"
104
+ }),
105
+ e(r, {
106
+ class: "w-full",
107
+ value: "flex-start",
108
+ label: "start"
109
+ }),
110
+ e(r, {
111
+ class: "w-full",
112
+ value: "flex-end",
113
+ label: "end"
114
+ })
115
+ ]),
116
+ _: 1
117
+ }, 8, ["modelValue"])
118
+ ]),
119
+ _: 1
120
+ })
121
+ ], 64);
122
+ };
123
+ }
124
+ });
125
+ export {
126
+ g as default
127
+ };