ling-yun-custom-components 0.0.45 → 0.0.47
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/es/AppIntro.mjs +177 -182
- package/es/CustomTab.mjs +46 -20
- package/es/IconRenderer.mjs +1 -1
- package/es/PluginDetail.mjs +120 -0
- package/es/SearchBar.mjs +1 -1
- package/es/UpdatePasswordDialog.mjs +1 -1
- package/es/assets/AppIntro.css +1 -1
- package/es/assets/CustomTab.css +1 -1
- package/es/assets/PluginDetail.css +1 -0
- package/es/assets/layout3.css +1 -1
- package/es/chunks/global.2EmeYAhV.js +16350 -0
- package/es/chunks/layout.DUlSi2g4.js +594 -0
- package/es/index.mjs +29 -26
- package/lib/AppIntro.js +1 -1
- package/lib/CustomTab.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/PluginDetail.js +1 -0
- package/lib/SearchBar.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/assets/AppIntro.css +1 -1
- package/lib/assets/CustomTab.css +1 -1
- package/lib/assets/PluginDetail.css +1 -0
- package/lib/assets/layout3.css +1 -1
- package/lib/chunks/global.M0Ikp-pv.js +1 -0
- package/lib/chunks/layout.DMjac8Rr.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
import { renderSlot as b, createElementBlock as $, openBlock as r, Fragment as x, renderList as E, createBlock as m, unref as t, withCtx as n, createTextVNode as C, toDisplayString as M, useCssVars as le, defineAsyncComponent as Y, ref as k, computed as U, withModifiers as ke, normalizeClass as N, mergeProps as w, createCommentVNode as O, withKeys as be, onMounted as ge, watch as we, createElementVNode as V, createVNode as f, createSlots as F, normalizeProps as A, guardReactiveProps as H, normalizeStyle as Ve } from "vue";
|
|
2
|
+
import { ElButton as T, ElForm as Ce, ElFormItem as oe, ElInput as Z, ElDatePicker as De, ElInputNumber as $e, ElSwitch as Ee, ElRadioGroup as Fe, ElRadio as Ue, ElCheckboxGroup as xe, ElCheckbox as Me, ElAutoResizer as _, ElPopover as Se, ElIcon as ee, ElDrawer as Le } from "element-plus";
|
|
3
|
+
import { IconMagnify as Pe, IconCheck as We, IconUp as Be, IconDown as Ie, IconShrink as Ne } from "color-message-lingyun-vue";
|
|
4
|
+
import { operationConfigMap as D, labelPositionMap as I, componentType as p, dateParamsMap as Oe, dateFormat as ae, emitsMap as B } from "ling-yun-methods";
|
|
5
|
+
import { _ as ne } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { C as te } from "./layout.BKJPyxR8.js";
|
|
7
|
+
import '../assets/layout3.css';const Te = [
|
|
8
|
+
{
|
|
9
|
+
type: "primary",
|
|
10
|
+
label: "查询",
|
|
11
|
+
value: D.search
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: "default",
|
|
15
|
+
label: "重置",
|
|
16
|
+
value: D.reset
|
|
17
|
+
}
|
|
18
|
+
], re = 320, K = {
|
|
19
|
+
__name: "OperationButtons",
|
|
20
|
+
props: {
|
|
21
|
+
operationList: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: () => []
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["operation"],
|
|
27
|
+
setup(a, { emit: S }) {
|
|
28
|
+
const L = S, c = (v) => {
|
|
29
|
+
L("operation", v);
|
|
30
|
+
};
|
|
31
|
+
return (v, i) => v.$slots.operation ? b(v.$slots, "operation", {
|
|
32
|
+
key: 0,
|
|
33
|
+
operationList: a.operationList
|
|
34
|
+
}) : (r(!0), $(x, { key: 1 }, E(a.operationList, (y) => (r(), m(t(T), {
|
|
35
|
+
key: y.value,
|
|
36
|
+
type: y.type,
|
|
37
|
+
icon: y.icon,
|
|
38
|
+
onClick: (u) => c(y.value)
|
|
39
|
+
}, {
|
|
40
|
+
default: n(() => [
|
|
41
|
+
C(M(y.label), 1)
|
|
42
|
+
]),
|
|
43
|
+
_: 2
|
|
44
|
+
}, 1032, ["type", "icon", "onClick"]))), 128));
|
|
45
|
+
}
|
|
46
|
+
}, ze = /* @__PURE__ */ Object.assign({
|
|
47
|
+
name: "FormWrapper"
|
|
48
|
+
}, {
|
|
49
|
+
__name: "FormWrapper",
|
|
50
|
+
props: {
|
|
51
|
+
// 表单项配置
|
|
52
|
+
items: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: () => []
|
|
55
|
+
},
|
|
56
|
+
// 表单数据
|
|
57
|
+
formData: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default: () => ({})
|
|
60
|
+
},
|
|
61
|
+
// 表单验证规则
|
|
62
|
+
rules: {
|
|
63
|
+
type: Object,
|
|
64
|
+
default: () => ({})
|
|
65
|
+
},
|
|
66
|
+
// 标签宽度
|
|
67
|
+
labelWidth: {
|
|
68
|
+
type: [String, Number],
|
|
69
|
+
default: "auto"
|
|
70
|
+
},
|
|
71
|
+
// 标签位置
|
|
72
|
+
labelPosition: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: I.right
|
|
75
|
+
},
|
|
76
|
+
// 是否显示标签
|
|
77
|
+
showLabel: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !0
|
|
80
|
+
},
|
|
81
|
+
// 是否内联布局
|
|
82
|
+
inline: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !1
|
|
85
|
+
},
|
|
86
|
+
// 是否为筛选器模式
|
|
87
|
+
isFilter: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
},
|
|
91
|
+
// 是否为筛选器预览模式
|
|
92
|
+
isFilterPreview: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: !1
|
|
95
|
+
},
|
|
96
|
+
minWidth: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: re
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
emits: ["change", "enter"],
|
|
102
|
+
setup(a, { expose: S }) {
|
|
103
|
+
le((u) => ({
|
|
104
|
+
v21117ed0: a.minWidth + "px"
|
|
105
|
+
}));
|
|
106
|
+
const L = Y(() => import("./layout.2Mabaug0.js")), c = Y(() => import("./layout.BHroZ9U9.js")), v = a, i = k(null), y = U(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : "search-bar-form");
|
|
107
|
+
return S({
|
|
108
|
+
validate: (u) => i.value ? i.value.validate(u) : Promise.resolve(!0),
|
|
109
|
+
resetFields: () => {
|
|
110
|
+
i.value && i.value.resetFields();
|
|
111
|
+
},
|
|
112
|
+
clearValidate: (u) => {
|
|
113
|
+
i.value && i.value.clearValidate(u);
|
|
114
|
+
},
|
|
115
|
+
scrollToField: (u) => {
|
|
116
|
+
i.value && i.value.scrollToField(u);
|
|
117
|
+
}
|
|
118
|
+
}), (u, h) => (r(), m(t(Ce), {
|
|
119
|
+
ref_key: "formRef",
|
|
120
|
+
ref: i,
|
|
121
|
+
model: a.formData,
|
|
122
|
+
"label-width": a.labelWidth,
|
|
123
|
+
"label-position": a.labelPosition,
|
|
124
|
+
inline: a.inline,
|
|
125
|
+
rules: a.rules,
|
|
126
|
+
class: N({
|
|
127
|
+
[y.value]: !0,
|
|
128
|
+
"items-end display-grid": !a.isFilterPreview
|
|
129
|
+
}),
|
|
130
|
+
onSubmit: h[0] || (h[0] = ke(() => {
|
|
131
|
+
}, ["prevent", "stop"]))
|
|
132
|
+
}, {
|
|
133
|
+
default: n(() => [
|
|
134
|
+
(r(!0), $(x, null, E(a.items, (e) => (r(), m(t(oe), w({
|
|
135
|
+
key: e.key,
|
|
136
|
+
label: a.showLabel ? e.label : "",
|
|
137
|
+
prop: e.key,
|
|
138
|
+
"show-label": a.showLabel,
|
|
139
|
+
class: [
|
|
140
|
+
{
|
|
141
|
+
"search-bar-item--wide": e.wide
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}, { ref_for: !0 }, e), {
|
|
145
|
+
default: n(() => [
|
|
146
|
+
b(u.$slots, e.key, {
|
|
147
|
+
item: e,
|
|
148
|
+
formData: a.formData
|
|
149
|
+
}, () => [
|
|
150
|
+
e.type === t(p).text ? (r(), m(t(Z), w({
|
|
151
|
+
key: 0,
|
|
152
|
+
modelValue: a.formData[e.key],
|
|
153
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
154
|
+
}, { ref_for: !0 }, e, {
|
|
155
|
+
class: "w-full",
|
|
156
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key]),
|
|
157
|
+
onKeyup: be((l) => u.$emit("enter", e.key, a.formData[e.key]), ["enter"])
|
|
158
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(p).select ? (r(), m(t(L), w({
|
|
159
|
+
key: 1,
|
|
160
|
+
modelValue: a.formData[e.key],
|
|
161
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l,
|
|
162
|
+
"static-options": e.options
|
|
163
|
+
}, { ref_for: !0 }, e, {
|
|
164
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key]),
|
|
165
|
+
class: "w-full"
|
|
166
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(p).date ? (r(), m(t(De), w({
|
|
167
|
+
key: 2,
|
|
168
|
+
modelValue: a.formData[e.key],
|
|
169
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
170
|
+
}, { ref_for: !0 }, {
|
|
171
|
+
...e,
|
|
172
|
+
...t(Oe)[e.dateType]
|
|
173
|
+
}, {
|
|
174
|
+
type: e.dateType,
|
|
175
|
+
format: e.format || t(ae).date,
|
|
176
|
+
"value-format": e.valueFormat || t(ae).dateTime,
|
|
177
|
+
class: "w-full",
|
|
178
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
179
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(p).inputNumber ? (r(), m(t($e), w({
|
|
180
|
+
key: 3,
|
|
181
|
+
modelValue: a.formData[e.key],
|
|
182
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
183
|
+
}, { ref_for: !0 }, e, {
|
|
184
|
+
class: "w-full",
|
|
185
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
186
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).switch ? (r(), m(t(Ee), w({
|
|
187
|
+
key: 4,
|
|
188
|
+
modelValue: a.formData[e.key],
|
|
189
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
190
|
+
}, { ref_for: !0 }, e, {
|
|
191
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
192
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).radio ? (r(), m(t(Fe), {
|
|
193
|
+
key: 5,
|
|
194
|
+
modelValue: a.formData[e.key],
|
|
195
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l,
|
|
196
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
197
|
+
}, {
|
|
198
|
+
default: n(() => [
|
|
199
|
+
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ue), {
|
|
200
|
+
key: l.value,
|
|
201
|
+
label: l.value,
|
|
202
|
+
value: l.value,
|
|
203
|
+
disabled: l.disabled
|
|
204
|
+
}, {
|
|
205
|
+
default: n(() => [
|
|
206
|
+
C(M(l.label), 1)
|
|
207
|
+
]),
|
|
208
|
+
_: 2
|
|
209
|
+
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
210
|
+
]),
|
|
211
|
+
_: 2
|
|
212
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).checkbox ? (r(), m(t(xe), {
|
|
213
|
+
key: 6,
|
|
214
|
+
modelValue: a.formData[e.key],
|
|
215
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l,
|
|
216
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
217
|
+
}, {
|
|
218
|
+
default: n(() => [
|
|
219
|
+
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Me), {
|
|
220
|
+
key: l.value,
|
|
221
|
+
label: l.value,
|
|
222
|
+
value: l.value
|
|
223
|
+
}, {
|
|
224
|
+
default: n(() => [
|
|
225
|
+
C(M(l.label), 1)
|
|
226
|
+
]),
|
|
227
|
+
_: 2
|
|
228
|
+
}, 1032, ["label", "value"]))), 128))
|
|
229
|
+
]),
|
|
230
|
+
_: 2
|
|
231
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).textarea ? (r(), m(t(Z), w({
|
|
232
|
+
key: 7,
|
|
233
|
+
modelValue: a.formData[e.key],
|
|
234
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
235
|
+
}, { ref_for: !0 }, e, {
|
|
236
|
+
class: "w-full",
|
|
237
|
+
type: "textarea",
|
|
238
|
+
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
239
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).upload ? (r(), m(t(c), w({
|
|
240
|
+
key: 8,
|
|
241
|
+
modelValue: a.formData[e.key],
|
|
242
|
+
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
243
|
+
}, { ref_for: !0 }, e), null, 16, ["modelValue", "onUpdate:modelValue"])) : O("", !0)
|
|
244
|
+
], !0)
|
|
245
|
+
]),
|
|
246
|
+
_: 2
|
|
247
|
+
}, 1040, ["label", "prop", "show-label", "class"]))), 128)),
|
|
248
|
+
b(u.$slots, "default", {}, void 0, !0)
|
|
249
|
+
]),
|
|
250
|
+
_: 3
|
|
251
|
+
}, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
|
|
252
|
+
}
|
|
253
|
+
}), q = /* @__PURE__ */ ne(ze, [["__scopeId", "data-v-6092c6e2"]]), Re = { class: "h-32 w-full" }, je = { class: "flex items-center justify-between pd-b-20" }, Ae = { class: "text-right" }, He = { class: "drawer-header" }, Ke = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, qe = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, Ge = /* @__PURE__ */ Object.assign({
|
|
254
|
+
name: "SearchBar"
|
|
255
|
+
}, {
|
|
256
|
+
__name: "layout",
|
|
257
|
+
props: {
|
|
258
|
+
// 搜索项配置
|
|
259
|
+
items: {
|
|
260
|
+
type: Array,
|
|
261
|
+
default: () => []
|
|
262
|
+
},
|
|
263
|
+
// 初始值
|
|
264
|
+
modelValue: {
|
|
265
|
+
type: Object,
|
|
266
|
+
default: () => ({})
|
|
267
|
+
},
|
|
268
|
+
// 标签宽度
|
|
269
|
+
labelWidth: {
|
|
270
|
+
type: [String, Number],
|
|
271
|
+
default: "auto"
|
|
272
|
+
},
|
|
273
|
+
// 标签位置
|
|
274
|
+
labelPosition: {
|
|
275
|
+
type: String,
|
|
276
|
+
default: I.right,
|
|
277
|
+
validator: (a) => [I.left, I.right, I.top].includes(a)
|
|
278
|
+
},
|
|
279
|
+
// 是否可以展开
|
|
280
|
+
isExpand: {
|
|
281
|
+
type: Boolean,
|
|
282
|
+
default: !0
|
|
283
|
+
},
|
|
284
|
+
// 最大的高度
|
|
285
|
+
maxHeight: {
|
|
286
|
+
type: Number,
|
|
287
|
+
default: 84
|
|
288
|
+
},
|
|
289
|
+
// 每项最小宽度
|
|
290
|
+
minWidth: {
|
|
291
|
+
type: Number,
|
|
292
|
+
default: re
|
|
293
|
+
},
|
|
294
|
+
operationList: {
|
|
295
|
+
type: Array,
|
|
296
|
+
default: Te
|
|
297
|
+
},
|
|
298
|
+
// 是否为筛选器模式
|
|
299
|
+
filterMode: {
|
|
300
|
+
type: Boolean,
|
|
301
|
+
default: !0
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
emits: [B.updateModelValue, B.operation],
|
|
305
|
+
setup(a, { expose: S, emit: L }) {
|
|
306
|
+
le((o) => ({
|
|
307
|
+
v6dc52412: a.maxHeight + "px",
|
|
308
|
+
v714dbbde: j.value ? j.value + "px" : "100%"
|
|
309
|
+
}));
|
|
310
|
+
const c = a, v = L, i = k({}), y = k(!c.isExpand), u = k(null), h = k(!1), e = k(!1), l = k(!1), ue = U(() => {
|
|
311
|
+
const o = {};
|
|
312
|
+
return c.items.forEach((s) => {
|
|
313
|
+
if (s.required) {
|
|
314
|
+
const d = [{ required: !0, message: `${s.label}不能为空`, trigger: "blur" }];
|
|
315
|
+
typeof s.validator == "function" && d.push({ validator: s.validator, trigger: "blur" }), o[s.key] = d;
|
|
316
|
+
}
|
|
317
|
+
}), o;
|
|
318
|
+
}), z = U(() => c.items?.filter((o) => !o.hidden) || []), G = U(() => c.filterMode ? z.value?.slice(0, 2) || [] : z.value), P = U(() => c.filterMode ? z.value.slice(2) : []), J = (o) => {
|
|
319
|
+
i.value = { ...o };
|
|
320
|
+
}, ie = () => {
|
|
321
|
+
v(B.updateModelValue, { ...i.value });
|
|
322
|
+
}, de = (o, s) => {
|
|
323
|
+
i.value[o] = s, l.value = !0, W(D.search), setTimeout(() => {
|
|
324
|
+
l.value = !1;
|
|
325
|
+
}, 200);
|
|
326
|
+
}, se = () => i.value, R = (o, s) => {
|
|
327
|
+
l.value || v(B.operation, D.search, i.value);
|
|
328
|
+
}, W = (o) => {
|
|
329
|
+
ie(), v(B.operation, o, i.value), (o === D.search || o === D.reset) && (h.value = !1, e.value = !1);
|
|
330
|
+
}, fe = (o) => u.value.validate(o), j = k(0), me = (o) => {
|
|
331
|
+
j.value = o + 32;
|
|
332
|
+
}, ye = () => {
|
|
333
|
+
y.value = !y.value;
|
|
334
|
+
}, ce = () => {
|
|
335
|
+
h.value = !1, e.value = !0;
|
|
336
|
+
}, ve = () => {
|
|
337
|
+
e.value = !1, h.value = !0;
|
|
338
|
+
}, Q = k(!1), X = (o) => {
|
|
339
|
+
Q.value = o > c.maxHeight;
|
|
340
|
+
}, he = U(() => c.filterMode || y.value ? "10px" : "0");
|
|
341
|
+
return ge(() => {
|
|
342
|
+
J(c.modelValue), X();
|
|
343
|
+
}), we(
|
|
344
|
+
() => c.modelValue,
|
|
345
|
+
(o) => {
|
|
346
|
+
J(o);
|
|
347
|
+
},
|
|
348
|
+
{ immediate: !0, deep: !0 }
|
|
349
|
+
), S({
|
|
350
|
+
validate: fe,
|
|
351
|
+
getFormData: se,
|
|
352
|
+
// clearValidate,
|
|
353
|
+
// resetFields,
|
|
354
|
+
// scrollToField,
|
|
355
|
+
formRef: u
|
|
356
|
+
}), (o, s) => (r(), $("div", {
|
|
357
|
+
class: N(["relative overflow-hidden w-full", { flex: a.filterMode }])
|
|
358
|
+
}, [
|
|
359
|
+
V("div", {
|
|
360
|
+
class: N({
|
|
361
|
+
"is-collapsed overflow-hidden": !y.value
|
|
362
|
+
})
|
|
363
|
+
}, [
|
|
364
|
+
f(t(_), null, {
|
|
365
|
+
default: n(({ height: d }) => [
|
|
366
|
+
C(M(X(d)) + " ", 1),
|
|
367
|
+
f(q, {
|
|
368
|
+
ref_key: "formRef",
|
|
369
|
+
ref: u,
|
|
370
|
+
items: G.value,
|
|
371
|
+
"form-data": i.value,
|
|
372
|
+
rules: ue.value,
|
|
373
|
+
"label-width": a.labelWidth,
|
|
374
|
+
"label-position": a.labelPosition,
|
|
375
|
+
inline: !0,
|
|
376
|
+
"show-label": !a.filterMode,
|
|
377
|
+
"min-width": a.minWidth,
|
|
378
|
+
"is-filter-preview": a.filterMode,
|
|
379
|
+
onChange: de,
|
|
380
|
+
onEnter: R
|
|
381
|
+
}, F({
|
|
382
|
+
default: n(() => [
|
|
383
|
+
a.isExpand && !a.filterMode ? (r(), m(t(oe), {
|
|
384
|
+
key: 0,
|
|
385
|
+
"label-width": "0"
|
|
386
|
+
}, {
|
|
387
|
+
default: n(() => [
|
|
388
|
+
V("div", Re, [
|
|
389
|
+
f(t(_), null, {
|
|
390
|
+
default: n(({ width: g }) => [
|
|
391
|
+
C(M(me(g)), 1)
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
394
|
+
})
|
|
395
|
+
])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
})) : O("", !0)
|
|
399
|
+
]),
|
|
400
|
+
_: 2
|
|
401
|
+
}, [
|
|
402
|
+
E(G.value, (g) => ({
|
|
403
|
+
name: g.key,
|
|
404
|
+
fn: n((pe) => [
|
|
405
|
+
b(o.$slots, g.key, A(H(pe)), void 0, !0)
|
|
406
|
+
])
|
|
407
|
+
}))
|
|
408
|
+
]), 1032, ["items", "form-data", "rules", "label-width", "label-position", "show-label", "min-width", "is-filter-preview"])
|
|
409
|
+
]),
|
|
410
|
+
_: 3
|
|
411
|
+
})
|
|
412
|
+
], 2),
|
|
413
|
+
V("div", {
|
|
414
|
+
class: N(["operation-buttons", {
|
|
415
|
+
"absolute right-0 bg-fff text-right": a.isExpand && !a.filterMode,
|
|
416
|
+
"text-left": a.filterMode
|
|
417
|
+
}]),
|
|
418
|
+
style: Ve({ bottom: he.value })
|
|
419
|
+
}, [
|
|
420
|
+
a.filterMode ? (r(), $(x, { key: 0 }, [
|
|
421
|
+
f(t(T), {
|
|
422
|
+
onClick: s[0] || (s[0] = (d) => W(t(D).reset)),
|
|
423
|
+
type: "default"
|
|
424
|
+
}, {
|
|
425
|
+
default: n(() => [...s[3] || (s[3] = [
|
|
426
|
+
C("重置", -1)
|
|
427
|
+
])]),
|
|
428
|
+
_: 1
|
|
429
|
+
}),
|
|
430
|
+
P.value?.length ? (r(), m(t(Se), {
|
|
431
|
+
key: 0,
|
|
432
|
+
visible: h.value,
|
|
433
|
+
placement: "bottom-start",
|
|
434
|
+
width: 628,
|
|
435
|
+
trigger: "click"
|
|
436
|
+
}, {
|
|
437
|
+
reference: n(() => [
|
|
438
|
+
f(t(T), {
|
|
439
|
+
onClick: s[1] || (s[1] = (d) => h.value = !h.value),
|
|
440
|
+
icon: t(We),
|
|
441
|
+
type: "default"
|
|
442
|
+
}, {
|
|
443
|
+
default: n(() => [...s[4] || (s[4] = [
|
|
444
|
+
C(" 筛选器 ", -1)
|
|
445
|
+
])]),
|
|
446
|
+
_: 1
|
|
447
|
+
}, 8, ["icon"])
|
|
448
|
+
]),
|
|
449
|
+
default: n(() => [
|
|
450
|
+
V("div", je, [
|
|
451
|
+
f(te, {
|
|
452
|
+
content: "筛选器",
|
|
453
|
+
fontSize: 16
|
|
454
|
+
}),
|
|
455
|
+
f(t(ee), {
|
|
456
|
+
size: 16,
|
|
457
|
+
onClick: ce
|
|
458
|
+
}, {
|
|
459
|
+
default: n(() => [
|
|
460
|
+
f(t(Pe))
|
|
461
|
+
]),
|
|
462
|
+
_: 1
|
|
463
|
+
})
|
|
464
|
+
]),
|
|
465
|
+
f(q, {
|
|
466
|
+
items: P.value,
|
|
467
|
+
"form-data": i.value,
|
|
468
|
+
"label-width": "auto",
|
|
469
|
+
"label-position": "top",
|
|
470
|
+
inline: !1,
|
|
471
|
+
"show-label": !0,
|
|
472
|
+
"is-filter": !0,
|
|
473
|
+
"min-width": a.minWidth,
|
|
474
|
+
class: "filter-form-popover overflow-y-auto",
|
|
475
|
+
onEnter: R
|
|
476
|
+
}, F({ _: 2 }, [
|
|
477
|
+
E(P.value, (d) => ({
|
|
478
|
+
name: d.key,
|
|
479
|
+
fn: n((g) => [
|
|
480
|
+
b(o.$slots, d.key, A(H(g)), void 0, !0)
|
|
481
|
+
])
|
|
482
|
+
}))
|
|
483
|
+
]), 1032, ["items", "form-data", "min-width"]),
|
|
484
|
+
V("div", Ae, [
|
|
485
|
+
f(K, {
|
|
486
|
+
"operation-list": a.operationList,
|
|
487
|
+
onOperation: W
|
|
488
|
+
}, F({ _: 2 }, [
|
|
489
|
+
o.$slots.operation ? {
|
|
490
|
+
name: "operation",
|
|
491
|
+
fn: n(({ operationList: d }) => [
|
|
492
|
+
b(o.$slots, "operation", { operationList: d }, void 0, !0)
|
|
493
|
+
]),
|
|
494
|
+
key: "0"
|
|
495
|
+
} : void 0
|
|
496
|
+
]), 1032, ["operation-list"])
|
|
497
|
+
])
|
|
498
|
+
]),
|
|
499
|
+
_: 3
|
|
500
|
+
}, 8, ["visible"])) : O("", !0)
|
|
501
|
+
], 64)) : (r(), $(x, { key: 1 }, [
|
|
502
|
+
Q.value && a.isExpand ? (r(), m(t(T), {
|
|
503
|
+
key: 0,
|
|
504
|
+
icon: y.value ? t(Be) : t(Ie),
|
|
505
|
+
text: "",
|
|
506
|
+
onClick: ye
|
|
507
|
+
}, {
|
|
508
|
+
default: n(() => [
|
|
509
|
+
C(M(y.value ? "收起" : "展开"), 1)
|
|
510
|
+
]),
|
|
511
|
+
_: 1
|
|
512
|
+
}, 8, ["icon"])) : O("", !0),
|
|
513
|
+
f(K, {
|
|
514
|
+
"operation-list": a.operationList,
|
|
515
|
+
onOperation: W
|
|
516
|
+
}, F({ _: 2 }, [
|
|
517
|
+
o.$slots.operation ? {
|
|
518
|
+
name: "operation",
|
|
519
|
+
fn: n(({ operationList: d }) => [
|
|
520
|
+
b(o.$slots, "operation", { operationList: d }, void 0, !0)
|
|
521
|
+
]),
|
|
522
|
+
key: "0"
|
|
523
|
+
} : void 0
|
|
524
|
+
]), 1032, ["operation-list"])
|
|
525
|
+
], 64))
|
|
526
|
+
], 6),
|
|
527
|
+
f(t(Le), {
|
|
528
|
+
modelValue: e.value,
|
|
529
|
+
"onUpdate:modelValue": s[2] || (s[2] = (d) => e.value = d),
|
|
530
|
+
size: "628",
|
|
531
|
+
"show-close": !1
|
|
532
|
+
}, {
|
|
533
|
+
header: n(() => [
|
|
534
|
+
V("div", He, [
|
|
535
|
+
f(te, {
|
|
536
|
+
content: "筛选器",
|
|
537
|
+
fontSize: 16
|
|
538
|
+
}),
|
|
539
|
+
f(t(ee), {
|
|
540
|
+
size: 16,
|
|
541
|
+
onClick: ve,
|
|
542
|
+
class: "shrink-button"
|
|
543
|
+
}, {
|
|
544
|
+
default: n(() => [
|
|
545
|
+
f(t(Ne))
|
|
546
|
+
]),
|
|
547
|
+
_: 1
|
|
548
|
+
})
|
|
549
|
+
])
|
|
550
|
+
]),
|
|
551
|
+
default: n(() => [
|
|
552
|
+
V("div", Ke, [
|
|
553
|
+
f(q, {
|
|
554
|
+
items: P.value,
|
|
555
|
+
"form-data": i.value,
|
|
556
|
+
"label-width": "auto",
|
|
557
|
+
"label-position": "top",
|
|
558
|
+
inline: !1,
|
|
559
|
+
"show-label": !0,
|
|
560
|
+
"is-filter": !0,
|
|
561
|
+
"min-width": a.minWidth,
|
|
562
|
+
onEnter: R
|
|
563
|
+
}, F({ _: 2 }, [
|
|
564
|
+
E(P.value, (d) => ({
|
|
565
|
+
name: d.key,
|
|
566
|
+
fn: n((g) => [
|
|
567
|
+
b(o.$slots, d.key, A(H(g)), void 0, !0)
|
|
568
|
+
])
|
|
569
|
+
}))
|
|
570
|
+
]), 1032, ["items", "form-data", "min-width"])
|
|
571
|
+
]),
|
|
572
|
+
V("div", qe, [
|
|
573
|
+
f(K, {
|
|
574
|
+
"operation-list": a.operationList,
|
|
575
|
+
onOperation: W
|
|
576
|
+
}, F({ _: 2 }, [
|
|
577
|
+
o.$slots.operation ? {
|
|
578
|
+
name: "operation",
|
|
579
|
+
fn: n(({ operationList: d }) => [
|
|
580
|
+
b(o.$slots, "operation", { operationList: d }, void 0, !0)
|
|
581
|
+
]),
|
|
582
|
+
key: "0"
|
|
583
|
+
} : void 0
|
|
584
|
+
]), 1032, ["operation-list"])
|
|
585
|
+
])
|
|
586
|
+
]),
|
|
587
|
+
_: 3
|
|
588
|
+
}, 8, ["modelValue"])
|
|
589
|
+
], 2));
|
|
590
|
+
}
|
|
591
|
+
}), ea = /* @__PURE__ */ ne(Ge, [["__scopeId", "data-v-2bd0ab79"]]);
|
|
592
|
+
export {
|
|
593
|
+
ea as S
|
|
594
|
+
};
|
package/es/index.mjs
CHANGED
|
@@ -8,82 +8,85 @@ import { BatchImport as a } from "./BatchImport.mjs";
|
|
|
8
8
|
import { GradientButton as l } from "./GradientButton.mjs";
|
|
9
9
|
import { CustomDialog as s } from "./CustomDialog.mjs";
|
|
10
10
|
import { CustomPagination as c } from "./CustomPagination.mjs";
|
|
11
|
-
import { CustomTitle as
|
|
12
|
-
import { CustomDropdown as
|
|
11
|
+
import { CustomTitle as u } from "./CustomTitle.mjs";
|
|
12
|
+
import { CustomDropdown as S } from "./CustomDropdown.mjs";
|
|
13
13
|
import { TreeSelect as d } from "./TreeSelect.mjs";
|
|
14
14
|
import { TreeShowSelect as I } from "./TreeShowSelect.mjs";
|
|
15
15
|
import { IconEmpty as T } from "./IconEmpty.mjs";
|
|
16
16
|
import { IconRenderer as _, iconLibraryMap as B } from "./IconRenderer.mjs";
|
|
17
|
-
import { IconSelect as
|
|
18
|
-
import { PageNotFound as
|
|
19
|
-
import { UpdatePasswordDialog as
|
|
20
|
-
import { BUILD_BIG_TITLES as
|
|
17
|
+
import { IconSelect as P } from "./IconSelect.mjs";
|
|
18
|
+
import { PageNotFound as g } from "./PageNotFound.mjs";
|
|
19
|
+
import { UpdatePasswordDialog as D } from "./UpdatePasswordDialog.mjs";
|
|
20
|
+
import { BUILD_BIG_TITLES as L, BUILD_STEPS as C, BUILD_TITLES as E, BUILD_TYPES as b, BuildComponents as U, STEP_ARROW_IMAGE as y } from "./BuildComponents.mjs";
|
|
21
21
|
import { CustomTab as w } from "./CustomTab.mjs";
|
|
22
|
-
import {
|
|
22
|
+
import { PluginDetail as h } from "./PluginDetail.mjs";
|
|
23
|
+
import { dayjs as j } from "element-plus";
|
|
23
24
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
25
|
__proto__: null,
|
|
25
26
|
AppIntro: m,
|
|
26
|
-
BUILD_BIG_TITLES:
|
|
27
|
-
BUILD_STEPS:
|
|
27
|
+
BUILD_BIG_TITLES: L,
|
|
28
|
+
BUILD_STEPS: C,
|
|
28
29
|
BUILD_TITLES: E,
|
|
29
30
|
BUILD_TYPES: b,
|
|
30
31
|
BatchImport: a,
|
|
31
32
|
BuildComponents: U,
|
|
32
33
|
CustomDialog: s,
|
|
33
|
-
CustomDropdown:
|
|
34
|
+
CustomDropdown: S,
|
|
34
35
|
CustomPagination: c,
|
|
35
36
|
CustomSelect: i,
|
|
36
37
|
CustomTab: w,
|
|
37
|
-
CustomTitle:
|
|
38
|
+
CustomTitle: u,
|
|
38
39
|
FileList: f,
|
|
39
40
|
GradientButton: l,
|
|
40
41
|
IconEmpty: T,
|
|
41
42
|
IconRenderer: _,
|
|
42
|
-
IconSelect:
|
|
43
|
-
PageNotFound:
|
|
43
|
+
IconSelect: P,
|
|
44
|
+
PageNotFound: g,
|
|
44
45
|
PaginationTable: p,
|
|
46
|
+
PluginDetail: h,
|
|
45
47
|
STEP_ARROW_IMAGE: y,
|
|
46
48
|
SearchBar: e,
|
|
47
49
|
TreeSelect: d,
|
|
48
50
|
TreeShowSelect: I,
|
|
49
|
-
UpdatePasswordDialog:
|
|
51
|
+
UpdatePasswordDialog: D,
|
|
50
52
|
UploadFile: n,
|
|
51
53
|
iconLibraryMap: B
|
|
52
54
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
+
j.en.weekStart = 1;
|
|
56
|
+
const A = (t) => {
|
|
55
57
|
for (const r in o)
|
|
56
58
|
o[r].install && t.use(o[r]);
|
|
57
|
-
},
|
|
58
|
-
install:
|
|
59
|
+
}, to = {
|
|
60
|
+
install: A
|
|
59
61
|
};
|
|
60
62
|
export {
|
|
61
63
|
m as AppIntro,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
L as BUILD_BIG_TITLES,
|
|
65
|
+
C as BUILD_STEPS,
|
|
64
66
|
E as BUILD_TITLES,
|
|
65
67
|
b as BUILD_TYPES,
|
|
66
68
|
a as BatchImport,
|
|
67
69
|
U as BuildComponents,
|
|
68
70
|
s as CustomDialog,
|
|
69
|
-
|
|
71
|
+
S as CustomDropdown,
|
|
70
72
|
c as CustomPagination,
|
|
71
73
|
i as CustomSelect,
|
|
72
74
|
w as CustomTab,
|
|
73
|
-
|
|
75
|
+
u as CustomTitle,
|
|
74
76
|
f as FileList,
|
|
75
77
|
l as GradientButton,
|
|
76
78
|
T as IconEmpty,
|
|
77
79
|
_ as IconRenderer,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
P as IconSelect,
|
|
81
|
+
g as PageNotFound,
|
|
80
82
|
p as PaginationTable,
|
|
83
|
+
h as PluginDetail,
|
|
81
84
|
y as STEP_ARROW_IMAGE,
|
|
82
85
|
e as SearchBar,
|
|
83
86
|
d as TreeSelect,
|
|
84
87
|
I as TreeShowSelect,
|
|
85
|
-
|
|
88
|
+
D as UpdatePasswordDialog,
|
|
86
89
|
n as UploadFile,
|
|
87
|
-
|
|
90
|
+
to as default,
|
|
88
91
|
B as iconLibraryMap
|
|
89
92
|
};
|