yc-project-template 1.0.0
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/README.md +48 -0
- package/dist/AppManage-yJ4SOsDj.js +77 -0
- package/dist/DeptTree-BJ-YyoZO.js +88 -0
- package/dist/DictionaryModal-jyoOTJD4.js +157 -0
- package/dist/DictionaryValueModal-D6wJ04-c.js +173 -0
- package/dist/Login-CorWfiLZ.js +169 -0
- package/dist/NotFound-B_crl8rg.js +21 -0
- package/dist/OrgModal-DgTQN71P.js +114 -0
- package/dist/PageTemplate-BXwP32sO.js +149 -0
- package/dist/RoleModal-QaUkdPyy.js +126 -0
- package/dist/UserModal-MQeOVpvt.js +200 -0
- package/dist/YcSearchForm-BWweEnqG.js +326 -0
- package/dist/YcTree-COox_XNx.js +124 -0
- package/dist/el-col-B8XtMrKy.js +135 -0
- package/dist/el-dropdown-item-zXcF1C0U.js +862 -0
- package/dist/el-form-item-DGYKf4A6.js +1178 -0
- package/dist/favicon.ico +0 -0
- package/dist/globalComponents-NGC1jMmM.js +112761 -0
- package/dist/index-CMXoxgLU.js +1062 -0
- package/dist/index-Cc-Qq-qP.js +17 -0
- package/dist/index-DBq96lnF.js +393 -0
- package/dist/index-zZ1bb-CY.js +278 -0
- package/dist/rsaCrypto-B9Iz2FB1.js +2084 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/useMenu-CCb03now.js +18 -0
- package/dist/yc-project-template.css +1 -0
- package/dist/yc-project-template.es.js +5 -0
- package/dist/yc-project-template.umd.js +746 -0
- package/package.json +123 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { g as G, z as M, d as Y, _ as $, A as J, B as Q, C as X } from "./globalComponents-NGC1jMmM.js";
|
|
2
|
+
import { E as U, a as N } from "./el-form-item-DGYKf4A6.js";
|
|
3
|
+
import { E as P, a as A } from "./el-col-B8XtMrKy.js";
|
|
4
|
+
import { defineComponent as j, mergeModels as I, useModel as R, computed as q, createBlock as g, openBlock as u, withCtx as e, createVNode as o, withModifiers as O, createElementBlock as V, Fragment as B, renderList as W, unref as m, createCommentVNode as Z, KeepAlive as z, resolveDynamicComponent as H, createElementVNode as ee, createTextVNode as _, ref as oe, reactive as te, toDisplayString as le } from "vue";
|
|
5
|
+
const ne = { class: "dialog-footer" }, ae = /* @__PURE__ */ j({
|
|
6
|
+
name: "YcEditFrom",
|
|
7
|
+
__name: "YcEditFrom",
|
|
8
|
+
props: /* @__PURE__ */ I({
|
|
9
|
+
title: { default: "新增数据" },
|
|
10
|
+
width: { default: "90%" },
|
|
11
|
+
config: { default: () => [] },
|
|
12
|
+
span: { default: 6 },
|
|
13
|
+
loading: { type: Boolean, default: !1 },
|
|
14
|
+
labelPosition: { default: "top" }
|
|
15
|
+
}, {
|
|
16
|
+
editVisible: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
editVisibleModifiers: {},
|
|
21
|
+
formData: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
formDataModifiers: {}
|
|
26
|
+
}),
|
|
27
|
+
emits: /* @__PURE__ */ I(["confirm"], ["update:editVisible", "update:formData"]),
|
|
28
|
+
setup(s, { emit: k }) {
|
|
29
|
+
const C = s, b = k, h = R(s, "editVisible"), r = R(s, "formData"), p = q(() => C.config ? (C.config.forEach((d) => {
|
|
30
|
+
d.required && (d.rules = [
|
|
31
|
+
{
|
|
32
|
+
required: !0,
|
|
33
|
+
message: `${d.label}不能为空`,
|
|
34
|
+
trigger: "blur"
|
|
35
|
+
}
|
|
36
|
+
]);
|
|
37
|
+
}), C.config) : []);
|
|
38
|
+
function E() {
|
|
39
|
+
b("confirm", r.value);
|
|
40
|
+
}
|
|
41
|
+
function w(d, l) {
|
|
42
|
+
let f = !0;
|
|
43
|
+
for (const i of l)
|
|
44
|
+
i.op === "eq" && d[i.prop] !== i.value && (f = !1);
|
|
45
|
+
return f;
|
|
46
|
+
}
|
|
47
|
+
function x(d, l) {
|
|
48
|
+
let f = !1;
|
|
49
|
+
if (!l.requiredRules)
|
|
50
|
+
return [];
|
|
51
|
+
for (const i of l.requiredRules)
|
|
52
|
+
i.op === "eq" && d[i.prop] !== i.value && (f = !0);
|
|
53
|
+
return [
|
|
54
|
+
{
|
|
55
|
+
required: f,
|
|
56
|
+
message: `${l.label}不能为空`,
|
|
57
|
+
trigger: ["blur", "change"]
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
return (d, l) => {
|
|
62
|
+
const f = M, i = N, D = A, v = P, n = U, y = Y, S = G;
|
|
63
|
+
return u(), g(S, {
|
|
64
|
+
modelValue: h.value,
|
|
65
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => h.value = t),
|
|
66
|
+
title: s.title,
|
|
67
|
+
width: s.width
|
|
68
|
+
}, {
|
|
69
|
+
footer: e(() => [
|
|
70
|
+
ee("div", ne, [
|
|
71
|
+
o(y, {
|
|
72
|
+
onClick: l[1] || (l[1] = (t) => h.value = !1)
|
|
73
|
+
}, {
|
|
74
|
+
default: e(() => [...l[3] || (l[3] = [
|
|
75
|
+
_("取消", -1)
|
|
76
|
+
])]),
|
|
77
|
+
_: 1
|
|
78
|
+
}),
|
|
79
|
+
o(y, {
|
|
80
|
+
loading: s.loading,
|
|
81
|
+
type: "primary",
|
|
82
|
+
onClick: E
|
|
83
|
+
}, {
|
|
84
|
+
default: e(() => [...l[4] || (l[4] = [
|
|
85
|
+
_("确认", -1)
|
|
86
|
+
])]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 8, ["loading"])
|
|
89
|
+
])
|
|
90
|
+
]),
|
|
91
|
+
default: e(() => [
|
|
92
|
+
o(n, {
|
|
93
|
+
class: "yc-edit-form",
|
|
94
|
+
model: r.value,
|
|
95
|
+
"label-position": s.labelPosition,
|
|
96
|
+
onSubmit: l[0] || (l[0] = O(() => {
|
|
97
|
+
}, ["prevent"]))
|
|
98
|
+
}, {
|
|
99
|
+
default: e(() => [
|
|
100
|
+
o(v, { gutter: 10 }, {
|
|
101
|
+
default: e(() => [
|
|
102
|
+
(u(!0), V(B, null, W(m(p), (t) => (u(), V(B, {
|
|
103
|
+
key: t.prop
|
|
104
|
+
}, [
|
|
105
|
+
t.showRule && w(r.value, t.showRule) ? Z("", !0) : (u(), g(D, {
|
|
106
|
+
key: 0,
|
|
107
|
+
span: t.span || s.span
|
|
108
|
+
}, {
|
|
109
|
+
default: e(() => [
|
|
110
|
+
o(i, {
|
|
111
|
+
rules: x(r.value, t),
|
|
112
|
+
"label-width": t.labelWidth || 120,
|
|
113
|
+
prop: t.prop
|
|
114
|
+
}, {
|
|
115
|
+
label: e(() => [
|
|
116
|
+
o(f, {
|
|
117
|
+
text: t.label
|
|
118
|
+
}, null, 8, ["text"])
|
|
119
|
+
]),
|
|
120
|
+
default: e(() => [
|
|
121
|
+
(u(), g(z, null, [
|
|
122
|
+
(u(), g(H(t.component), {
|
|
123
|
+
modelValue: r.value[t.prop],
|
|
124
|
+
"onUpdate:modelValue": (c) => r.value[t.prop] = c,
|
|
125
|
+
componentConfig: t
|
|
126
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "componentConfig"]))
|
|
127
|
+
], 1024))
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["rules", "label-width", "prop"])
|
|
131
|
+
]),
|
|
132
|
+
_: 2
|
|
133
|
+
}, 1032, ["span"]))
|
|
134
|
+
], 64))), 128))
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["model", "label-position"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["modelValue", "title", "width"]);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}), fe = /* @__PURE__ */ $(ae, [["__scopeId", "data-v-6f6c2115"]]), re = { class: "yc-search-form" }, ue = /* @__PURE__ */ j({
|
|
147
|
+
name: "YcSearchForm",
|
|
148
|
+
__name: "YcSearchForm",
|
|
149
|
+
props: {
|
|
150
|
+
config: {},
|
|
151
|
+
labelPosition: { default: "top" },
|
|
152
|
+
span: { default: 6 }
|
|
153
|
+
},
|
|
154
|
+
emits: ["search", "addData", "batchDelData", "import", "export"],
|
|
155
|
+
setup(s, { emit: k }) {
|
|
156
|
+
const C = s, b = oe(!1), h = q(() => {
|
|
157
|
+
const v = E.value.reduce((n, y) => n + (y.span || 6), 0);
|
|
158
|
+
return Math.max(0, 24 - v % 24);
|
|
159
|
+
}), r = k, p = te({}), E = q(() => C.config || []);
|
|
160
|
+
function w() {
|
|
161
|
+
b.value = !b.value;
|
|
162
|
+
}
|
|
163
|
+
function x() {
|
|
164
|
+
r("search", { ...p });
|
|
165
|
+
}
|
|
166
|
+
function d() {
|
|
167
|
+
Object.keys(p).forEach((v) => {
|
|
168
|
+
p[v] = "";
|
|
169
|
+
}), r("search", { ...p });
|
|
170
|
+
}
|
|
171
|
+
function l() {
|
|
172
|
+
r("addData");
|
|
173
|
+
}
|
|
174
|
+
function f() {
|
|
175
|
+
r("batchDelData");
|
|
176
|
+
}
|
|
177
|
+
function i() {
|
|
178
|
+
r("import");
|
|
179
|
+
}
|
|
180
|
+
function D() {
|
|
181
|
+
r("export", { ...p });
|
|
182
|
+
}
|
|
183
|
+
return (v, n) => {
|
|
184
|
+
const y = M, S = N, t = A, c = Y, F = P, K = U, L = J;
|
|
185
|
+
return u(), V("div", re, [
|
|
186
|
+
o(K, {
|
|
187
|
+
"label-position": s.labelPosition,
|
|
188
|
+
onSubmit: n[0] || (n[0] = O(() => {
|
|
189
|
+
}, ["prevent"]))
|
|
190
|
+
}, {
|
|
191
|
+
default: e(() => [
|
|
192
|
+
o(F, { gutter: 10 }, {
|
|
193
|
+
default: e(() => [
|
|
194
|
+
(u(!0), V(B, null, W(m(E), (a) => (u(), g(t, {
|
|
195
|
+
key: a.fieldId || a.prop,
|
|
196
|
+
span: a.span || s.span
|
|
197
|
+
}, {
|
|
198
|
+
default: e(() => [
|
|
199
|
+
o(S, {
|
|
200
|
+
"label-width": a.labelWidth || 120,
|
|
201
|
+
prop: a.prop || a.fieldId
|
|
202
|
+
}, {
|
|
203
|
+
label: e(() => [
|
|
204
|
+
o(y, {
|
|
205
|
+
text: a.label
|
|
206
|
+
}, null, 8, ["text"])
|
|
207
|
+
]),
|
|
208
|
+
default: e(() => [
|
|
209
|
+
(u(), g(z, null, [
|
|
210
|
+
(u(), g(H(a.component), {
|
|
211
|
+
modelValue: m(p)[a.prop],
|
|
212
|
+
"onUpdate:modelValue": (T) => m(p)[a.prop] = T,
|
|
213
|
+
componentConfig: { ...a, type: "datetimerange" },
|
|
214
|
+
key: `${a.fieldId || a.prop}-component`,
|
|
215
|
+
options: a.options
|
|
216
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "componentConfig", "options"]))
|
|
217
|
+
], 1024))
|
|
218
|
+
]),
|
|
219
|
+
_: 2
|
|
220
|
+
}, 1032, ["label-width", "prop"])
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1032, ["span"]))), 128)),
|
|
224
|
+
o(t, {
|
|
225
|
+
class: "button-group-right",
|
|
226
|
+
span: m(h)
|
|
227
|
+
}, {
|
|
228
|
+
default: e(() => [
|
|
229
|
+
o(c, {
|
|
230
|
+
type: "primary",
|
|
231
|
+
onClick: x
|
|
232
|
+
}, {
|
|
233
|
+
default: e(() => [...n[1] || (n[1] = [
|
|
234
|
+
_("查询", -1)
|
|
235
|
+
])]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
o(c, { onClick: d }, {
|
|
239
|
+
default: e(() => [...n[2] || (n[2] = [
|
|
240
|
+
_("重置", -1)
|
|
241
|
+
])]),
|
|
242
|
+
_: 1
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["span"])
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
})
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["label-position"]),
|
|
253
|
+
o(F, { class: "operate-btn" }, {
|
|
254
|
+
default: e(() => [
|
|
255
|
+
o(t, { span: 12 }, {
|
|
256
|
+
default: e(() => [
|
|
257
|
+
o(c, {
|
|
258
|
+
type: "primary",
|
|
259
|
+
onClick: l
|
|
260
|
+
}, {
|
|
261
|
+
default: e(() => [...n[3] || (n[3] = [
|
|
262
|
+
_("新增", -1)
|
|
263
|
+
])]),
|
|
264
|
+
_: 1
|
|
265
|
+
}),
|
|
266
|
+
o(c, {
|
|
267
|
+
type: "danger",
|
|
268
|
+
onClick: f
|
|
269
|
+
}, {
|
|
270
|
+
default: e(() => [...n[4] || (n[4] = [
|
|
271
|
+
_("批量删除", -1)
|
|
272
|
+
])]),
|
|
273
|
+
_: 1
|
|
274
|
+
}),
|
|
275
|
+
o(c, {
|
|
276
|
+
type: "primary",
|
|
277
|
+
onClick: i
|
|
278
|
+
}, {
|
|
279
|
+
default: e(() => [...n[5] || (n[5] = [
|
|
280
|
+
_("导入", -1)
|
|
281
|
+
])]),
|
|
282
|
+
_: 1
|
|
283
|
+
}),
|
|
284
|
+
o(c, { onClick: D }, {
|
|
285
|
+
default: e(() => [...n[6] || (n[6] = [
|
|
286
|
+
_("导出", -1)
|
|
287
|
+
])]),
|
|
288
|
+
_: 1
|
|
289
|
+
})
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
}),
|
|
293
|
+
o(t, {
|
|
294
|
+
class: "button-group-right",
|
|
295
|
+
span: 12
|
|
296
|
+
}, {
|
|
297
|
+
default: e(() => [
|
|
298
|
+
o(c, {
|
|
299
|
+
text: "",
|
|
300
|
+
onClick: w
|
|
301
|
+
}, {
|
|
302
|
+
default: e(() => [
|
|
303
|
+
_(le(m(b) ? "收起查询条件" : "展开全部查询条件") + " ", 1),
|
|
304
|
+
o(L, null, {
|
|
305
|
+
default: e(() => [
|
|
306
|
+
m(b) ? (u(), g(m(Q), { key: 0 })) : (u(), g(m(X), { key: 1 }))
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
})
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
})
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
})
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
})
|
|
319
|
+
]);
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
}), ce = /* @__PURE__ */ $(ue, [["__scopeId", "data-v-85937d23"]]);
|
|
323
|
+
export {
|
|
324
|
+
ce as _,
|
|
325
|
+
fe as a
|
|
326
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { n as Y, o as I, _ as K } from "./globalComponents-NGC1jMmM.js";
|
|
2
|
+
import { E as M, a as R, b as S } from "./el-dropdown-item-zXcF1C0U.js";
|
|
3
|
+
import { defineComponent as O, ref as z, createBlock as u, openBlock as i, withCtx as c, createElementVNode as l, createVNode as m, toDisplayString as h, createCommentVNode as F, normalizeClass as j, createElementBlock as q, Fragment as A, renderList as G, createTextVNode as H } from "vue";
|
|
4
|
+
const J = { class: "yc-tree-node" }, P = { class: "yc-tree-node-icon" }, Q = { class: "yc-tree-node-title" }, U = { class: "yc-tree-arrow-icon" }, W = { class: "yc-tree-node-icon yc-tree-node-action" }, X = /* @__PURE__ */ O({
|
|
5
|
+
name: "YcTree",
|
|
6
|
+
__name: "YcTree",
|
|
7
|
+
props: {
|
|
8
|
+
data: {},
|
|
9
|
+
operationButs: {},
|
|
10
|
+
format: { default: () => ({
|
|
11
|
+
nodeKey: "menuId",
|
|
12
|
+
label: "menuName"
|
|
13
|
+
}) }
|
|
14
|
+
},
|
|
15
|
+
emits: ["operationTree", "currentChange"],
|
|
16
|
+
setup(r, { expose: v, emit: f }) {
|
|
17
|
+
const g = r, t = z(), N = (e, n) => {
|
|
18
|
+
}, w = (e, n, o) => {
|
|
19
|
+
}, y = (e, n, o) => {
|
|
20
|
+
}, D = (e, n, o) => {
|
|
21
|
+
}, k = (e, n, o, s) => {
|
|
22
|
+
}, C = (e, n, o, s) => {
|
|
23
|
+
}, x = (e, n, o) => ["Level two 3-1"].includes(n.data[g.format.label]) ? o !== "inner" : !0, E = (e) => !["Level three 3-1-1"].some((o) => e.data[g.format.label]?.includes(o)), _ = f, T = (e) => {
|
|
24
|
+
_("currentChange", e);
|
|
25
|
+
}, b = (e, n, o) => {
|
|
26
|
+
e.onClick ? e.onClick(n, o, t.value ?? void 0) : _("operationTree", e.command, n, o, t.value ?? void 0);
|
|
27
|
+
};
|
|
28
|
+
return v({
|
|
29
|
+
// 暴露 append 方法,直接调用 el-tree 实例的 append
|
|
30
|
+
append: (e, n = null) => {
|
|
31
|
+
t.value && t.value.append(e, n);
|
|
32
|
+
},
|
|
33
|
+
// 可选:暴露其他 el-tree 方法,如 remove、updateKeyChildren 等
|
|
34
|
+
remove: (e) => {
|
|
35
|
+
t.value && t.value.remove(e);
|
|
36
|
+
},
|
|
37
|
+
// 直接暴露整个 treeRef,让父组件可以调用任何 el-tree 方法(更灵活但需注意解构)
|
|
38
|
+
getTreeRef: () => t.value ?? void 0
|
|
39
|
+
}), (e, n) => {
|
|
40
|
+
const o = I, s = S, B = R, L = M, V = Y;
|
|
41
|
+
return i(), u(V, {
|
|
42
|
+
class: "yc-tree",
|
|
43
|
+
"allow-drop": x,
|
|
44
|
+
"allow-drag": E,
|
|
45
|
+
data: r.data,
|
|
46
|
+
ref_key: "YcTreeRef",
|
|
47
|
+
ref: t,
|
|
48
|
+
draggable: "",
|
|
49
|
+
"node-key": r.format.nodeKey,
|
|
50
|
+
"current-node-key": r.format.nodeKey,
|
|
51
|
+
"highlight-current": !0,
|
|
52
|
+
"check-on-click-node": !0,
|
|
53
|
+
onNodeDragStart: N,
|
|
54
|
+
onNodeDragEnter: w,
|
|
55
|
+
onNodeDragLeave: y,
|
|
56
|
+
onNodeDragOver: D,
|
|
57
|
+
onNodeDragEnd: k,
|
|
58
|
+
onNodeDrop: C,
|
|
59
|
+
onCurrentChange: T
|
|
60
|
+
}, {
|
|
61
|
+
default: c(({ node: a, data: p }) => [
|
|
62
|
+
l("div", J, [
|
|
63
|
+
l("div", P, [
|
|
64
|
+
m(o, {
|
|
65
|
+
name: p.icon,
|
|
66
|
+
width: "14",
|
|
67
|
+
height: "14"
|
|
68
|
+
}, null, 8, ["name"])
|
|
69
|
+
]),
|
|
70
|
+
l("div", Q, h(p[r.format.label]), 1),
|
|
71
|
+
l("div", U, [
|
|
72
|
+
a.childNodes && a.childNodes.length > 0 ? (i(), u(o, {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: a.expanded ? "arrow-up" : "arrow-down",
|
|
75
|
+
width: "14",
|
|
76
|
+
height: "14",
|
|
77
|
+
class: j({
|
|
78
|
+
"is-arrow-down": !a.expanded,
|
|
79
|
+
"is-arrow-up": a.expanded
|
|
80
|
+
})
|
|
81
|
+
}, null, 8, ["name", "class"])) : F("", !0)
|
|
82
|
+
]),
|
|
83
|
+
l("div", W, [
|
|
84
|
+
m(L, {
|
|
85
|
+
trigger: "click",
|
|
86
|
+
placement: "bottom",
|
|
87
|
+
onCommand: (d) => b(d, a, p)
|
|
88
|
+
}, {
|
|
89
|
+
dropdown: c(() => [
|
|
90
|
+
m(B, null, {
|
|
91
|
+
default: c(() => [
|
|
92
|
+
(i(!0), q(A, null, G(r.operationButs, (d) => (i(), u(s, {
|
|
93
|
+
key: d.command,
|
|
94
|
+
command: d
|
|
95
|
+
}, {
|
|
96
|
+
default: c(() => [
|
|
97
|
+
H(h(d.label), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 2
|
|
100
|
+
}, 1032, ["command"]))), 128))
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
]),
|
|
105
|
+
default: c(() => [
|
|
106
|
+
m(o, {
|
|
107
|
+
name: "points",
|
|
108
|
+
width: "14",
|
|
109
|
+
height: "14"
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["onCommand"])
|
|
114
|
+
])
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["data", "node-key", "current-node-key"]);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}), ne = /* @__PURE__ */ K(X, [["__scopeId", "data-v-b4f4a9c6"]]);
|
|
122
|
+
export {
|
|
123
|
+
ne as _
|
|
124
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as y, inject as O, computed as a, createBlock as g, openBlock as b, resolveDynamicComponent as h, normalizeStyle as v, normalizeClass as w, withCtx as $, renderSlot as _, provide as R } from "vue";
|
|
2
|
+
import { D as j, F as r, G as u, H as N, I as x, J as d, K as S, L as C } from "./globalComponents-NGC1jMmM.js";
|
|
3
|
+
const k = j({
|
|
4
|
+
tag: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "div"
|
|
7
|
+
},
|
|
8
|
+
span: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 24
|
|
11
|
+
},
|
|
12
|
+
offset: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 0
|
|
15
|
+
},
|
|
16
|
+
pull: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 0
|
|
19
|
+
},
|
|
20
|
+
push: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 0
|
|
23
|
+
},
|
|
24
|
+
xs: {
|
|
25
|
+
type: u([Number, Object]),
|
|
26
|
+
default: () => r({})
|
|
27
|
+
},
|
|
28
|
+
sm: {
|
|
29
|
+
type: u([Number, Object]),
|
|
30
|
+
default: () => r({})
|
|
31
|
+
},
|
|
32
|
+
md: {
|
|
33
|
+
type: u([Number, Object]),
|
|
34
|
+
default: () => r({})
|
|
35
|
+
},
|
|
36
|
+
lg: {
|
|
37
|
+
type: u([Number, Object]),
|
|
38
|
+
default: () => r({})
|
|
39
|
+
},
|
|
40
|
+
xl: {
|
|
41
|
+
type: u([Number, Object]),
|
|
42
|
+
default: () => r({})
|
|
43
|
+
}
|
|
44
|
+
}), E = /* @__PURE__ */ Symbol("rowContextKey"), K = y({
|
|
45
|
+
name: "ElCol",
|
|
46
|
+
__name: "col",
|
|
47
|
+
props: k,
|
|
48
|
+
setup(c) {
|
|
49
|
+
const t = c, { gutter: o } = O(E, { gutter: a(() => 0) }), l = x("col"), p = a(() => {
|
|
50
|
+
const e = {};
|
|
51
|
+
return o.value && (e.paddingLeft = e.paddingRight = `${o.value / 2}px`), e;
|
|
52
|
+
}), i = a(() => {
|
|
53
|
+
const e = [];
|
|
54
|
+
return ["span", "offset", "pull", "push"].forEach((s) => {
|
|
55
|
+
const n = t[s];
|
|
56
|
+
d(n) && (s === "span" ? e.push(l.b(`${t[s]}`)) : n > 0 && e.push(l.b(`${s}-${t[s]}`)));
|
|
57
|
+
}), ["xs", "sm", "md", "lg", "xl"].forEach((s) => {
|
|
58
|
+
d(t[s]) ? e.push(l.b(`${s}-${t[s]}`)) : S(t[s]) && Object.entries(t[s]).forEach(([n, m]) => {
|
|
59
|
+
e.push(
|
|
60
|
+
n !== "span" ? l.b(`${s}-${n}-${m}`) : l.b(`${s}-${m}`)
|
|
61
|
+
);
|
|
62
|
+
});
|
|
63
|
+
}), o.value && e.push(l.is("guttered")), [l.b(), e];
|
|
64
|
+
});
|
|
65
|
+
return (e, f) => (b(), g(h(e.tag), {
|
|
66
|
+
class: w(i.value),
|
|
67
|
+
style: v(p.value)
|
|
68
|
+
}, {
|
|
69
|
+
default: $(() => [
|
|
70
|
+
_(e.$slots, "default")
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
}, 8, ["class", "style"]));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var L = /* @__PURE__ */ N(K, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);
|
|
77
|
+
const H = C(L), P = [
|
|
78
|
+
"start",
|
|
79
|
+
"center",
|
|
80
|
+
"end",
|
|
81
|
+
"space-around",
|
|
82
|
+
"space-between",
|
|
83
|
+
"space-evenly"
|
|
84
|
+
], B = ["top", "middle", "bottom"], D = j({
|
|
85
|
+
tag: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: "div"
|
|
88
|
+
},
|
|
89
|
+
gutter: {
|
|
90
|
+
type: Number,
|
|
91
|
+
default: 0
|
|
92
|
+
},
|
|
93
|
+
justify: {
|
|
94
|
+
type: String,
|
|
95
|
+
values: P,
|
|
96
|
+
default: "start"
|
|
97
|
+
},
|
|
98
|
+
align: {
|
|
99
|
+
type: String,
|
|
100
|
+
values: B
|
|
101
|
+
}
|
|
102
|
+
}), I = y({
|
|
103
|
+
name: "ElRow",
|
|
104
|
+
__name: "row",
|
|
105
|
+
props: D,
|
|
106
|
+
setup(c) {
|
|
107
|
+
const t = c, o = x("row"), l = a(() => t.gutter);
|
|
108
|
+
R(E, {
|
|
109
|
+
gutter: l
|
|
110
|
+
});
|
|
111
|
+
const p = a(() => {
|
|
112
|
+
const e = {};
|
|
113
|
+
return t.gutter && (e.marginRight = e.marginLeft = `-${t.gutter / 2}px`), e;
|
|
114
|
+
}), i = a(() => [
|
|
115
|
+
o.b(),
|
|
116
|
+
o.is(`justify-${t.justify}`, t.justify !== "start"),
|
|
117
|
+
o.is(`align-${t.align}`, !!t.align)
|
|
118
|
+
]);
|
|
119
|
+
return (e, f) => (b(), g(h(e.tag), {
|
|
120
|
+
class: w(i.value),
|
|
121
|
+
style: v(p.value)
|
|
122
|
+
}, {
|
|
123
|
+
default: $(() => [
|
|
124
|
+
_(e.$slots, "default")
|
|
125
|
+
]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 8, ["class", "style"]));
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
var J = /* @__PURE__ */ N(I, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);
|
|
131
|
+
const T = C(J);
|
|
132
|
+
export {
|
|
133
|
+
T as E,
|
|
134
|
+
H as a
|
|
135
|
+
};
|