yc-vep-ui 0.0.16 → 0.0.18
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/dist/vep-ui.es.js +625 -508
- package/dist/vep-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vep-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import e,
|
|
2
|
-
import {
|
|
3
|
-
import { AiEditor as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, reactive as b, ref as x, renderList as S, renderSlot as C, resolveComponent as w, resolveDirective as T, resolveDynamicComponent as E, setBlockTracking as D, toDisplayString as O, toValue as k, unref as A, useCssVars as ee, useModel as j, watch as M, watchEffect as te, withCtx as N, withDirectives as P } from "vue";
|
|
2
|
+
import { ElAffix as F, ElAlert as ne, ElAnchor as re, ElAnchorLink as ie, ElAside as ae, ElAutoResizer as oe, ElAutocomplete as se, ElAvatar as ce, ElAvatarGroup as le, ElBacktop as ue, ElBadge as de, ElBreadcrumb as fe, ElBreadcrumbItem as pe, ElButton as me, ElButtonGroup as he, ElCalendar as ge, ElCard as _e, ElCarousel as ve, ElCarouselItem as ye, ElCascader as be, ElCascaderPanel as xe, ElCheckTag as Se, ElCheckbox as Ce, ElCheckboxButton as we, ElCheckboxGroup as Te, ElCol as Ee, ElCollapse as De, ElCollapseItem as Oe, ElCollapseTransition as ke, ElColorPicker as Ae, ElColorPickerPanel as je, ElConfigProvider as Me, ElContainer as Ne, ElCountdown as Pe, ElDatePicker as Fe, ElDatePickerPanel as Ie, ElDescriptions as Le, ElDescriptionsItem as Re, ElDialog as ze, ElDivider as Be, ElDrawer as Ve, ElDropdown as He, ElDropdownItem as Ue, ElDropdownMenu as We, ElEmpty as Ge, ElFooter as Ke, ElForm as qe, ElFormItem as Je, ElHeader as Ye, ElIcon as Xe, ElImage as Ze, ElImageViewer as Qe, ElInput as I, ElInputNumber as L, ElInputOtp as $e, ElInputTag as R, ElLink as z, ElMain as et, ElMention as tt, ElMenu as nt, ElMenuItem as rt, ElMenuItemGroup as it, ElMessageBox as B, ElOption as at, ElOptionGroup as ot, ElOverlay as st, ElPageHeader as ct, ElPagination as lt, ElPopconfirm as ut, ElPopover as dt, ElPopper as ft, ElPopperArrow as pt, ElPopperContent as mt, ElPopperTrigger as ht, ElProgress as gt, ElRadio as _t, ElRadioButton as vt, ElRadioGroup as V, ElRate as yt, ElResult as bt, ElRow as xt, ElScrollbar as St, ElSegmented as Ct, ElSelect as H, ElSelectV2 as wt, ElSkeleton as Tt, ElSkeletonItem as Et, ElSlider as Dt, ElSpace as Ot, ElSplitter as kt, ElSplitterPanel as At, ElStatistic as jt, ElStep as Mt, ElSteps as Nt, ElSubMenu as Pt, ElSwitch as Ft, ElTabPane as It, ElTable as Lt, ElTableColumn as Rt, ElTableV2 as zt, ElTabs as Bt, ElTag as U, ElText as W, ElTimePicker as Vt, ElTimeSelect as G, ElTimeline as Ht, ElTimelineItem as Ut, ElTooltip as Wt, ElTour as Gt, ElTourStep as Kt, ElTransfer as qt, ElTree as Jt, ElTreeSelect as Yt, ElTreeV2 as Xt, ElUpload as Zt, ElWatermark as Qt, provideGlobalConfig as $t } from "element-plus";
|
|
3
|
+
import { AiEditor as en } from "aieditor";
|
|
4
4
|
//#region node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
5
|
-
var
|
|
5
|
+
var tn = {
|
|
6
6
|
name: "zh-cn",
|
|
7
7
|
el: {
|
|
8
8
|
breadcrumb: { label: "面包屑" },
|
|
@@ -181,7 +181,7 @@ var ce = {
|
|
|
181
181
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
},
|
|
184
|
+
}, nn = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, rn = /* @__PURE__ */ u({
|
|
185
185
|
__name: "index",
|
|
186
186
|
props: {
|
|
187
187
|
title: {},
|
|
@@ -190,175 +190,175 @@ var ce = {
|
|
|
190
190
|
icon: {}
|
|
191
191
|
},
|
|
192
192
|
setup(e) {
|
|
193
|
-
let
|
|
193
|
+
let i = t(() => ({
|
|
194
194
|
display: "flex",
|
|
195
195
|
alignItems: "center",
|
|
196
196
|
gap: "4px",
|
|
197
197
|
borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
|
|
198
198
|
}));
|
|
199
|
-
return (
|
|
200
|
-
let
|
|
201
|
-
return
|
|
199
|
+
return (t, o) => {
|
|
200
|
+
let l = w("el-icon"), u = w("el-card");
|
|
201
|
+
return y(), n(u, p(t.$attrs, { class: {
|
|
202
202
|
"ui-card": !0,
|
|
203
203
|
hideBorder: e.hideBorder
|
|
204
|
-
} }),
|
|
205
|
-
default:
|
|
204
|
+
} }), s({
|
|
205
|
+
default: N(() => [a("div", nn, [C(t.$slots, "default", {}, void 0, !0)])]),
|
|
206
206
|
_: 2
|
|
207
207
|
}, [e.title && e.title?.length > 0 ? {
|
|
208
208
|
name: "header",
|
|
209
|
-
fn:
|
|
210
|
-
default:
|
|
209
|
+
fn: N(() => [a("div", { style: g(i.value) }, [e.icon ? (y(), n(l, { key: 0 }, {
|
|
210
|
+
default: N(() => [(y(), n(E(e.icon), { color: "#2563eb" }))]),
|
|
211
211
|
_: 1
|
|
212
|
-
})) :
|
|
212
|
+
})) : r("", !0), o[0] || (D(-1, !0), (o[0] = a("h4", null, [c(O(e.title), 1)])).cacheIndex = 0, D(1), o[0])], 4)]),
|
|
213
213
|
key: "0"
|
|
214
214
|
} : void 0]), 1040, ["class"]);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
}),
|
|
217
|
+
}), K = (e, t) => {
|
|
218
218
|
let n = e.__vccOpts || e;
|
|
219
219
|
for (let [e, r] of t) n[e] = r;
|
|
220
220
|
return n;
|
|
221
|
-
},
|
|
221
|
+
}, q = /* @__PURE__ */ K(rn, [["__scopeId", "data-v-ae248017"]]), an = /* @__PURE__ */ u({
|
|
222
222
|
name: "ArrowRight",
|
|
223
223
|
__name: "arrow-right",
|
|
224
224
|
setup(e) {
|
|
225
|
-
return (e, t) => (
|
|
225
|
+
return (e, t) => (y(), i("svg", {
|
|
226
226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
227
227
|
viewBox: "0 0 1024 1024"
|
|
228
|
-
}, [
|
|
228
|
+
}, [a("path", {
|
|
229
229
|
fill: "currentColor",
|
|
230
230
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
231
231
|
})]));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), on = /* @__PURE__ */ u({
|
|
234
234
|
name: "ArrowUp",
|
|
235
235
|
__name: "arrow-up",
|
|
236
236
|
setup(e) {
|
|
237
|
-
return (e, t) => (
|
|
237
|
+
return (e, t) => (y(), i("svg", {
|
|
238
238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
239
239
|
viewBox: "0 0 1024 1024"
|
|
240
|
-
}, [
|
|
240
|
+
}, [a("path", {
|
|
241
241
|
fill: "currentColor",
|
|
242
242
|
d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
|
|
243
243
|
})]));
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), sn = /* @__PURE__ */ u({
|
|
246
246
|
name: "CirclePlus",
|
|
247
247
|
__name: "circle-plus",
|
|
248
248
|
setup(e) {
|
|
249
|
-
return (e, t) => (
|
|
249
|
+
return (e, t) => (y(), i("svg", {
|
|
250
250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
251
251
|
viewBox: "0 0 1024 1024"
|
|
252
252
|
}, [
|
|
253
|
-
|
|
253
|
+
a("path", {
|
|
254
254
|
fill: "currentColor",
|
|
255
255
|
d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
|
|
256
256
|
}),
|
|
257
|
-
|
|
257
|
+
a("path", {
|
|
258
258
|
fill: "currentColor",
|
|
259
259
|
d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
|
|
260
260
|
}),
|
|
261
|
-
|
|
261
|
+
a("path", {
|
|
262
262
|
fill: "currentColor",
|
|
263
263
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
264
264
|
})
|
|
265
265
|
]));
|
|
266
266
|
}
|
|
267
|
-
}),
|
|
267
|
+
}), cn = /* @__PURE__ */ u({
|
|
268
268
|
name: "Delete",
|
|
269
269
|
__name: "delete",
|
|
270
270
|
setup(e) {
|
|
271
|
-
return (e, t) => (
|
|
271
|
+
return (e, t) => (y(), i("svg", {
|
|
272
272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
273
273
|
viewBox: "0 0 1024 1024"
|
|
274
|
-
}, [
|
|
274
|
+
}, [a("path", {
|
|
275
275
|
fill: "currentColor",
|
|
276
276
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
277
277
|
})]));
|
|
278
278
|
}
|
|
279
|
-
}),
|
|
279
|
+
}), ln = /* @__PURE__ */ u({
|
|
280
280
|
name: "DocumentAdd",
|
|
281
281
|
__name: "document-add",
|
|
282
282
|
setup(e) {
|
|
283
|
-
return (e, t) => (
|
|
283
|
+
return (e, t) => (y(), i("svg", {
|
|
284
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
285
285
|
viewBox: "0 0 1024 1024"
|
|
286
|
-
}, [
|
|
286
|
+
}, [a("path", {
|
|
287
287
|
fill: "currentColor",
|
|
288
288
|
d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"
|
|
289
289
|
})]));
|
|
290
290
|
}
|
|
291
|
-
}),
|
|
291
|
+
}), un = /* @__PURE__ */ u({
|
|
292
292
|
name: "Edit",
|
|
293
293
|
__name: "edit",
|
|
294
294
|
setup(e) {
|
|
295
|
-
return (e, t) => (
|
|
295
|
+
return (e, t) => (y(), i("svg", {
|
|
296
296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
297
297
|
viewBox: "0 0 1024 1024"
|
|
298
|
-
}, [
|
|
298
|
+
}, [a("path", {
|
|
299
299
|
fill: "currentColor",
|
|
300
300
|
d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"
|
|
301
|
-
}),
|
|
301
|
+
}), a("path", {
|
|
302
302
|
fill: "currentColor",
|
|
303
303
|
d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
|
|
304
304
|
})]));
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), dn = /* @__PURE__ */ u({
|
|
307
307
|
name: "Folder",
|
|
308
308
|
__name: "folder",
|
|
309
309
|
setup(e) {
|
|
310
|
-
return (e, t) => (
|
|
310
|
+
return (e, t) => (y(), i("svg", {
|
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
312
|
viewBox: "0 0 1024 1024"
|
|
313
|
-
}, [
|
|
313
|
+
}, [a("path", {
|
|
314
314
|
fill: "currentColor",
|
|
315
315
|
d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"
|
|
316
316
|
})]));
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), fn = /* @__PURE__ */ u({
|
|
319
319
|
name: "MoreFilled",
|
|
320
320
|
__name: "more-filled",
|
|
321
321
|
setup(e) {
|
|
322
|
-
return (e, t) => (
|
|
322
|
+
return (e, t) => (y(), i("svg", {
|
|
323
323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
324
324
|
viewBox: "0 0 1024 1024"
|
|
325
|
-
}, [
|
|
325
|
+
}, [a("path", {
|
|
326
326
|
fill: "currentColor",
|
|
327
327
|
d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
|
|
328
328
|
})]));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), pn = /* @__PURE__ */ u({
|
|
331
331
|
name: "Promotion",
|
|
332
332
|
__name: "promotion",
|
|
333
333
|
setup(e) {
|
|
334
|
-
return (e, t) => (
|
|
334
|
+
return (e, t) => (y(), i("svg", {
|
|
335
335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
336
336
|
viewBox: "0 0 1024 1024"
|
|
337
|
-
}, [
|
|
337
|
+
}, [a("path", {
|
|
338
338
|
fill: "currentColor",
|
|
339
339
|
d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
|
|
340
340
|
})]));
|
|
341
341
|
}
|
|
342
|
-
}),
|
|
342
|
+
}), J = /* @__PURE__ */ u({
|
|
343
343
|
name: "Refresh",
|
|
344
344
|
__name: "refresh",
|
|
345
345
|
setup(e) {
|
|
346
|
-
return (e, t) => (
|
|
346
|
+
return (e, t) => (y(), i("svg", {
|
|
347
347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
348
348
|
viewBox: "0 0 1024 1024"
|
|
349
|
-
}, [
|
|
349
|
+
}, [a("path", {
|
|
350
350
|
fill: "currentColor",
|
|
351
351
|
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
352
352
|
})]));
|
|
353
353
|
}
|
|
354
|
-
}),
|
|
354
|
+
}), mn = /* @__PURE__ */ u({
|
|
355
355
|
name: "Search",
|
|
356
356
|
__name: "search",
|
|
357
357
|
setup(e) {
|
|
358
|
-
return (e, t) => (
|
|
358
|
+
return (e, t) => (y(), i("svg", {
|
|
359
359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
360
360
|
viewBox: "0 0 1024 1024"
|
|
361
|
-
}, [
|
|
361
|
+
}, [a("path", {
|
|
362
362
|
fill: "currentColor",
|
|
363
363
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
|
|
364
364
|
})]));
|
|
@@ -366,13 +366,13 @@ var ce = {
|
|
|
366
366
|
});
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region src/components/utils/tools.ts
|
|
369
|
-
function
|
|
369
|
+
function hn(e) {
|
|
370
370
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Y(e) {
|
|
373
373
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function X(e, t) {
|
|
376
376
|
let n = {};
|
|
377
377
|
return Object.keys($).forEach((r) => {
|
|
378
378
|
let i = r;
|
|
@@ -391,13 +391,13 @@ function K(e, t) {
|
|
|
391
391
|
data: t
|
|
392
392
|
}) : n.input(n.props || {}))(n);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
let n =
|
|
394
|
+
function Z(e, t) {
|
|
395
|
+
let n = X(e, t);
|
|
396
396
|
return typeof n == "object" && (n.component ||= n), n;
|
|
397
397
|
}
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
400
|
-
var
|
|
400
|
+
var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
401
401
|
name: "UiDefaultFilter",
|
|
402
402
|
__name: "index",
|
|
403
403
|
props: {
|
|
@@ -418,8 +418,8 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
418
418
|
"reset",
|
|
419
419
|
"search"
|
|
420
420
|
],
|
|
421
|
-
setup(
|
|
422
|
-
let
|
|
421
|
+
setup(s, { emit: u }) {
|
|
422
|
+
let d = u, f = o(s, [
|
|
423
423
|
"fields",
|
|
424
424
|
"labelWidth",
|
|
425
425
|
"valueWidth",
|
|
@@ -427,69 +427,69 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
427
427
|
"column",
|
|
428
428
|
"size",
|
|
429
429
|
"filterFixedValues"
|
|
430
|
-
]),
|
|
430
|
+
]), m = b({
|
|
431
431
|
expandNum: 0,
|
|
432
432
|
expand: !1
|
|
433
|
-
}),
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
let t =
|
|
437
|
-
t !== void 0 && (
|
|
433
|
+
}), h = b({}), v = t(() => s.fields.slice(0, m.expand ? s.fields.length : m.expandNum)), x = t(() => 24 - v.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
|
|
434
|
+
_(() => {
|
|
435
|
+
m.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
|
|
436
|
+
let t = X(e, h)?.props?.defaultValue;
|
|
437
|
+
t !== void 0 && (h[e.prop] = t);
|
|
438
438
|
});
|
|
439
439
|
});
|
|
440
|
-
function
|
|
441
|
-
let
|
|
442
|
-
Object.keys(
|
|
443
|
-
if (
|
|
444
|
-
let n =
|
|
445
|
-
t
|
|
440
|
+
function T() {
|
|
441
|
+
let e = {};
|
|
442
|
+
Object.keys(h).forEach((t) => {
|
|
443
|
+
if (h[t] !== void 0) {
|
|
444
|
+
let n = k(h[t]);
|
|
445
|
+
e[t] = typeof n == "string" ? n.trim() : n;
|
|
446
446
|
}
|
|
447
|
-
}),
|
|
448
|
-
...
|
|
449
|
-
...
|
|
450
|
-
}),
|
|
451
|
-
...
|
|
452
|
-
...
|
|
447
|
+
}), d("submit", {
|
|
448
|
+
...e,
|
|
449
|
+
...s.filterFixedValues
|
|
450
|
+
}), d("search", {
|
|
451
|
+
...e,
|
|
452
|
+
...s.filterFixedValues
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
Object.keys(
|
|
457
|
-
|
|
458
|
-
}),
|
|
455
|
+
function D() {
|
|
456
|
+
Object.keys(h).forEach((e) => {
|
|
457
|
+
s.omitFields.includes(e) || (h[e] = void 0);
|
|
458
|
+
}), d("reset", h);
|
|
459
459
|
}
|
|
460
|
-
return (t,
|
|
461
|
-
let
|
|
462
|
-
return
|
|
463
|
-
model:
|
|
460
|
+
return (t, o) => {
|
|
461
|
+
let u = w("el-input"), d = w("el-form-item"), f = w("el-col"), _ = w("el-button"), b = w("el-row"), k = w("el-form");
|
|
462
|
+
return y(), n(k, p({
|
|
463
|
+
model: h,
|
|
464
464
|
class: "ui-filter",
|
|
465
|
-
size:
|
|
465
|
+
size: s.size
|
|
466
466
|
}, t.$attrs), {
|
|
467
|
-
default:
|
|
468
|
-
default:
|
|
469
|
-
default:
|
|
470
|
-
key:
|
|
471
|
-
label:
|
|
472
|
-
"label-width":
|
|
473
|
-
"value-width":
|
|
467
|
+
default: N(() => [l(b, { gutter: 20 }, {
|
|
468
|
+
default: N(() => [(y(!0), i(e, null, S(v.value, (e) => (y(), n(f, { span: e.span || 24 / s.column }, {
|
|
469
|
+
default: N(() => [(y(), n(d, {
|
|
470
|
+
key: e.prop,
|
|
471
|
+
label: e.label,
|
|
472
|
+
"label-width": A(hn)(e?.labelWidth || s.labelWidth),
|
|
473
|
+
"value-width": A(Y)(e?.valueWidth || s.valueWidth)
|
|
474
474
|
}, {
|
|
475
|
-
default:
|
|
475
|
+
default: N(() => [e.render ? (y(), n(E(A(X)(e, h).component), p({
|
|
476
476
|
key: 0,
|
|
477
|
-
modelValue:
|
|
478
|
-
"onUpdate:modelValue": (
|
|
479
|
-
}, { ref_for: !0 },
|
|
477
|
+
modelValue: h[e.prop],
|
|
478
|
+
"onUpdate:modelValue": (t) => h[e.prop] = t
|
|
479
|
+
}, { ref_for: !0 }, A(X)(e, h).props, {
|
|
480
480
|
clearable: !0,
|
|
481
|
-
style: { width:
|
|
481
|
+
style: { width: A(Y)(e?.valueWidth || s.valueWidth) }
|
|
482
482
|
}), null, 16, [
|
|
483
483
|
"modelValue",
|
|
484
484
|
"onUpdate:modelValue",
|
|
485
485
|
"style"
|
|
486
|
-
])) : (
|
|
486
|
+
])) : (y(), n(u, {
|
|
487
487
|
key: 1,
|
|
488
|
-
modelValue:
|
|
489
|
-
"onUpdate:modelValue": (
|
|
488
|
+
modelValue: h[e.prop],
|
|
489
|
+
"onUpdate:modelValue": (t) => h[e.prop] = t,
|
|
490
490
|
placeholder: "请输入",
|
|
491
491
|
clearable: !0,
|
|
492
|
-
style:
|
|
492
|
+
style: g({ width: A(Y)(e?.valueWidth || s.valueWidth) })
|
|
493
493
|
}, null, 8, [
|
|
494
494
|
"modelValue",
|
|
495
495
|
"onUpdate:modelValue",
|
|
@@ -502,42 +502,42 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
502
502
|
"value-width"
|
|
503
503
|
]))]),
|
|
504
504
|
_: 2
|
|
505
|
-
}, 1032, ["span"]))), 256)),
|
|
506
|
-
span: 24 /
|
|
507
|
-
offset:
|
|
505
|
+
}, 1032, ["span"]))), 256)), l(f, {
|
|
506
|
+
span: 24 / s.column,
|
|
507
|
+
offset: x.value
|
|
508
508
|
}, {
|
|
509
|
-
default:
|
|
509
|
+
default: N(() => [l(d, {
|
|
510
510
|
label: "",
|
|
511
511
|
"label-width": "30px"
|
|
512
512
|
}, {
|
|
513
|
-
default:
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
default: N(() => [a("div", gn, [
|
|
514
|
+
C(t.$slots, "left", { form: h }, void 0, !0),
|
|
515
|
+
s.fields.length >= 2 * s.column ? (y(), n(_, {
|
|
516
516
|
key: 0,
|
|
517
517
|
text: "",
|
|
518
|
-
icon:
|
|
519
|
-
onClick:
|
|
518
|
+
icon: m.expand ? A(on) : A(an),
|
|
519
|
+
onClick: o[0] ||= (e) => m.expand = !m.expand
|
|
520
520
|
}, {
|
|
521
|
-
default:
|
|
521
|
+
default: N(() => [c(O(m.expand ? "收起" : "展开"), 1)]),
|
|
522
522
|
_: 1
|
|
523
|
-
}, 8, ["icon"])) :
|
|
524
|
-
|
|
525
|
-
icon:
|
|
523
|
+
}, 8, ["icon"])) : r("", !0),
|
|
524
|
+
l(_, {
|
|
525
|
+
icon: A(mn),
|
|
526
526
|
type: "primary",
|
|
527
|
-
onClick:
|
|
527
|
+
onClick: T
|
|
528
528
|
}, {
|
|
529
|
-
default:
|
|
529
|
+
default: N(() => [...o[1] ||= [c("查询", -1)]]),
|
|
530
530
|
_: 1
|
|
531
531
|
}, 8, ["icon"]),
|
|
532
|
-
|
|
533
|
-
icon:
|
|
534
|
-
onClick:
|
|
532
|
+
l(_, {
|
|
533
|
+
icon: A(J),
|
|
534
|
+
onClick: D
|
|
535
535
|
}, {
|
|
536
|
-
default:
|
|
536
|
+
default: N(() => [...o[2] ||= [c("重置", -1)]]),
|
|
537
537
|
_: 1
|
|
538
538
|
}, 8, ["icon"]),
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
C(t.$slots, "handle", { form: h }, void 0, !0),
|
|
540
|
+
C(t.$slots, "right", { form: h }, void 0, !0)
|
|
541
541
|
])]),
|
|
542
542
|
_: 3
|
|
543
543
|
})]),
|
|
@@ -549,16 +549,16 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
549
549
|
}, 16, ["model", "size"]);
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
}), [["__scopeId", "data-v-45f0642b"]]),
|
|
552
|
+
}), [["__scopeId", "data-v-45f0642b"]]), vn = {
|
|
553
553
|
key: 0,
|
|
554
554
|
style: { display: "inline-block" }
|
|
555
|
-
},
|
|
555
|
+
}, yn = {
|
|
556
556
|
key: 0,
|
|
557
557
|
style: { display: "inline-block" }
|
|
558
|
-
},
|
|
558
|
+
}, bn = {
|
|
559
559
|
key: 0,
|
|
560
560
|
class: "ui-form-buttons"
|
|
561
|
-
},
|
|
561
|
+
}, xn = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
562
562
|
__name: "index",
|
|
563
563
|
props: {
|
|
564
564
|
fields: {},
|
|
@@ -567,7 +567,7 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
567
567
|
labelWidth: { default: "100px" },
|
|
568
568
|
labelPosition: { default: "top" },
|
|
569
569
|
omitFields: { default: () => [] },
|
|
570
|
-
rules: { default: () =>
|
|
570
|
+
rules: { default: () => b({}) },
|
|
571
571
|
required: { type: Boolean },
|
|
572
572
|
column: { default: 24 },
|
|
573
573
|
defaultValues: {},
|
|
@@ -576,9 +576,9 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
576
576
|
size: {}
|
|
577
577
|
},
|
|
578
578
|
emits: ["submit", "reset"],
|
|
579
|
-
setup(
|
|
580
|
-
|
|
581
|
-
let
|
|
579
|
+
setup(a, { expose: s, emit: u }) {
|
|
580
|
+
ee((e) => ({ ec46e5ec: e.column / 2 }));
|
|
581
|
+
let d = u, f = o(a, [
|
|
582
582
|
"fields",
|
|
583
583
|
"labelWidth",
|
|
584
584
|
"valueWidth",
|
|
@@ -587,121 +587,121 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
587
587
|
"labelPosition",
|
|
588
588
|
"valueModel",
|
|
589
589
|
"column"
|
|
590
|
-
]),
|
|
591
|
-
let
|
|
592
|
-
return
|
|
593
|
-
let n =
|
|
594
|
-
|
|
595
|
-
let n =
|
|
596
|
-
|
|
590
|
+
]), m = x(0), _ = x(), v = b({}), T = t(() => {
|
|
591
|
+
let e = k(v);
|
|
592
|
+
return a.fields.forEach((t) => {
|
|
593
|
+
let n = t.prop ? e?.[t.prop] : void 0, r = Z(t, v)?.props?.defaultValue;
|
|
594
|
+
v[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
|
|
595
|
+
let n = t.prop ? e?.[t.prop] : void 0, r = Z(t, v)?.props?.defaultValue;
|
|
596
|
+
v[t.prop] = n ?? r ?? void 0;
|
|
597
597
|
});
|
|
598
|
-
}),
|
|
599
|
-
}),
|
|
600
|
-
if (
|
|
601
|
-
let
|
|
602
|
-
return
|
|
603
|
-
|
|
598
|
+
}), a.fields.filter((e) => typeof e.prop == "string");
|
|
599
|
+
}), D = t(() => {
|
|
600
|
+
if (a.rules && Object.keys(a.rules).length) return a.rules;
|
|
601
|
+
let e = {};
|
|
602
|
+
return T.value.forEach((t) => {
|
|
603
|
+
t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
|
|
604
604
|
required: !0,
|
|
605
|
-
message: "请输入" +
|
|
605
|
+
message: "请输入" + t.label,
|
|
606
606
|
trigger: "change"
|
|
607
607
|
}]);
|
|
608
|
-
}),
|
|
608
|
+
}), e;
|
|
609
609
|
});
|
|
610
|
-
|
|
611
|
-
Object.assign(
|
|
610
|
+
te(() => {
|
|
611
|
+
Object.assign(v, f?.form);
|
|
612
612
|
});
|
|
613
|
-
async function
|
|
613
|
+
async function j(e) {
|
|
614
614
|
let t = !0;
|
|
615
615
|
if (await e.validate((e) => {
|
|
616
616
|
t = e;
|
|
617
617
|
}), !t) return;
|
|
618
618
|
let n = {};
|
|
619
|
-
Object.keys(
|
|
620
|
-
|
|
621
|
-
}),
|
|
619
|
+
Object.keys(v).forEach((e) => {
|
|
620
|
+
v[e] !== void 0 && (n[e] = k(v[e]));
|
|
621
|
+
}), d("submit", n);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
|
|
623
|
+
function M() {
|
|
624
|
+
_ && _.value?.clearValidate();
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
Object.keys(
|
|
628
|
-
|
|
629
|
-
}),
|
|
626
|
+
function P() {
|
|
627
|
+
Object.keys(v).forEach((e) => {
|
|
628
|
+
a.omitFields.includes(e) || (v[e] = void 0);
|
|
629
|
+
}), m.value += 1, d("reset", v);
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
return
|
|
631
|
+
function F() {
|
|
632
|
+
return v;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ne(e) {
|
|
635
635
|
Object.keys(e).forEach((t) => {
|
|
636
|
-
|
|
636
|
+
v[t] = e[t];
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
async function
|
|
639
|
+
async function re() {
|
|
640
640
|
return new Promise((e) => {
|
|
641
|
-
|
|
641
|
+
_.value?.validate((t, n) => e(n));
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
|
-
return
|
|
645
|
-
getValues:
|
|
646
|
-
setValues:
|
|
647
|
-
clearValidate:
|
|
648
|
-
onSubmit:
|
|
649
|
-
validate:
|
|
650
|
-
}), (t,
|
|
651
|
-
let
|
|
652
|
-
return
|
|
644
|
+
return s({
|
|
645
|
+
getValues: F,
|
|
646
|
+
setValues: ne,
|
|
647
|
+
clearValidate: M,
|
|
648
|
+
onSubmit: j,
|
|
649
|
+
validate: re
|
|
650
|
+
}), (t, o) => {
|
|
651
|
+
let s = w("el-input"), u = w("el-form-item"), d = w("el-form"), f = w("el-button");
|
|
652
|
+
return y(), i(e, null, [l(d, p({
|
|
653
653
|
ref_key: "uiFormRef",
|
|
654
|
-
ref:
|
|
655
|
-
model:
|
|
654
|
+
ref: _,
|
|
655
|
+
model: v
|
|
656
656
|
}, t.$attrs, {
|
|
657
|
-
rules:
|
|
658
|
-
inline:
|
|
659
|
-
"label-position":
|
|
657
|
+
rules: D.value,
|
|
658
|
+
inline: a.labelPosition !== "top",
|
|
659
|
+
"label-position": a.labelPosition,
|
|
660
660
|
class: {
|
|
661
661
|
"ui-form": !0,
|
|
662
|
-
horizontal:
|
|
662
|
+
horizontal: a.labelPosition !== "top"
|
|
663
663
|
},
|
|
664
664
|
"validate-on-rule-change": !1
|
|
665
665
|
}), {
|
|
666
|
-
default:
|
|
667
|
-
key:
|
|
668
|
-
label:
|
|
669
|
-
"label-width":
|
|
670
|
-
"value-width":
|
|
671
|
-
prop:
|
|
672
|
-
style:
|
|
673
|
-
width: `${
|
|
674
|
-
gridColumn: `span ${(
|
|
666
|
+
default: N(() => [(y(!0), i(e, null, S(T.value, (r) => (y(), n(u, {
|
|
667
|
+
key: r.prop,
|
|
668
|
+
label: r.label,
|
|
669
|
+
"label-width": a.labelWidth,
|
|
670
|
+
"value-width": a.valueWidth,
|
|
671
|
+
prop: r.prop,
|
|
672
|
+
style: g({
|
|
673
|
+
width: `${r?.width ? r?.width + "px" : "100%"}`,
|
|
674
|
+
gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
|
|
675
675
|
})
|
|
676
676
|
}, {
|
|
677
|
-
default:
|
|
677
|
+
default: N(() => [r.render ? (y(), i(e, { key: 0 }, [A(Z)(r, v).component ? (y(), n(E(A(Z)(r, v).component), p({
|
|
678
678
|
key: 1,
|
|
679
|
-
modelValue:
|
|
680
|
-
"onUpdate:modelValue": (e) =>
|
|
681
|
-
}, { ref_for: !0 },
|
|
679
|
+
modelValue: v[r.prop],
|
|
680
|
+
"onUpdate:modelValue": (e) => v[r.prop] = e
|
|
681
|
+
}, { ref_for: !0 }, A(Z)(r, v).props, {
|
|
682
682
|
clearable: !0,
|
|
683
|
-
key: `${
|
|
683
|
+
key: `${r.prop}-${m.value}`,
|
|
684
684
|
style: { display: "inline-block" },
|
|
685
|
-
class: { underline:
|
|
685
|
+
class: { underline: a.valueModel === "underline" }
|
|
686
686
|
}), null, 16, [
|
|
687
687
|
"modelValue",
|
|
688
688
|
"onUpdate:modelValue",
|
|
689
689
|
"class"
|
|
690
|
-
])) : (
|
|
690
|
+
])) : (y(), i("span", vn, O(A(Z)(r, v) || "-"), 1)), (y(!0), i(e, null, S(r.slots, (e) => C(t.$slots, "default", { form: v }, () => [A(Z)(e, v).component ? (y(), n(E(A(Z)(e, v).component), p({
|
|
691
691
|
key: 1,
|
|
692
|
-
modelValue:
|
|
693
|
-
"onUpdate:modelValue": (
|
|
694
|
-
"default-value":
|
|
695
|
-
placeholder:
|
|
696
|
-
}, { ref_for: !0 },
|
|
692
|
+
modelValue: v[e.prop],
|
|
693
|
+
"onUpdate:modelValue": (t) => v[e.prop] = t,
|
|
694
|
+
"default-value": e.defaultValue,
|
|
695
|
+
placeholder: e.placeholder
|
|
696
|
+
}, { ref_for: !0 }, A(Z)(e, v).props, {
|
|
697
697
|
style: {
|
|
698
698
|
display: "inline-block",
|
|
699
699
|
marginLeft: "10px",
|
|
700
|
-
width: `${
|
|
700
|
+
width: `${e.width ? e.width + "px" : "100%"}`
|
|
701
701
|
},
|
|
702
|
-
class: { underline:
|
|
702
|
+
class: { underline: a.valueModel === "underline" },
|
|
703
703
|
clearable: !0,
|
|
704
|
-
key: `${
|
|
704
|
+
key: `${e.prop}-${m.value}`
|
|
705
705
|
}), null, 16, [
|
|
706
706
|
"modelValue",
|
|
707
707
|
"onUpdate:modelValue",
|
|
@@ -709,13 +709,13 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
709
709
|
"placeholder",
|
|
710
710
|
"style",
|
|
711
711
|
"class"
|
|
712
|
-
])) : (
|
|
712
|
+
])) : (y(), i("span", yn, O(A(Z)(e, v) || "-"), 1))], !0)), 256))], 64)) : (y(), n(s, {
|
|
713
713
|
key: 1,
|
|
714
|
-
modelValue:
|
|
715
|
-
"onUpdate:modelValue": (e) =>
|
|
714
|
+
modelValue: v[r.prop],
|
|
715
|
+
"onUpdate:modelValue": (e) => v[r.prop] = e,
|
|
716
716
|
placeholder: "请输入",
|
|
717
717
|
clearable: !0,
|
|
718
|
-
class:
|
|
718
|
+
class: h({ underline: a.valueModel === "underline" })
|
|
719
719
|
}, null, 8, [
|
|
720
720
|
"modelValue",
|
|
721
721
|
"onUpdate:modelValue",
|
|
@@ -736,31 +736,31 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
736
736
|
"inline",
|
|
737
737
|
"label-position",
|
|
738
738
|
"class"
|
|
739
|
-
]), t.$attrs?.hideHandle ?
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
icon:
|
|
743
|
-
onClick:
|
|
739
|
+
]), t.$attrs?.hideHandle ? r("", !0) : (y(), i("div", bn, [
|
|
740
|
+
C(t.$slots, "handle", { form: v }, void 0, !0),
|
|
741
|
+
l(f, {
|
|
742
|
+
icon: A(J),
|
|
743
|
+
onClick: o[0] ||= (e) => _.value && P(),
|
|
744
744
|
size: t.$props.size
|
|
745
745
|
}, {
|
|
746
|
-
default:
|
|
746
|
+
default: N(() => [...o[2] ||= [c("重置", -1)]]),
|
|
747
747
|
_: 1
|
|
748
748
|
}, 8, ["icon", "size"]),
|
|
749
|
-
|
|
750
|
-
icon:
|
|
749
|
+
l(f, {
|
|
750
|
+
icon: A(pn),
|
|
751
751
|
type: "primary",
|
|
752
|
-
onClick:
|
|
752
|
+
onClick: o[1] ||= (e) => _.value && j(_.value),
|
|
753
753
|
size: t.$props.size
|
|
754
754
|
}, {
|
|
755
|
-
default:
|
|
755
|
+
default: N(() => [...o[3] ||= [c("提交", -1)]]),
|
|
756
756
|
_: 1
|
|
757
757
|
}, 8, ["icon", "size"])
|
|
758
758
|
]))], 64);
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
|
-
}), [["__scopeId", "data-v-f8f2a1f5"]]),
|
|
761
|
+
}), [["__scopeId", "data-v-f8f2a1f5"]]), Sn = ["disabled"], Q = /* @__PURE__ */ u({
|
|
762
762
|
__name: "index",
|
|
763
|
-
props: /* @__PURE__ */
|
|
763
|
+
props: /* @__PURE__ */ f({
|
|
764
764
|
defaultValue: { default: "" },
|
|
765
765
|
disabled: {
|
|
766
766
|
type: Boolean,
|
|
@@ -773,32 +773,32 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
773
773
|
},
|
|
774
774
|
modelModifiers: {}
|
|
775
775
|
}),
|
|
776
|
-
emits: /* @__PURE__ */
|
|
776
|
+
emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
|
|
777
777
|
setup(e, { emit: t }) {
|
|
778
|
-
let n =
|
|
779
|
-
return
|
|
780
|
-
|
|
778
|
+
let n = x(), r = j(e, "modelValue"), a = x(r.value || e.defaultValue || ""), o = null, s = t;
|
|
779
|
+
return _(() => {
|
|
780
|
+
o = new en({
|
|
781
781
|
element: n.value,
|
|
782
782
|
placeholder: "点击输入内容...",
|
|
783
783
|
content: r.value || e.defaultValue || "",
|
|
784
784
|
toolbarExcludeKeys: ["ai"],
|
|
785
785
|
onChange: (e) => {
|
|
786
786
|
let t = e.getHtml();
|
|
787
|
-
r.value = t,
|
|
787
|
+
r.value = t, a.value = t, s("change", t);
|
|
788
788
|
}
|
|
789
|
-
}),
|
|
790
|
-
}),
|
|
791
|
-
|
|
792
|
-
}),
|
|
793
|
-
|
|
794
|
-
}), (t, r) => (
|
|
789
|
+
}), o.setEditable(!e.disabled);
|
|
790
|
+
}), M(r, (e) => {
|
|
791
|
+
o && e !== o.getHtml() && o.setContent(e);
|
|
792
|
+
}), v(() => {
|
|
793
|
+
o && o.destroy();
|
|
794
|
+
}), (t, r) => (y(), i("div", {
|
|
795
795
|
ref_key: "editorRef",
|
|
796
796
|
ref: n,
|
|
797
797
|
style: { height: "500px" },
|
|
798
798
|
disabled: e.disabled
|
|
799
|
-
}, null, 8,
|
|
799
|
+
}, null, 8, Sn));
|
|
800
800
|
}
|
|
801
|
-
}),
|
|
801
|
+
}), Cn = { class: "ui-tree-wrapper" }, wn = {
|
|
802
802
|
key: 0,
|
|
803
803
|
style: {
|
|
804
804
|
display: "flex",
|
|
@@ -807,14 +807,14 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
807
807
|
"align-items": "center",
|
|
808
808
|
gap: "10px"
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, Tn = {
|
|
811
811
|
key: 0,
|
|
812
812
|
class: "custom-tree-node"
|
|
813
|
-
},
|
|
813
|
+
}, En = { class: "node-label" }, Dn = { style: {
|
|
814
814
|
color: "#ef4444",
|
|
815
815
|
display: "flex",
|
|
816
816
|
"align-items": "center"
|
|
817
|
-
} },
|
|
817
|
+
} }, On = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
818
818
|
__name: "index",
|
|
819
819
|
props: {
|
|
820
820
|
id: {},
|
|
@@ -831,35 +831,35 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
831
831
|
},
|
|
832
832
|
emits: ["change"],
|
|
833
833
|
setup(e, { emit: t }) {
|
|
834
|
-
let
|
|
834
|
+
let s = o(e, [
|
|
835
835
|
"filterable",
|
|
836
836
|
"placeholder",
|
|
837
837
|
"data",
|
|
838
838
|
"props"
|
|
839
|
-
]),
|
|
840
|
-
|
|
841
|
-
e.filterable &&
|
|
839
|
+
]), u = x(""), d = x(), f = x(null);
|
|
840
|
+
M(u, (t) => {
|
|
841
|
+
e.filterable && f.value.filter(t);
|
|
842
842
|
});
|
|
843
|
-
function
|
|
843
|
+
function m(t, n) {
|
|
844
844
|
return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
e?.stopPropagation(),
|
|
846
|
+
function h(e, t) {
|
|
847
|
+
e?.stopPropagation(), d.value = t.id;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
|
|
849
|
+
function g() {
|
|
850
|
+
B.prompt("请输入新的名称", "添加节点", {
|
|
851
851
|
confirmButtonText: "确定",
|
|
852
852
|
cancelButtonText: "取消",
|
|
853
853
|
callback: async (e) => {
|
|
854
854
|
if (e.action === "confirm") {
|
|
855
|
-
if (!
|
|
855
|
+
if (!s?.id) return;
|
|
856
856
|
console.log("添加 =》》", e?.value);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
|
|
861
|
+
function _(e) {
|
|
862
|
+
B.prompt("请输入新的名称", "重命名", {
|
|
863
863
|
confirmButtonText: "确定",
|
|
864
864
|
cancelButtonText: "取消",
|
|
865
865
|
inputValue: e.label
|
|
@@ -867,18 +867,18 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
867
867
|
console.log("修改节点 =》》", e);
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
async function
|
|
870
|
+
async function v(e) {
|
|
871
871
|
e.id && console.log("删除节点 =》》", e.id);
|
|
872
872
|
}
|
|
873
|
-
return (t,
|
|
874
|
-
let
|
|
875
|
-
return
|
|
876
|
-
e.filterable ? (
|
|
877
|
-
modelValue:
|
|
878
|
-
"onUpdate:modelValue":
|
|
873
|
+
return (t, o) => {
|
|
874
|
+
let d = w("el-input"), b = w("el-icon"), x = w("el-button"), S = w("el-dropdown-item"), T = w("el-dropdown-menu"), E = w("el-dropdown"), D = w("el-tree-v2");
|
|
875
|
+
return y(), i("div", Cn, [
|
|
876
|
+
e.filterable ? (y(), i("div", wn, [l(d, {
|
|
877
|
+
modelValue: u.value,
|
|
878
|
+
"onUpdate:modelValue": o[0] ||= (e) => u.value = e,
|
|
879
879
|
placeholder: e.placeholder ?? "请输入",
|
|
880
880
|
clearable: ""
|
|
881
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
881
|
+
}, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (y(), n(x, {
|
|
882
882
|
key: 0,
|
|
883
883
|
style: {
|
|
884
884
|
margin: "0px",
|
|
@@ -886,89 +886,89 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
886
886
|
},
|
|
887
887
|
link: ""
|
|
888
888
|
}, {
|
|
889
|
-
default:
|
|
890
|
-
default:
|
|
889
|
+
default: N(() => [l(b, { size: 22 }, {
|
|
890
|
+
default: N(() => [l(A(sn), { onClick: o[1] ||= (e) => g() })]),
|
|
891
891
|
_: 1
|
|
892
892
|
})]),
|
|
893
893
|
_: 1
|
|
894
|
-
}))])) :
|
|
895
|
-
|
|
896
|
-
|
|
894
|
+
}))])) : r("", !0),
|
|
895
|
+
C(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
896
|
+
l(D, p({
|
|
897
897
|
ref_key: "treeRef",
|
|
898
|
-
ref:
|
|
898
|
+
ref: f,
|
|
899
899
|
style: { "margin-top": "8px" }
|
|
900
900
|
}, {
|
|
901
901
|
...t.$props,
|
|
902
902
|
...t.$attrs
|
|
903
903
|
}, {
|
|
904
|
-
"node-key":
|
|
904
|
+
"node-key": s?.nodeKey || "id",
|
|
905
905
|
"highlight-current": !0,
|
|
906
|
-
"filter-method":
|
|
906
|
+
"filter-method": m
|
|
907
907
|
}), {
|
|
908
|
-
default:
|
|
909
|
-
default:
|
|
908
|
+
default: N((u) => [u?.data ? (y(), i("div", Tn, [a("div", En, [u.data?.children?.length ? (y(), n(b, { key: 0 }, {
|
|
909
|
+
default: N(() => [l(A(dn))]),
|
|
910
910
|
_: 1
|
|
911
|
-
})) :
|
|
911
|
+
})) : r("", !0), c(" " + O(u.data?.[e.props?.label || "label"]) + " " + O(u.data?.children?.length ? `(${u.data.children.length})` : ""), 1)]), s.hideNodeHandle ? r("", !0) : (y(), n(E, {
|
|
912
912
|
key: 0,
|
|
913
913
|
trigger: "click"
|
|
914
914
|
}, {
|
|
915
|
-
dropdown:
|
|
916
|
-
default:
|
|
917
|
-
|
|
915
|
+
dropdown: N(() => [l(T, null, {
|
|
916
|
+
default: N(() => [
|
|
917
|
+
s?.hideNodeAdd ? r("", !0) : (y(), n(S, {
|
|
918
918
|
key: 0,
|
|
919
|
-
onClick:
|
|
919
|
+
onClick: o[2] ||= (e) => g()
|
|
920
920
|
}, {
|
|
921
|
-
default:
|
|
922
|
-
default:
|
|
921
|
+
default: N(() => [l(b, null, {
|
|
922
|
+
default: N(() => [l(A(ln))]),
|
|
923
923
|
_: 1
|
|
924
|
-
}),
|
|
924
|
+
}), o[3] ||= c("添加 ", -1)]),
|
|
925
925
|
_: 1
|
|
926
926
|
})),
|
|
927
|
-
|
|
927
|
+
s?.hideNodeEdit ? r("", !0) : (y(), n(S, {
|
|
928
928
|
key: 1,
|
|
929
|
-
onClick: (e) => u
|
|
929
|
+
onClick: (e) => _(u.data)
|
|
930
930
|
}, {
|
|
931
|
-
default:
|
|
932
|
-
default:
|
|
931
|
+
default: N(() => [l(b, null, {
|
|
932
|
+
default: N(() => [l(A(un))]),
|
|
933
933
|
_: 1
|
|
934
|
-
}),
|
|
934
|
+
}), o[4] ||= c("编辑 ", -1)]),
|
|
935
935
|
_: 1
|
|
936
936
|
}, 8, ["onClick"])),
|
|
937
|
-
|
|
937
|
+
s?.hideNodeDel ? r("", !0) : (y(), n(S, {
|
|
938
938
|
key: 2,
|
|
939
|
-
onClick: (e) =>
|
|
939
|
+
onClick: (e) => v(u.data)
|
|
940
940
|
}, {
|
|
941
|
-
default:
|
|
942
|
-
default:
|
|
941
|
+
default: N(() => [a("span", Dn, [l(b, null, {
|
|
942
|
+
default: N(() => [l(A(cn))]),
|
|
943
943
|
_: 1
|
|
944
|
-
}),
|
|
944
|
+
}), o[5] ||= c("删除 ", -1)])]),
|
|
945
945
|
_: 1
|
|
946
946
|
}, 8, ["onClick"])),
|
|
947
|
-
|
|
947
|
+
C(t.$slots, "node-handle", { data: u.data }, void 0, !0)
|
|
948
948
|
]),
|
|
949
949
|
_: 2
|
|
950
950
|
}, 1024)]),
|
|
951
|
-
default:
|
|
952
|
-
default:
|
|
951
|
+
default: N(() => [l(b, { onClick: (e) => h(e, u.data) }, {
|
|
952
|
+
default: N(() => [l(A(fn))]),
|
|
953
953
|
_: 1
|
|
954
954
|
}, 8, ["onClick"])]),
|
|
955
955
|
_: 2
|
|
956
|
-
}, 1024))])) :
|
|
956
|
+
}, 1024))])) : r("", !0)]),
|
|
957
957
|
_: 3
|
|
958
958
|
}, 16, ["node-key"])
|
|
959
959
|
]);
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
}), [["__scopeId", "data-v-4495ddac"]]),
|
|
962
|
+
}), [["__scopeId", "data-v-4495ddac"]]), kn = { style: { height: "100%" } }, An = { style: {
|
|
963
963
|
display: "flex",
|
|
964
964
|
"flex-direction": "row",
|
|
965
965
|
"justify-content": "space-between",
|
|
966
966
|
"align-items": "center",
|
|
967
967
|
gap: "10px"
|
|
968
|
-
} },
|
|
968
|
+
} }, jn = { style: { margin: "10px 0px" } }, Mn = ["onClick"], Nn = { key: 0 }, Pn = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
969
969
|
__name: "index",
|
|
970
970
|
props: {
|
|
971
|
-
loading: { default: () =>
|
|
971
|
+
loading: { default: () => x(!1) },
|
|
972
972
|
data: {},
|
|
973
973
|
placeholder: {},
|
|
974
974
|
props: {},
|
|
@@ -976,47 +976,47 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
976
976
|
filterable: { type: Boolean }
|
|
977
977
|
},
|
|
978
978
|
emits: ["node-click"],
|
|
979
|
-
setup(
|
|
980
|
-
let
|
|
981
|
-
|
|
982
|
-
!
|
|
979
|
+
setup(o, { emit: s }) {
|
|
980
|
+
let c = s, l = x(""), u = x(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
|
|
981
|
+
M(() => [u.value, o.data?.[0]], (e) => {
|
|
982
|
+
!e[0] && e[1] && (u.value = o.data?.[0]);
|
|
983
983
|
}, { immediate: !0 });
|
|
984
|
-
function
|
|
985
|
-
|
|
984
|
+
function f(e) {
|
|
985
|
+
u.value = e, c("node-click", e);
|
|
986
986
|
}
|
|
987
|
-
return (t,
|
|
988
|
-
let
|
|
989
|
-
return
|
|
990
|
-
|
|
987
|
+
return (t, s) => {
|
|
988
|
+
let c = w("el-input");
|
|
989
|
+
return y(), i("div", kn, [
|
|
990
|
+
a("div", An, [o.filterable ? (y(), n(c, {
|
|
991
991
|
key: 0,
|
|
992
|
-
modelValue:
|
|
993
|
-
"onUpdate:modelValue":
|
|
994
|
-
placeholder:
|
|
995
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
996
|
-
|
|
997
|
-
|
|
992
|
+
modelValue: l.value,
|
|
993
|
+
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
994
|
+
placeholder: o.placeholder ?? "请输入"
|
|
995
|
+
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), C(t.$slots, "plus", {}, void 0, !0)]),
|
|
996
|
+
a("div", jn, [C(t.$slots, "handle", {}, void 0, !0)]),
|
|
997
|
+
P((y(), i("ul", p({
|
|
998
998
|
class: "infinite-list",
|
|
999
999
|
"infinite-scroll-immediate": !1
|
|
1000
|
-
}, t.$attrs), [(
|
|
1001
|
-
key: "infinite-list-" +
|
|
1002
|
-
class:
|
|
1000
|
+
}, t.$attrs), [(y(!0), i(e, null, S(d.value, (e, n) => (y(), i("li", {
|
|
1001
|
+
key: "infinite-list-" + n,
|
|
1002
|
+
class: h({
|
|
1003
1003
|
"infinite-list-item": !0,
|
|
1004
|
-
active:
|
|
1004
|
+
active: e === u.value
|
|
1005
1005
|
}),
|
|
1006
|
-
onClick: (
|
|
1007
|
-
}, [
|
|
1008
|
-
|
|
1006
|
+
onClick: (t) => f(e)
|
|
1007
|
+
}, [a("span", null, O(e[o.props?.label || "label"]), 1), C(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Mn))), 128))], 16)), [[A(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1008
|
+
o.loading.value ? (y(), i("p", Nn, "loading...")) : r("", !0)
|
|
1009
1009
|
]);
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
}), [["__scopeId", "data-v-2180fa82"]]),
|
|
1012
|
+
}), [["__scopeId", "data-v-2180fa82"]]), Fn = {
|
|
1013
1013
|
key: 0,
|
|
1014
1014
|
style: {
|
|
1015
1015
|
padding: "10px 0px",
|
|
1016
1016
|
"margin-bottom": "10px",
|
|
1017
1017
|
"border-bottom": "1px solid #e5e5e5"
|
|
1018
1018
|
}
|
|
1019
|
-
},
|
|
1019
|
+
}, In = { key: 1 }, Ln = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
1020
1020
|
__name: "index",
|
|
1021
1021
|
props: {
|
|
1022
1022
|
data: {},
|
|
@@ -1029,33 +1029,33 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1029
1029
|
extra: {},
|
|
1030
1030
|
labelWidth: {}
|
|
1031
1031
|
},
|
|
1032
|
-
setup(
|
|
1033
|
-
let
|
|
1032
|
+
setup(t) {
|
|
1033
|
+
let a = o(t, [
|
|
1034
1034
|
"title",
|
|
1035
1035
|
"column",
|
|
1036
1036
|
"fields",
|
|
1037
1037
|
"data"
|
|
1038
1038
|
]);
|
|
1039
|
-
return (
|
|
1040
|
-
let
|
|
1041
|
-
return
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
default:
|
|
1046
|
-
key:
|
|
1047
|
-
label:
|
|
1048
|
-
span:
|
|
1039
|
+
return (o, s) => {
|
|
1040
|
+
let c = w("el-descriptions-item"), u = w("el-descriptions");
|
|
1041
|
+
return y(), i(e, null, [
|
|
1042
|
+
t.title ? (y(), i("h4", Fn, O(t.title), 1)) : r("", !0),
|
|
1043
|
+
C(o.$slots, "title", {}, void 0, !0),
|
|
1044
|
+
l(u, p({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1045
|
+
default: N(() => [(y(!0), i(e, null, S(t.fields, (e) => (y(), n(c, {
|
|
1046
|
+
key: e.prop,
|
|
1047
|
+
label: e.label,
|
|
1048
|
+
span: e.span || 2
|
|
1049
1049
|
}, {
|
|
1050
|
-
default:
|
|
1050
|
+
default: N(() => [e.render ? (y(), n(E(A(X)(e, t.data).component), p({
|
|
1051
1051
|
key: 0,
|
|
1052
|
-
modelValue:
|
|
1053
|
-
"onUpdate:modelValue": (n) =>
|
|
1054
|
-
}, { ref_for: !0 },
|
|
1052
|
+
modelValue: t.data[e.prop],
|
|
1053
|
+
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1054
|
+
}, { ref_for: !0 }, A(X)(e, t.data).props, {
|
|
1055
1055
|
clearable: !0,
|
|
1056
|
-
key:
|
|
1056
|
+
key: e.prop,
|
|
1057
1057
|
style: { display: "inline-block" }
|
|
1058
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (
|
|
1058
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span", In, O(t.data[e.prop] || "-"), 1))]),
|
|
1059
1059
|
_: 2
|
|
1060
1060
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1061
1061
|
_: 1
|
|
@@ -1063,10 +1063,10 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1063
1063
|
], 64);
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
|
-
}), [["__scopeId", "data-v-f02c30f9"]]),
|
|
1066
|
+
}), [["__scopeId", "data-v-f02c30f9"]]), Rn = {
|
|
1067
1067
|
key: 0,
|
|
1068
1068
|
class: "dialog-footer"
|
|
1069
|
-
},
|
|
1069
|
+
}, zn = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
1070
1070
|
__name: "index",
|
|
1071
1071
|
props: {
|
|
1072
1072
|
visible: { type: Boolean },
|
|
@@ -1081,36 +1081,36 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1081
1081
|
"submit"
|
|
1082
1082
|
],
|
|
1083
1083
|
setup(e, { emit: t }) {
|
|
1084
|
-
let
|
|
1085
|
-
function
|
|
1086
|
-
|
|
1084
|
+
let a = t, o = e, s = x();
|
|
1085
|
+
function u() {
|
|
1086
|
+
a("close"), a("update:visible", !1);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1088
|
+
function d() {
|
|
1089
|
+
a("submit", k(s?.value || {})), a("update:visible", !1);
|
|
1090
1090
|
}
|
|
1091
1091
|
return (e, t) => {
|
|
1092
|
-
let
|
|
1093
|
-
return
|
|
1094
|
-
"model-value":
|
|
1095
|
-
"show-close":
|
|
1096
|
-
fullscreen: !
|
|
1092
|
+
let a = w("el-button"), f = w("el-dialog");
|
|
1093
|
+
return y(), n(f, p(e.$attrs, {
|
|
1094
|
+
"model-value": o.visible,
|
|
1095
|
+
"show-close": o.disabled,
|
|
1096
|
+
fullscreen: !o.width,
|
|
1097
1097
|
"destroy-on-close": "",
|
|
1098
1098
|
"lock-scroll": !1,
|
|
1099
1099
|
"close-on-click-modal": !1,
|
|
1100
|
-
"onUpdate:modelValue": t[0] ||= (e) => !e &&
|
|
1101
|
-
onClose:
|
|
1100
|
+
"onUpdate:modelValue": t[0] ||= (e) => !e && u(),
|
|
1101
|
+
onClose: u
|
|
1102
1102
|
}), {
|
|
1103
|
-
default:
|
|
1103
|
+
default: N(() => [(y(), n(E(o.component), p({
|
|
1104
1104
|
ref_key: "slotRef",
|
|
1105
|
-
ref:
|
|
1106
|
-
},
|
|
1107
|
-
default:
|
|
1105
|
+
ref: s
|
|
1106
|
+
}, o.componentProps), null, 16)), o.disabled ? r("", !0) : (y(), i("div", Rn, [l(a, { onClick: u }, {
|
|
1107
|
+
default: N(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1108
1108
|
_: 1
|
|
1109
|
-
}),
|
|
1109
|
+
}), l(a, {
|
|
1110
1110
|
type: "primary",
|
|
1111
|
-
onClick:
|
|
1111
|
+
onClick: d
|
|
1112
1112
|
}, {
|
|
1113
|
-
default:
|
|
1113
|
+
default: N(() => [...t[2] ||= [c("确定", -1)]]),
|
|
1114
1114
|
_: 1
|
|
1115
1115
|
})]))]),
|
|
1116
1116
|
_: 1
|
|
@@ -1124,63 +1124,63 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1124
1124
|
}), [["__scopeId", "data-v-fde928bf"]]);
|
|
1125
1125
|
//#endregion
|
|
1126
1126
|
//#region src/components/utils/render.ts
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1127
|
+
function Bn(e) {
|
|
1128
|
+
return d("template", { style: {
|
|
1129
1129
|
display: "flex",
|
|
1130
1130
|
flexDirection: "row",
|
|
1131
1131
|
flexWrap: "wrap"
|
|
1132
1132
|
} }, (Array.isArray(e) ? e : [e]).map((e) => {
|
|
1133
|
-
let { text:
|
|
1134
|
-
return
|
|
1135
|
-
...
|
|
1133
|
+
let { text: t, ...n } = e;
|
|
1134
|
+
return d(me, {
|
|
1135
|
+
...n,
|
|
1136
1136
|
link: !0,
|
|
1137
1137
|
size: "small",
|
|
1138
1138
|
type: e.type || "default"
|
|
1139
|
-
}, () =>
|
|
1139
|
+
}, () => t);
|
|
1140
1140
|
}));
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return Array.isArray(e) ?
|
|
1142
|
+
function Vn(e) {
|
|
1143
|
+
return Array.isArray(e) ? d("div", { style: {
|
|
1144
1144
|
display: "flex",
|
|
1145
1145
|
gap: "8px",
|
|
1146
1146
|
flexDirection: "row",
|
|
1147
1147
|
flexWrap: "wrap"
|
|
1148
|
-
} }, e.map((e) =>
|
|
1148
|
+
} }, e.map((e) => d(z, {
|
|
1149
1149
|
...e,
|
|
1150
1150
|
type: e.type || "primary"
|
|
1151
|
-
},
|
|
1151
|
+
}, d(W, {
|
|
1152
1152
|
lineClamp: e?.lineClamp,
|
|
1153
1153
|
type: e.type || "primary"
|
|
1154
|
-
}, () => e.prop)))) :
|
|
1154
|
+
}, () => e.prop)))) : d(z, {
|
|
1155
1155
|
...e,
|
|
1156
1156
|
type: e.type || "primary"
|
|
1157
|
-
},
|
|
1157
|
+
}, d(W, {
|
|
1158
1158
|
lineClamp: e?.lineClamp,
|
|
1159
1159
|
type: e.type || "primary"
|
|
1160
1160
|
}, () => e.prop));
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1162
|
+
function Hn(e) {
|
|
1163
|
+
return d("div", { style: {
|
|
1164
1164
|
display: "flex",
|
|
1165
1165
|
gap: "4px",
|
|
1166
1166
|
flexDirection: "row",
|
|
1167
1167
|
flexWrap: "wrap"
|
|
1168
|
-
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) =>
|
|
1168
|
+
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => d(U, e, () => t)));
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return
|
|
1170
|
+
function Un(e) {
|
|
1171
|
+
return d(U, { ...e });
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1173
|
+
function Wn(e) {
|
|
1174
|
+
return d(H, {
|
|
1175
1175
|
style: { minWidth: "160px" },
|
|
1176
1176
|
...e,
|
|
1177
1177
|
placeholder: "请选择",
|
|
1178
1178
|
filterable: !0
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function Gn(e) {
|
|
1182
1182
|
let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
1183
|
-
return
|
|
1183
|
+
return d(Fe, {
|
|
1184
1184
|
format: t,
|
|
1185
1185
|
valueFormat: t,
|
|
1186
1186
|
startPlaceholder: "开始时间",
|
|
@@ -1190,9 +1190,9 @@ function Je(e) {
|
|
|
1190
1190
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Kn(e) {
|
|
1194
1194
|
let { start: t = "00:00", end: n = "23:30", ...r } = e;
|
|
1195
|
-
return
|
|
1195
|
+
return d(G, {
|
|
1196
1196
|
start: t,
|
|
1197
1197
|
end: n,
|
|
1198
1198
|
...r,
|
|
@@ -1200,15 +1200,15 @@ function Ye(e) {
|
|
|
1200
1200
|
filterable: !0
|
|
1201
1201
|
});
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1203
|
+
function qn(e) {
|
|
1204
|
+
return d(I, {
|
|
1205
1205
|
...e,
|
|
1206
1206
|
placeholder: "请输入"
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Jn(e) {
|
|
1210
1210
|
let { align: t = "left", controlsPosition: n = "right", ...r } = e;
|
|
1211
|
-
return
|
|
1211
|
+
return d(L, {
|
|
1212
1212
|
align: t,
|
|
1213
1213
|
style: {
|
|
1214
1214
|
...e?.style || {},
|
|
@@ -1219,47 +1219,47 @@ function Ze(e) {
|
|
|
1219
1219
|
...r
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Yn(e) {
|
|
1223
1223
|
let { rows: t = 1, ...n } = e;
|
|
1224
|
-
return
|
|
1224
|
+
return d(I, {
|
|
1225
1225
|
placeholder: "请输入",
|
|
1226
1226
|
rows: t,
|
|
1227
1227
|
...n,
|
|
1228
1228
|
type: "textarea"
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return
|
|
1231
|
+
function Xn(e) {
|
|
1232
|
+
return d(R, {
|
|
1233
1233
|
placeholder: "请输入",
|
|
1234
1234
|
...e,
|
|
1235
1235
|
clearable: !1
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1238
|
+
function Zn(e) {
|
|
1239
|
+
return d(Q, e);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1241
|
+
function Qn(e) {
|
|
1242
|
+
return d(V, e);
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1244
|
+
function $n(e) {
|
|
1245
|
+
return d(W, e, () => e.prop);
|
|
1246
1246
|
}
|
|
1247
1247
|
var $ = {
|
|
1248
|
-
button:
|
|
1249
|
-
link:
|
|
1250
|
-
tag:
|
|
1251
|
-
switch:
|
|
1252
|
-
select:
|
|
1253
|
-
datePicker:
|
|
1254
|
-
timeSelect:
|
|
1255
|
-
input:
|
|
1256
|
-
inputNumber:
|
|
1257
|
-
textarea:
|
|
1258
|
-
inputTag:
|
|
1259
|
-
editor:
|
|
1260
|
-
radio:
|
|
1261
|
-
text:
|
|
1262
|
-
},
|
|
1248
|
+
button: Bn,
|
|
1249
|
+
link: Vn,
|
|
1250
|
+
tag: Hn,
|
|
1251
|
+
switch: Un,
|
|
1252
|
+
select: Wn,
|
|
1253
|
+
datePicker: Gn,
|
|
1254
|
+
timeSelect: Kn,
|
|
1255
|
+
input: qn,
|
|
1256
|
+
inputNumber: Jn,
|
|
1257
|
+
textarea: Yn,
|
|
1258
|
+
inputTag: Xn,
|
|
1259
|
+
editor: Zn,
|
|
1260
|
+
radio: Qn,
|
|
1261
|
+
text: $n
|
|
1262
|
+
}, er = /* @__PURE__ */ u({
|
|
1263
1263
|
name: "UiColumn",
|
|
1264
1264
|
__name: "UiColumn",
|
|
1265
1265
|
props: {
|
|
@@ -1270,69 +1270,69 @@ var $ = {
|
|
|
1270
1270
|
size: {}
|
|
1271
1271
|
},
|
|
1272
1272
|
emits: ["update:data"],
|
|
1273
|
-
setup(
|
|
1274
|
-
let
|
|
1275
|
-
function
|
|
1276
|
-
let
|
|
1277
|
-
Object.keys($).forEach((
|
|
1278
|
-
let
|
|
1279
|
-
|
|
1280
|
-
let
|
|
1273
|
+
setup(t, { emit: a }) {
|
|
1274
|
+
let o = a, s = t;
|
|
1275
|
+
function l(e, t, n) {
|
|
1276
|
+
let r = {};
|
|
1277
|
+
Object.keys($).forEach((i) => {
|
|
1278
|
+
let a = i;
|
|
1279
|
+
r[a] = (r) => {
|
|
1280
|
+
let i = Array.isArray(r) ? r : {
|
|
1281
1281
|
placeholder: "请输入",
|
|
1282
1282
|
filterable: !0,
|
|
1283
|
-
...
|
|
1284
|
-
prop:
|
|
1285
|
-
modelValue:
|
|
1286
|
-
onChange:
|
|
1287
|
-
onInput:
|
|
1283
|
+
...r,
|
|
1284
|
+
prop: r?.prop || e[n.prop],
|
|
1285
|
+
modelValue: r?.prop || e[n.prop],
|
|
1286
|
+
onChange: r?.onChange || ((e) => o("update:data", t, n.prop, e)),
|
|
1287
|
+
onInput: r?.onInput || ((e) => o("update:data", t, n.prop, e))
|
|
1288
1288
|
};
|
|
1289
|
-
return $[
|
|
1289
|
+
return $[a](i);
|
|
1290
1290
|
};
|
|
1291
1291
|
});
|
|
1292
|
-
let
|
|
1292
|
+
let i = n.render ? n.render({
|
|
1293
1293
|
data: e,
|
|
1294
1294
|
index: t,
|
|
1295
|
-
h:
|
|
1296
|
-
column:
|
|
1295
|
+
h: r,
|
|
1296
|
+
column: n
|
|
1297
1297
|
}) : null;
|
|
1298
|
-
return
|
|
1298
|
+
return i ? typeof i == "object" ? i : d("div", { innerHTML: String(i) }) : null;
|
|
1299
1299
|
}
|
|
1300
|
-
return (
|
|
1301
|
-
let
|
|
1302
|
-
return
|
|
1300
|
+
return (a, o) => {
|
|
1301
|
+
let u = w("UiColumn", !0), d = w("el-table-column"), f = w("el-text");
|
|
1302
|
+
return t.column?.children && t.column?.children?.length > 0 ? (y(), n(d, {
|
|
1303
1303
|
key: 0,
|
|
1304
|
-
label:
|
|
1305
|
-
align:
|
|
1304
|
+
label: t.column.label,
|
|
1305
|
+
align: s.align
|
|
1306
1306
|
}, {
|
|
1307
|
-
default:
|
|
1307
|
+
default: N(() => [(y(!0), i(e, null, S(t.column.children, (e) => (y(), n(u, p({
|
|
1308
1308
|
column: e,
|
|
1309
|
-
data:
|
|
1310
|
-
}, { ref_for: !0 },
|
|
1309
|
+
data: s.data
|
|
1310
|
+
}, { ref_for: !0 }, a.$attrs, { align: s.align }), null, 16, [
|
|
1311
1311
|
"column",
|
|
1312
1312
|
"data",
|
|
1313
1313
|
"align"
|
|
1314
1314
|
]))), 256))]),
|
|
1315
1315
|
_: 1
|
|
1316
|
-
}, 8, ["label", "align"])) : (
|
|
1316
|
+
}, 8, ["label", "align"])) : (y(), n(d, {
|
|
1317
1317
|
key: 1,
|
|
1318
|
-
prop: String(
|
|
1319
|
-
label:
|
|
1320
|
-
"column-key": String(
|
|
1321
|
-
align:
|
|
1322
|
-
width:
|
|
1323
|
-
"show-overflow-tooltip":
|
|
1318
|
+
prop: String(t.column.prop),
|
|
1319
|
+
label: t.column.label,
|
|
1320
|
+
"column-key": String(t.column.prop),
|
|
1321
|
+
align: s.align,
|
|
1322
|
+
width: t.column.width,
|
|
1323
|
+
"show-overflow-tooltip": t.column.showOverflowTooltip
|
|
1324
1324
|
}, {
|
|
1325
|
-
default:
|
|
1325
|
+
default: N((a) => [a?.row ? (y(), i(e, { key: 0 }, [t.column.render ? (y(), n(E(l(a.row, a.$index, t.column)), {
|
|
1326
1326
|
key: 0,
|
|
1327
|
-
align:
|
|
1328
|
-
size:
|
|
1329
|
-
}, null, 8, ["align", "size"])) : (
|
|
1327
|
+
align: s.align,
|
|
1328
|
+
size: s.size
|
|
1329
|
+
}, null, 8, ["align", "size"])) : (y(), n(f, {
|
|
1330
1330
|
key: 1,
|
|
1331
|
-
"line-clamp":
|
|
1331
|
+
"line-clamp": t.column?.lineClamp || 2
|
|
1332
1332
|
}, {
|
|
1333
|
-
default:
|
|
1333
|
+
default: N(() => [c(O(a.row[t.column.prop]), 1)]),
|
|
1334
1334
|
_: 2
|
|
1335
|
-
}, 1032, ["line-clamp"]))], 64)) :
|
|
1335
|
+
}, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
|
|
1336
1336
|
_: 1
|
|
1337
1337
|
}, 8, [
|
|
1338
1338
|
"prop",
|
|
@@ -1344,7 +1344,7 @@ var $ = {
|
|
|
1344
1344
|
]));
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
}),
|
|
1347
|
+
}), tr = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
1348
1348
|
__name: "index",
|
|
1349
1349
|
props: {
|
|
1350
1350
|
loading: {
|
|
@@ -1356,14 +1356,14 @@ var $ = {
|
|
|
1356
1356
|
default: !1
|
|
1357
1357
|
},
|
|
1358
1358
|
size: { default: "default" },
|
|
1359
|
-
data: { default: () =>
|
|
1359
|
+
data: { default: () => b([]) },
|
|
1360
1360
|
columns: {},
|
|
1361
1361
|
align: { default: "left" },
|
|
1362
1362
|
hidePagination: {
|
|
1363
1363
|
type: Boolean,
|
|
1364
1364
|
default: !1
|
|
1365
1365
|
},
|
|
1366
|
-
pagination: { default: () =>
|
|
1366
|
+
pagination: { default: () => b({
|
|
1367
1367
|
page: 1,
|
|
1368
1368
|
pageSize: 10,
|
|
1369
1369
|
total: 0,
|
|
@@ -1380,8 +1380,8 @@ var $ = {
|
|
|
1380
1380
|
rowKey: {}
|
|
1381
1381
|
},
|
|
1382
1382
|
emits: ["pagination"],
|
|
1383
|
-
setup(
|
|
1384
|
-
let
|
|
1383
|
+
setup(a, { emit: s }) {
|
|
1384
|
+
let c = s, l = o(a, [
|
|
1385
1385
|
"loading",
|
|
1386
1386
|
"border",
|
|
1387
1387
|
"align",
|
|
@@ -1389,59 +1389,59 @@ var $ = {
|
|
|
1389
1389
|
"pagination",
|
|
1390
1390
|
"data",
|
|
1391
1391
|
"size"
|
|
1392
|
-
]),
|
|
1393
|
-
|
|
1394
|
-
!e?.length || !t?.length ||
|
|
1395
|
-
if (!
|
|
1392
|
+
]), u = x(), d = t(() => k(l.columns)?.some((e) => e.type === "index")), f = t(() => k(l.columns)?.some((e) => e.type === "selection")), h = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
|
|
1393
|
+
M(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
|
|
1394
|
+
!e?.length || !t?.length || m(() => {
|
|
1395
|
+
if (!u.value) return;
|
|
1396
1396
|
let n = t.filter((t) => e.includes(t.id));
|
|
1397
|
-
|
|
1397
|
+
u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
|
|
1398
1398
|
});
|
|
1399
1399
|
}, { immediate: !0 });
|
|
1400
|
-
function
|
|
1401
|
-
|
|
1400
|
+
function g(e, t) {
|
|
1401
|
+
a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", k(a.pagination));
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
|
|
1405
|
-
...
|
|
1406
|
-
[
|
|
1403
|
+
function _(e, t, n) {
|
|
1404
|
+
a.data[e] && (a.data[e] = {
|
|
1405
|
+
...a.data[e],
|
|
1406
|
+
[t]: n
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
|
-
return (t,
|
|
1410
|
-
let
|
|
1411
|
-
return
|
|
1412
|
-
|
|
1413
|
-
data:
|
|
1409
|
+
return (t, o) => {
|
|
1410
|
+
let s = w("el-table-column"), c = w("el-table"), m = w("el-pagination"), v = T("loading");
|
|
1411
|
+
return y(), i("div", null, [
|
|
1412
|
+
P((y(), n(c, p({ border: a.border }, t.$attrs, {
|
|
1413
|
+
data: a.data,
|
|
1414
1414
|
lazy: !0,
|
|
1415
1415
|
class: "ui-table",
|
|
1416
1416
|
fit: "",
|
|
1417
1417
|
ref_key: "tableRef",
|
|
1418
|
-
ref:
|
|
1418
|
+
ref: u
|
|
1419
1419
|
}), {
|
|
1420
|
-
default:
|
|
1421
|
-
|
|
1420
|
+
default: N(() => [
|
|
1421
|
+
f.value ? (y(), n(s, {
|
|
1422
1422
|
key: 0,
|
|
1423
1423
|
type: "selection",
|
|
1424
|
-
selectable:
|
|
1424
|
+
selectable: l.selectable,
|
|
1425
1425
|
"column-key": "selection_0",
|
|
1426
|
-
align:
|
|
1426
|
+
align: a.align,
|
|
1427
1427
|
fixed: "left"
|
|
1428
|
-
}, null, 8, ["selectable", "align"])) :
|
|
1429
|
-
|
|
1428
|
+
}, null, 8, ["selectable", "align"])) : r("", !0),
|
|
1429
|
+
d.value ? (y(), n(s, {
|
|
1430
1430
|
key: 1,
|
|
1431
1431
|
fixed: "left",
|
|
1432
1432
|
type: "index",
|
|
1433
1433
|
label: "序号",
|
|
1434
1434
|
width: "60",
|
|
1435
1435
|
"column-key": "index_1",
|
|
1436
|
-
align:
|
|
1437
|
-
}, null, 8, ["align"])) :
|
|
1438
|
-
(
|
|
1439
|
-
key:
|
|
1440
|
-
column:
|
|
1441
|
-
data:
|
|
1442
|
-
align:
|
|
1443
|
-
"onUpdate:data":
|
|
1444
|
-
size:
|
|
1436
|
+
align: a.align
|
|
1437
|
+
}, null, 8, ["align"])) : r("", !0),
|
|
1438
|
+
(y(!0), i(e, null, S(h.value, (e, t) => (y(), n(er, {
|
|
1439
|
+
key: t + "column_" + e?.prop?.toString(),
|
|
1440
|
+
column: e,
|
|
1441
|
+
data: a.data,
|
|
1442
|
+
align: a.align,
|
|
1443
|
+
"onUpdate:data": _,
|
|
1444
|
+
size: a.size
|
|
1445
1445
|
}, null, 8, [
|
|
1446
1446
|
"column",
|
|
1447
1447
|
"data",
|
|
@@ -1450,48 +1450,165 @@ var $ = {
|
|
|
1450
1450
|
]))), 128))
|
|
1451
1451
|
]),
|
|
1452
1452
|
_: 1
|
|
1453
|
-
}, 16, ["border", "data"])), [[
|
|
1454
|
-
|
|
1453
|
+
}, 16, ["border", "data"])), [[v, a.loading]]),
|
|
1454
|
+
a.hidePagination ? r("", !0) : (y(), n(m, {
|
|
1455
1455
|
key: 0,
|
|
1456
1456
|
class: "ui-pagination",
|
|
1457
1457
|
size: "small",
|
|
1458
1458
|
background: "",
|
|
1459
1459
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
1460
|
-
"page-sizes":
|
|
1460
|
+
"page-sizes": a.pagination?.pageSizes || [
|
|
1461
1461
|
10,
|
|
1462
1462
|
20,
|
|
1463
1463
|
50
|
|
1464
1464
|
],
|
|
1465
|
-
"page-size":
|
|
1466
|
-
"onUpdate:pageSize":
|
|
1467
|
-
"current-page":
|
|
1468
|
-
"onUpdate:currentPage":
|
|
1469
|
-
total:
|
|
1470
|
-
"onUpdate:total":
|
|
1471
|
-
onChange:
|
|
1465
|
+
"page-size": a.pagination.pageSize,
|
|
1466
|
+
"onUpdate:pageSize": o[0] ||= (e) => a.pagination.pageSize = e,
|
|
1467
|
+
"current-page": a.pagination.page,
|
|
1468
|
+
"onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
|
|
1469
|
+
total: a.pagination.total,
|
|
1470
|
+
"onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
|
|
1471
|
+
onChange: g
|
|
1472
1472
|
}, null, 8, [
|
|
1473
1473
|
"page-sizes",
|
|
1474
1474
|
"page-size",
|
|
1475
1475
|
"current-page",
|
|
1476
1476
|
"total"
|
|
1477
1477
|
])),
|
|
1478
|
-
|
|
1478
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
1479
1479
|
]);
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
}), [["__scopeId", "data-v-3402edfe"]]),
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1482
|
+
}), [["__scopeId", "data-v-3402edfe"]]), nr = {
|
|
1483
|
+
ElAffix: F,
|
|
1484
|
+
ElAlert: ne,
|
|
1485
|
+
ElAnchor: re,
|
|
1486
|
+
ElAnchorLink: ie,
|
|
1487
|
+
ElAside: ae,
|
|
1488
|
+
ElAutoResizer: oe,
|
|
1489
|
+
ElAutocomplete: se,
|
|
1490
|
+
ElAvatar: ce,
|
|
1491
|
+
ElAvatarGroup: le,
|
|
1492
|
+
ElBacktop: ue,
|
|
1493
|
+
ElBadge: de,
|
|
1494
|
+
ElBreadcrumb: fe,
|
|
1495
|
+
ElBreadcrumbItem: pe,
|
|
1496
|
+
ElButton: me,
|
|
1497
|
+
ElButtonGroup: he,
|
|
1498
|
+
ElCalendar: ge,
|
|
1499
|
+
ElCard: _e,
|
|
1500
|
+
ElCarousel: ve,
|
|
1501
|
+
ElCarouselItem: ye,
|
|
1502
|
+
ElCascader: be,
|
|
1503
|
+
ElCascaderPanel: xe,
|
|
1504
|
+
ElCheckTag: Se,
|
|
1505
|
+
ElCheckbox: Ce,
|
|
1506
|
+
ElCheckboxButton: we,
|
|
1507
|
+
ElCheckboxGroup: Te,
|
|
1508
|
+
ElCol: Ee,
|
|
1509
|
+
ElCollapse: De,
|
|
1510
|
+
ElCollapseItem: Oe,
|
|
1511
|
+
ElCollapseTransition: ke,
|
|
1512
|
+
ElColorPicker: Ae,
|
|
1513
|
+
ElColorPickerPanel: je,
|
|
1514
|
+
ElConfigProvider: Me,
|
|
1515
|
+
ElContainer: Ne,
|
|
1516
|
+
ElCountdown: Pe,
|
|
1517
|
+
ElDatePicker: Fe,
|
|
1518
|
+
ElDatePickerPanel: Ie,
|
|
1519
|
+
ElDescriptions: Le,
|
|
1520
|
+
ElDescriptionsItem: Re,
|
|
1521
|
+
ElDialog: ze,
|
|
1522
|
+
ElDivider: Be,
|
|
1523
|
+
ElDrawer: Ve,
|
|
1524
|
+
ElDropdown: He,
|
|
1525
|
+
ElDropdownItem: Ue,
|
|
1526
|
+
ElDropdownMenu: We,
|
|
1527
|
+
ElEmpty: Ge,
|
|
1528
|
+
ElFooter: Ke,
|
|
1529
|
+
ElForm: qe,
|
|
1530
|
+
ElFormItem: Je,
|
|
1531
|
+
ElHeader: Ye,
|
|
1532
|
+
ElIcon: Xe,
|
|
1533
|
+
ElImage: Ze,
|
|
1534
|
+
ElImageViewer: Qe,
|
|
1535
|
+
ElInput: I,
|
|
1536
|
+
ElInputNumber: L,
|
|
1537
|
+
ElInputOtp: $e,
|
|
1538
|
+
ElInputTag: R,
|
|
1539
|
+
ElLink: z,
|
|
1540
|
+
ElMain: et,
|
|
1541
|
+
ElMention: tt,
|
|
1542
|
+
ElMenu: nt,
|
|
1543
|
+
ElMenuItem: rt,
|
|
1544
|
+
ElMenuItemGroup: it,
|
|
1545
|
+
ElOption: at,
|
|
1546
|
+
ElOptionGroup: ot,
|
|
1547
|
+
ElOverlay: st,
|
|
1548
|
+
ElPageHeader: ct,
|
|
1549
|
+
ElPagination: lt,
|
|
1550
|
+
ElPopconfirm: ut,
|
|
1551
|
+
ElPopover: dt,
|
|
1552
|
+
ElPopper: ft,
|
|
1553
|
+
ElPopperArrow: pt,
|
|
1554
|
+
ElPopperContent: mt,
|
|
1555
|
+
ElPopperTrigger: ht,
|
|
1556
|
+
ElProgress: gt,
|
|
1557
|
+
ElRadio: _t,
|
|
1558
|
+
ElRadioButton: vt,
|
|
1559
|
+
ElRadioGroup: V,
|
|
1560
|
+
ElRate: yt,
|
|
1561
|
+
ElResult: bt,
|
|
1562
|
+
ElRow: xt,
|
|
1563
|
+
ElScrollbar: St,
|
|
1564
|
+
ElSegmented: Ct,
|
|
1565
|
+
ElSelect: H,
|
|
1566
|
+
ElSelectV2: wt,
|
|
1567
|
+
ElSkeleton: Tt,
|
|
1568
|
+
ElSkeletonItem: Et,
|
|
1569
|
+
ElSlider: Dt,
|
|
1570
|
+
ElSpace: Ot,
|
|
1571
|
+
ElSplitter: kt,
|
|
1572
|
+
ElSplitterPanel: At,
|
|
1573
|
+
ElStatistic: jt,
|
|
1574
|
+
ElStep: Mt,
|
|
1575
|
+
ElSteps: Nt,
|
|
1576
|
+
ElSubMenu: Pt,
|
|
1577
|
+
ElSwitch: Ft,
|
|
1578
|
+
ElTabPane: It,
|
|
1579
|
+
ElTable: Lt,
|
|
1580
|
+
ElTableColumn: Rt,
|
|
1581
|
+
ElTableV2: zt,
|
|
1582
|
+
ElTabs: Bt,
|
|
1583
|
+
ElTag: U,
|
|
1584
|
+
ElText: W,
|
|
1585
|
+
ElTimePicker: Vt,
|
|
1586
|
+
ElTimeSelect: G,
|
|
1587
|
+
ElTimeline: Ht,
|
|
1588
|
+
ElTimelineItem: Ut,
|
|
1589
|
+
ElTooltip: Wt,
|
|
1590
|
+
ElTour: Gt,
|
|
1591
|
+
ElTourStep: Kt,
|
|
1592
|
+
ElTransfer: qt,
|
|
1593
|
+
ElTree: Jt,
|
|
1594
|
+
ElTreeSelect: Yt,
|
|
1595
|
+
ElTreeV2: Xt,
|
|
1596
|
+
ElUpload: Zt,
|
|
1597
|
+
ElWatermark: Qt
|
|
1598
|
+
}, rr = {
|
|
1599
|
+
UiCard: q,
|
|
1600
|
+
UiTable: tr,
|
|
1601
|
+
UiFilter: _n,
|
|
1602
|
+
UiForm: xn,
|
|
1603
|
+
UiEditor: Q,
|
|
1604
|
+
UiTree: On,
|
|
1605
|
+
UiInfiniteScroll: Pn,
|
|
1606
|
+
UiDescriptions: Ln,
|
|
1607
|
+
UiDialog: zn
|
|
1608
|
+
}, ir = { install(e) {
|
|
1609
|
+
for (let [, t] of Object.entries(nr)) t?.name && e.component(t.name, t);
|
|
1610
|
+
$t({ locale: tn });
|
|
1611
|
+
for (let [t, n] of Object.entries(rr)) e.component(t, n);
|
|
1495
1612
|
} };
|
|
1496
1613
|
//#endregion
|
|
1497
|
-
export {
|
|
1614
|
+
export { q as UiCard, Ln as UiDescriptions, zn as UiDialog, Q as UiEditor, _n as UiFilter, xn as UiForm, Pn as UiInfiniteScroll, tr as UiTable, On as UiTree, ir as default };
|