@king-one/form-design 0.0.26 → 0.0.28
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/CHANGELOG.md +12 -0
- package/dist/es/src/components/form-material.vue.mjs +33 -29
- package/dist/es/src/components/panel/index.mjs +26 -24
- package/dist/es/src/components/panel/widget/leave-kit.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/leave-kit.vue2.mjs +66 -0
- package/dist/es/src/components/panel/widget/overtime-kit.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/overtime-kit.vue2.mjs +66 -0
- package/dist/es/src/components/props/widget/GridProps.vue2.mjs +84 -83
- package/dist/es/src/config/index.mjs +153 -124
- package/dist/es/src/core/FormSchema.mjs +45 -40
- package/dist/lib/src/components/form-material.vue.js +1 -1
- package/dist/lib/src/components/panel/index.js +1 -1
- package/dist/lib/src/components/panel/widget/leave-kit.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/leave-kit.vue2.js +1 -0
- package/dist/lib/src/components/panel/widget/overtime-kit.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/overtime-kit.vue2.js +1 -0
- package/dist/lib/src/components/props/widget/GridProps.vue2.js +1 -1
- package/dist/lib/src/config/index.js +15 -1
- package/dist/lib/src/core/FormSchema.js +1 -1
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/kit-panel.css +1 -1
- package/dist/types/src/components/panel/widget/leave-kit.vue.d.ts +3 -0
- package/dist/types/src/components/panel/widget/overtime-kit.vue.d.ts +3 -0
- package/dist/types/src/core/Design.d.ts +211 -79
- package/dist/types/src/core/FormSchema.d.ts +77 -13
- package/dist/types/src/types.d.ts +23 -7
- package/package.json +1 -1
- package/dist/es/src/components/panel/widget/kit.vue.mjs +0 -4
- package/dist/es/src/components/panel/widget/kit.vue2.mjs +0 -48
- package/dist/lib/src/components/panel/widget/kit.vue.js +0 -1
- package/dist/lib/src/components/panel/widget/kit.vue2.js +0 -1
- package/dist/types/src/components/panel/widget/kit.vue.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, ref as w, openBlock as
|
|
1
|
+
import { defineComponent as J, ref as w, openBlock as r, createElementBlock as m, normalizeClass as p, unref as o, createElementVNode as n, createVNode as a, withCtx as l, createTextVNode as N, Fragment as T, renderList as W, toDisplayString as y, createBlock as K, createCommentVNode as u } from "vue";
|
|
2
2
|
import "../internal.mjs";
|
|
3
3
|
import { RadioGroup as L, RadioButton as S } from "ant-design-vue";
|
|
4
4
|
import $ from "vuedraggable";
|
|
@@ -14,16 +14,16 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
14
14
|
}, X = { class: "widget-item-title" }, Y = { class: "template-item" }, Z = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "template-item-icon"
|
|
17
|
-
}, ee = { class: "template-item-name" },
|
|
17
|
+
}, ee = { class: "template-item-name" }, pe = /* @__PURE__ */ J({
|
|
18
18
|
name: "FormMaterial",
|
|
19
19
|
__name: "form-material",
|
|
20
20
|
setup(te) {
|
|
21
21
|
const k = w(), { updateDrag: c } = M(), { b: j } = g("material"), { b: B } = g("toolbar"), { b: E } = g("widget"), { b: I } = g("temp"), f = U(), { schema: R, tempSchema: O } = f, _ = w("1");
|
|
22
22
|
function z(s) {
|
|
23
|
-
const { icon: e, ...t } = s, i = JSON.parse(JSON.stringify(t)),
|
|
23
|
+
const { icon: e, ...t } = s, i = JSON.parse(JSON.stringify(t)), x = D(), d = {
|
|
24
24
|
...i,
|
|
25
|
-
name:
|
|
26
|
-
id:
|
|
25
|
+
name: x,
|
|
26
|
+
id: x,
|
|
27
27
|
"x-design-props": Object.assign({
|
|
28
28
|
validate: {
|
|
29
29
|
status: "",
|
|
@@ -37,7 +37,7 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
37
37
|
for (; v < 2; ) {
|
|
38
38
|
const h = D();
|
|
39
39
|
b.push({
|
|
40
|
-
title:
|
|
40
|
+
title: `栅格容器${v + 1}`,
|
|
41
41
|
name: h,
|
|
42
42
|
id: h,
|
|
43
43
|
key: "k-grid-column",
|
|
@@ -48,13 +48,17 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
48
48
|
"x-decorator": "Void",
|
|
49
49
|
"x-component-props": {
|
|
50
50
|
span: 12
|
|
51
|
+
},
|
|
52
|
+
"x-design-props": {
|
|
53
|
+
"convert-key": "properties",
|
|
54
|
+
"convert-type": "base"
|
|
51
55
|
}
|
|
52
56
|
}), v++;
|
|
53
57
|
}
|
|
54
58
|
d.children = b;
|
|
55
59
|
}
|
|
56
|
-
const { shared:
|
|
57
|
-
return
|
|
60
|
+
const { shared: C } = f;
|
|
61
|
+
return C.draggedContext.field = d, C.draggedContext.key = d.key, d;
|
|
58
62
|
}
|
|
59
63
|
function F(s) {
|
|
60
64
|
const { schema: e } = s, { shared: t } = f;
|
|
@@ -64,16 +68,16 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
64
68
|
var e;
|
|
65
69
|
(e = k.value) == null || e.goTo(Number(s.target.value) - 1);
|
|
66
70
|
}
|
|
67
|
-
return (s, e) => (
|
|
71
|
+
return (s, e) => (r(), m(
|
|
68
72
|
"div",
|
|
69
73
|
{
|
|
70
|
-
class:
|
|
74
|
+
class: p(o(j)())
|
|
71
75
|
},
|
|
72
76
|
[
|
|
73
77
|
n(
|
|
74
78
|
"div",
|
|
75
79
|
{
|
|
76
|
-
class:
|
|
80
|
+
class: p(o(B)())
|
|
77
81
|
},
|
|
78
82
|
[
|
|
79
83
|
a(o(L), {
|
|
@@ -83,12 +87,12 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
83
87
|
size: "default",
|
|
84
88
|
onChange: G
|
|
85
89
|
}, {
|
|
86
|
-
default:
|
|
90
|
+
default: l(() => [
|
|
87
91
|
a(o(S), {
|
|
88
92
|
class: "toolbar-button",
|
|
89
93
|
value: "1"
|
|
90
94
|
}, {
|
|
91
|
-
default:
|
|
95
|
+
default: l(() => e[5] || (e[5] = [
|
|
92
96
|
N(" 组件库 ")
|
|
93
97
|
])),
|
|
94
98
|
_: 1,
|
|
@@ -98,7 +102,7 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
98
102
|
class: "toolbar-button",
|
|
99
103
|
value: "2"
|
|
100
104
|
}, {
|
|
101
|
-
default:
|
|
105
|
+
default: l(() => e[6] || (e[6] = [
|
|
102
106
|
N(" 业务套件 ")
|
|
103
107
|
])),
|
|
104
108
|
_: 1,
|
|
@@ -120,17 +124,17 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
120
124
|
"model-value": 0
|
|
121
125
|
},
|
|
122
126
|
{
|
|
123
|
-
default:
|
|
127
|
+
default: l(() => [
|
|
124
128
|
n(
|
|
125
129
|
"div",
|
|
126
130
|
{
|
|
127
|
-
class:
|
|
131
|
+
class: p(o(E)())
|
|
128
132
|
},
|
|
129
133
|
[
|
|
130
|
-
(
|
|
134
|
+
(r(!0), m(
|
|
131
135
|
T,
|
|
132
136
|
null,
|
|
133
|
-
W(o(R), (t) => (
|
|
137
|
+
W(o(R), (t) => (r(), m("div", {
|
|
134
138
|
key: t.key,
|
|
135
139
|
class: "widget-group"
|
|
136
140
|
}, [
|
|
@@ -141,7 +145,7 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
141
145
|
1
|
|
142
146
|
/* TEXT */
|
|
143
147
|
),
|
|
144
|
-
t.widget ? (
|
|
148
|
+
t.widget ? (r(), K(o($), {
|
|
145
149
|
key: 0,
|
|
146
150
|
list: t.widget,
|
|
147
151
|
class: "widget-list-drag",
|
|
@@ -153,14 +157,14 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
153
157
|
onStart: e[1] || (e[1] = (i) => o(c)(!0)),
|
|
154
158
|
onEnd: e[2] || (e[2] = (i) => o(c)(!1))
|
|
155
159
|
}, {
|
|
156
|
-
item:
|
|
160
|
+
item: l(({ element: i }) => [
|
|
157
161
|
n("div", H, [
|
|
158
162
|
n("div", P, [
|
|
159
|
-
i.icon ? (
|
|
163
|
+
i.icon ? (r(), m("div", Q, [
|
|
160
164
|
a(o(V), {
|
|
161
165
|
icon: i.icon
|
|
162
166
|
}, null, 8, ["icon"])
|
|
163
|
-
])) :
|
|
167
|
+
])) : u("v-if", !0),
|
|
164
168
|
n(
|
|
165
169
|
"div",
|
|
166
170
|
X,
|
|
@@ -173,7 +177,7 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
173
177
|
]),
|
|
174
178
|
_: 2
|
|
175
179
|
/* DYNAMIC */
|
|
176
|
-
}, 1032, ["list"])) :
|
|
180
|
+
}, 1032, ["list"])) : u("v-if", !0)
|
|
177
181
|
]))),
|
|
178
182
|
128
|
|
179
183
|
/* KEYED_FRAGMENT */
|
|
@@ -185,7 +189,7 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
185
189
|
n(
|
|
186
190
|
"div",
|
|
187
191
|
{
|
|
188
|
-
class:
|
|
192
|
+
class: p(o(I)())
|
|
189
193
|
},
|
|
190
194
|
[
|
|
191
195
|
a(o($), {
|
|
@@ -199,13 +203,13 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
199
203
|
onStart: e[3] || (e[3] = (t) => o(c)(!0)),
|
|
200
204
|
onEnd: e[4] || (e[4] = (t) => o(c)(!1))
|
|
201
205
|
}, {
|
|
202
|
-
item:
|
|
206
|
+
item: l(({ element: t }) => [
|
|
203
207
|
n("div", Y, [
|
|
204
|
-
t.icon ? (
|
|
208
|
+
t.icon ? (r(), m("div", Z, [
|
|
205
209
|
a(o(V), {
|
|
206
210
|
icon: t.icon
|
|
207
211
|
}, null, 8, ["icon"])
|
|
208
|
-
])) :
|
|
212
|
+
])) : u("v-if", !0),
|
|
209
213
|
n(
|
|
210
214
|
"div",
|
|
211
215
|
ee,
|
|
@@ -218,7 +222,7 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
218
222
|
_: 1
|
|
219
223
|
/* STABLE */
|
|
220
224
|
}, 8, ["list"]),
|
|
221
|
-
|
|
225
|
+
u(` <div class="template-list">
|
|
222
226
|
<div v-for="g in tempSchema" :key="g.key" class="template-item">
|
|
223
227
|
<div v-if="g.icon" class="template-item-icon">
|
|
224
228
|
<WidgetIcon :icon="g.icon" />
|
|
@@ -246,5 +250,5 @@ const A = { class: "widget-group-name" }, H = { class: "widget-col" }, P = { cla
|
|
|
246
250
|
}
|
|
247
251
|
});
|
|
248
252
|
export {
|
|
249
|
-
|
|
253
|
+
pe as default
|
|
250
254
|
};
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { Input as
|
|
1
|
+
import { Input as m, Textarea as t, InputNumber as o } from "ant-design-vue";
|
|
2
2
|
import "./widget/object.vue.mjs";
|
|
3
3
|
import { panelWarpper as r } from "./panel-wrapper.mjs";
|
|
4
4
|
import "./widget/select.vue.mjs";
|
|
5
5
|
import "./widget/array-card.vue.mjs";
|
|
6
6
|
import "./widget/date-range.vue.mjs";
|
|
7
7
|
import "./widget/date-single.vue.mjs";
|
|
8
|
-
import "./widget/kit.vue.mjs";
|
|
8
|
+
import "./widget/overtime-kit.vue.mjs";
|
|
9
9
|
import "./widget/array-table.vue.mjs";
|
|
10
10
|
import "./widget/grid.vue.mjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"k-input
|
|
23
|
-
"k-
|
|
24
|
-
"k-
|
|
25
|
-
"k-
|
|
26
|
-
"k-
|
|
27
|
-
"k-
|
|
28
|
-
"k-
|
|
29
|
-
"k-
|
|
30
|
-
"k-
|
|
31
|
-
"k-
|
|
11
|
+
import "./widget/leave-kit.vue.mjs";
|
|
12
|
+
import i from "./widget/select.vue2.mjs";
|
|
13
|
+
import p from "./widget/object.vue2.mjs";
|
|
14
|
+
import e from "./widget/date-range.vue2.mjs";
|
|
15
|
+
import a from "./widget/date-single.vue2.mjs";
|
|
16
|
+
import n from "./widget/array-card.vue2.mjs";
|
|
17
|
+
import f from "./widget/overtime-kit.vue2.mjs";
|
|
18
|
+
import _ from "./widget/leave-kit.vue2.mjs";
|
|
19
|
+
import c from "./widget/array-table.vue2.mjs";
|
|
20
|
+
import s from "./widget/grid.vue2.mjs";
|
|
21
|
+
const k = r(m), u = r(t), $ = r(o), C = {
|
|
22
|
+
"k-input": k,
|
|
23
|
+
"k-textarea": u,
|
|
24
|
+
"k-input-number": $,
|
|
25
|
+
"k-select": i,
|
|
26
|
+
"k-object": p,
|
|
27
|
+
"k-date-range": e,
|
|
28
|
+
"k-date-single": a,
|
|
29
|
+
"k-array-card": n,
|
|
30
|
+
"k-overtime": f,
|
|
31
|
+
"k-liveTime": _,
|
|
32
|
+
"k-table": c,
|
|
33
|
+
"k-grid": s
|
|
32
34
|
};
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
C as widgetPanels
|
|
35
37
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as c, createElementBlock as m, normalizeClass as d, unref as e, createElementVNode as l, createVNode as t, withCtx as s } from "vue";
|
|
2
|
+
import "../../../internal.mjs";
|
|
3
|
+
import { FormItem as a, RangePicker as p, InputNumber as o } from "ant-design-vue";
|
|
4
|
+
import { useNamespace as _ } from "../../../hooks/use-namespace/index.mjs";
|
|
5
|
+
const u = { class: "details" }, f = { class: "detail-content" }, x = /* @__PURE__ */ r({
|
|
6
|
+
__name: "leave-kit",
|
|
7
|
+
setup(k) {
|
|
8
|
+
const { b: n } = _("kit-panel");
|
|
9
|
+
return (b, i) => (c(), m(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
class: d(e(n)())
|
|
13
|
+
},
|
|
14
|
+
[
|
|
15
|
+
l("div", u, [
|
|
16
|
+
i[0] || (i[0] = l(
|
|
17
|
+
"div",
|
|
18
|
+
{ class: "detail-title" },
|
|
19
|
+
[
|
|
20
|
+
l("span", null, "请假明细")
|
|
21
|
+
],
|
|
22
|
+
-1
|
|
23
|
+
/* CACHED */
|
|
24
|
+
)),
|
|
25
|
+
l("div", f, [
|
|
26
|
+
t(e(a), {
|
|
27
|
+
label: "请假时长",
|
|
28
|
+
class: "kit-item"
|
|
29
|
+
}, {
|
|
30
|
+
default: s(() => [
|
|
31
|
+
t(e(p), { placeholder: ["开始日期", "结束日期"] })
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
/* STABLE */
|
|
35
|
+
}),
|
|
36
|
+
t(e(a), {
|
|
37
|
+
label: "请假时长",
|
|
38
|
+
class: "kit-item"
|
|
39
|
+
}, {
|
|
40
|
+
default: s(() => [
|
|
41
|
+
t(e(o), { style: { width: "100%" } })
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
/* STABLE */
|
|
45
|
+
})
|
|
46
|
+
])
|
|
47
|
+
]),
|
|
48
|
+
t(e(a), {
|
|
49
|
+
label: "总时长",
|
|
50
|
+
class: "kit-item"
|
|
51
|
+
}, {
|
|
52
|
+
default: s(() => [
|
|
53
|
+
t(e(o), { style: { width: "100%" } })
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
/* STABLE */
|
|
57
|
+
})
|
|
58
|
+
],
|
|
59
|
+
2
|
|
60
|
+
/* CLASS */
|
|
61
|
+
));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
x as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as m, createElementBlock as c, normalizeClass as d, unref as e, createElementVNode as l, createVNode as t, withCtx as s } from "vue";
|
|
2
|
+
import "../../../internal.mjs";
|
|
3
|
+
import { FormItem as a, RangePicker as p, InputNumber as o } from "ant-design-vue";
|
|
4
|
+
import { useNamespace as _ } from "../../../hooks/use-namespace/index.mjs";
|
|
5
|
+
const u = { class: "details" }, f = { class: "detail-content" }, x = /* @__PURE__ */ r({
|
|
6
|
+
__name: "overtime-kit",
|
|
7
|
+
setup(k) {
|
|
8
|
+
const { b: n } = _("kit-panel");
|
|
9
|
+
return (b, i) => (m(), c(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
class: d(e(n)())
|
|
13
|
+
},
|
|
14
|
+
[
|
|
15
|
+
l("div", u, [
|
|
16
|
+
i[0] || (i[0] = l(
|
|
17
|
+
"div",
|
|
18
|
+
{ class: "detail-title" },
|
|
19
|
+
[
|
|
20
|
+
l("span", null, "加班明细")
|
|
21
|
+
],
|
|
22
|
+
-1
|
|
23
|
+
/* CACHED */
|
|
24
|
+
)),
|
|
25
|
+
l("div", f, [
|
|
26
|
+
t(e(a), {
|
|
27
|
+
label: "加班日期",
|
|
28
|
+
class: "kit-item"
|
|
29
|
+
}, {
|
|
30
|
+
default: s(() => [
|
|
31
|
+
t(e(p), { placeholder: ["开始日期", "结束日期"] })
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
/* STABLE */
|
|
35
|
+
}),
|
|
36
|
+
t(e(a), {
|
|
37
|
+
label: "加班时长",
|
|
38
|
+
class: "kit-item"
|
|
39
|
+
}, {
|
|
40
|
+
default: s(() => [
|
|
41
|
+
t(e(o), { style: { width: "100%" } })
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
/* STABLE */
|
|
45
|
+
})
|
|
46
|
+
])
|
|
47
|
+
]),
|
|
48
|
+
t(e(a), {
|
|
49
|
+
label: "总时长",
|
|
50
|
+
class: "kit-item"
|
|
51
|
+
}, {
|
|
52
|
+
default: s(() => [
|
|
53
|
+
t(e(o), { style: { width: "100%" } })
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
/* STABLE */
|
|
57
|
+
})
|
|
58
|
+
],
|
|
59
|
+
2
|
|
60
|
+
/* CLASS */
|
|
61
|
+
));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
x as default
|
|
66
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as _, computed as k,
|
|
2
|
-
import { Form as
|
|
1
|
+
import { defineComponent as _, computed as k, openBlock as s, createBlock as y, unref as t, normalizeClass as g, withCtx as p, createVNode as n, createElementBlock as c, Fragment as h, renderList as C, createTextVNode as b } from "vue";
|
|
2
|
+
import { Form as B, FormItem as u, InputNumber as d, Button as F } from "ant-design-vue";
|
|
3
3
|
import "../../../internal.mjs";
|
|
4
|
-
import { uid as
|
|
4
|
+
import { uid as N } from "@king-one/utils";
|
|
5
5
|
import "../../form-icon.vue.mjs";
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import { useInjectDesignContext as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
6
|
+
import { useNamespace as w } from "../../../hooks/use-namespace/index.mjs";
|
|
7
|
+
import { useInjectDesignContext as I } from "../../../context/design.mjs";
|
|
8
|
+
import U from "../../form-icon.vue2.mjs";
|
|
9
|
+
const T = /* @__PURE__ */ _({
|
|
10
10
|
__name: "GridProps",
|
|
11
|
-
setup(
|
|
12
|
-
const { b: f } =
|
|
11
|
+
setup(V) {
|
|
12
|
+
const { b: f } = w("grid-props"), { checkedField: r } = I(), m = k(() => r.value["x-component-props"] || {});
|
|
13
13
|
function v(l) {
|
|
14
14
|
var e;
|
|
15
15
|
(e = r.value.children) == null || e.splice(l, 1);
|
|
16
16
|
}
|
|
17
17
|
function x() {
|
|
18
|
-
var
|
|
19
|
-
const l =
|
|
20
|
-
title:
|
|
18
|
+
var a, i;
|
|
19
|
+
const l = N(), o = {
|
|
20
|
+
title: `栅格容器${(((a = r.value.children) == null ? void 0 : a.length) || 0) + 1}`,
|
|
21
21
|
name: l,
|
|
22
22
|
id: l,
|
|
23
23
|
key: "k-grid-column",
|
|
@@ -28,81 +28,82 @@ const q = /* @__PURE__ */ _({
|
|
|
28
28
|
"x-decorator": "Void",
|
|
29
29
|
"x-component-props": {
|
|
30
30
|
span: 12
|
|
31
|
+
},
|
|
32
|
+
"x-design-props": {
|
|
33
|
+
"convert-key": "properties",
|
|
34
|
+
"convert-type": "base"
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
|
-
(i = r.value.children) == null || i.push(
|
|
37
|
+
(i = r.value.children) == null || i.push(o);
|
|
34
38
|
}
|
|
35
|
-
return (l, e) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
/* STABLE */
|
|
102
|
-
}, 8, ["class"]);
|
|
103
|
-
};
|
|
39
|
+
return (l, e) => (s(), y(t(B), {
|
|
40
|
+
layout: "vertical",
|
|
41
|
+
class: g(t(f)())
|
|
42
|
+
}, {
|
|
43
|
+
default: p(() => [
|
|
44
|
+
n(t(u), { label: "间隔大小" }, {
|
|
45
|
+
default: p(() => [
|
|
46
|
+
n(t(d), {
|
|
47
|
+
value: m.value.gutter,
|
|
48
|
+
"onUpdate:value": e[0] || (e[0] = (o) => m.value.gutter = o),
|
|
49
|
+
style: { width: "100%" },
|
|
50
|
+
min: 1,
|
|
51
|
+
precision: 0,
|
|
52
|
+
max: 999,
|
|
53
|
+
"addon-after": "px"
|
|
54
|
+
}, null, 8, ["value"])
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
/* STABLE */
|
|
58
|
+
}),
|
|
59
|
+
n(t(u), { label: "配置项" }, {
|
|
60
|
+
default: p(() => [
|
|
61
|
+
(s(!0), c(
|
|
62
|
+
h,
|
|
63
|
+
null,
|
|
64
|
+
C(t(r).children, (o, a) => (s(), c("div", {
|
|
65
|
+
key: o.id,
|
|
66
|
+
class: "col-item"
|
|
67
|
+
}, [
|
|
68
|
+
n(t(d), {
|
|
69
|
+
value: o["x-component-props"].span,
|
|
70
|
+
"onUpdate:value": (i) => o["x-component-props"].span = i,
|
|
71
|
+
min: 1,
|
|
72
|
+
style: { width: "200px" },
|
|
73
|
+
precision: 0,
|
|
74
|
+
max: 24
|
|
75
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
76
|
+
n(U, {
|
|
77
|
+
name: "delete1",
|
|
78
|
+
class: "close-icon",
|
|
79
|
+
onClick: (i) => v(a)
|
|
80
|
+
}, null, 8, ["onClick"])
|
|
81
|
+
]))),
|
|
82
|
+
128
|
|
83
|
+
/* KEYED_FRAGMENT */
|
|
84
|
+
)),
|
|
85
|
+
n(t(F), {
|
|
86
|
+
size: "small",
|
|
87
|
+
type: "primary",
|
|
88
|
+
style: { "margin-bottom": "10px" },
|
|
89
|
+
onClick: x
|
|
90
|
+
}, {
|
|
91
|
+
default: p(() => e[1] || (e[1] = [
|
|
92
|
+
b(" 添加 + ")
|
|
93
|
+
])),
|
|
94
|
+
_: 1,
|
|
95
|
+
__: [1]
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
/* STABLE */
|
|
100
|
+
})
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
/* STABLE */
|
|
104
|
+
}, 8, ["class"]));
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
107
|
export {
|
|
107
|
-
|
|
108
|
+
T as default
|
|
108
109
|
};
|