yc-vep-ui 0.0.17 → 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 -511
- package/dist/vep-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vep-ui.es.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ElButton as
|
|
3
|
-
import {
|
|
4
|
-
import { AiEditor as se } from "aieditor";
|
|
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";
|
|
5
4
|
//#region node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
6
|
-
var
|
|
5
|
+
var tn = {
|
|
7
6
|
name: "zh-cn",
|
|
8
7
|
el: {
|
|
9
8
|
breadcrumb: { label: "面包屑" },
|
|
@@ -182,7 +181,7 @@ var ce = {
|
|
|
182
181
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
183
182
|
}
|
|
184
183
|
}
|
|
185
|
-
},
|
|
184
|
+
}, nn = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, rn = /* @__PURE__ */ u({
|
|
186
185
|
__name: "index",
|
|
187
186
|
props: {
|
|
188
187
|
title: {},
|
|
@@ -191,175 +190,175 @@ var ce = {
|
|
|
191
190
|
icon: {}
|
|
192
191
|
},
|
|
193
192
|
setup(e) {
|
|
194
|
-
let
|
|
193
|
+
let i = t(() => ({
|
|
195
194
|
display: "flex",
|
|
196
195
|
alignItems: "center",
|
|
197
196
|
gap: "4px",
|
|
198
197
|
borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
|
|
199
198
|
}));
|
|
200
|
-
return (
|
|
201
|
-
let
|
|
202
|
-
return
|
|
199
|
+
return (t, o) => {
|
|
200
|
+
let l = w("el-icon"), u = w("el-card");
|
|
201
|
+
return y(), n(u, p(t.$attrs, { class: {
|
|
203
202
|
"ui-card": !0,
|
|
204
203
|
hideBorder: e.hideBorder
|
|
205
|
-
} }),
|
|
206
|
-
default:
|
|
204
|
+
} }), s({
|
|
205
|
+
default: N(() => [a("div", nn, [C(t.$slots, "default", {}, void 0, !0)])]),
|
|
207
206
|
_: 2
|
|
208
207
|
}, [e.title && e.title?.length > 0 ? {
|
|
209
208
|
name: "header",
|
|
210
|
-
fn:
|
|
211
|
-
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" }))]),
|
|
212
211
|
_: 1
|
|
213
|
-
})) :
|
|
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)]),
|
|
214
213
|
key: "0"
|
|
215
214
|
} : void 0]), 1040, ["class"]);
|
|
216
215
|
};
|
|
217
216
|
}
|
|
218
|
-
}),
|
|
217
|
+
}), K = (e, t) => {
|
|
219
218
|
let n = e.__vccOpts || e;
|
|
220
219
|
for (let [e, r] of t) n[e] = r;
|
|
221
220
|
return n;
|
|
222
|
-
},
|
|
221
|
+
}, q = /* @__PURE__ */ K(rn, [["__scopeId", "data-v-ae248017"]]), an = /* @__PURE__ */ u({
|
|
223
222
|
name: "ArrowRight",
|
|
224
223
|
__name: "arrow-right",
|
|
225
224
|
setup(e) {
|
|
226
|
-
return (e, t) => (
|
|
225
|
+
return (e, t) => (y(), i("svg", {
|
|
227
226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
228
227
|
viewBox: "0 0 1024 1024"
|
|
229
|
-
}, [
|
|
228
|
+
}, [a("path", {
|
|
230
229
|
fill: "currentColor",
|
|
231
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"
|
|
232
231
|
})]));
|
|
233
232
|
}
|
|
234
|
-
}),
|
|
233
|
+
}), on = /* @__PURE__ */ u({
|
|
235
234
|
name: "ArrowUp",
|
|
236
235
|
__name: "arrow-up",
|
|
237
236
|
setup(e) {
|
|
238
|
-
return (e, t) => (
|
|
237
|
+
return (e, t) => (y(), i("svg", {
|
|
239
238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
239
|
viewBox: "0 0 1024 1024"
|
|
241
|
-
}, [
|
|
240
|
+
}, [a("path", {
|
|
242
241
|
fill: "currentColor",
|
|
243
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"
|
|
244
243
|
})]));
|
|
245
244
|
}
|
|
246
|
-
}),
|
|
245
|
+
}), sn = /* @__PURE__ */ u({
|
|
247
246
|
name: "CirclePlus",
|
|
248
247
|
__name: "circle-plus",
|
|
249
248
|
setup(e) {
|
|
250
|
-
return (e, t) => (
|
|
249
|
+
return (e, t) => (y(), i("svg", {
|
|
251
250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
252
251
|
viewBox: "0 0 1024 1024"
|
|
253
252
|
}, [
|
|
254
|
-
|
|
253
|
+
a("path", {
|
|
255
254
|
fill: "currentColor",
|
|
256
255
|
d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
|
|
257
256
|
}),
|
|
258
|
-
|
|
257
|
+
a("path", {
|
|
259
258
|
fill: "currentColor",
|
|
260
259
|
d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
|
|
261
260
|
}),
|
|
262
|
-
|
|
261
|
+
a("path", {
|
|
263
262
|
fill: "currentColor",
|
|
264
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"
|
|
265
264
|
})
|
|
266
265
|
]));
|
|
267
266
|
}
|
|
268
|
-
}),
|
|
267
|
+
}), cn = /* @__PURE__ */ u({
|
|
269
268
|
name: "Delete",
|
|
270
269
|
__name: "delete",
|
|
271
270
|
setup(e) {
|
|
272
|
-
return (e, t) => (
|
|
271
|
+
return (e, t) => (y(), i("svg", {
|
|
273
272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
274
273
|
viewBox: "0 0 1024 1024"
|
|
275
|
-
}, [
|
|
274
|
+
}, [a("path", {
|
|
276
275
|
fill: "currentColor",
|
|
277
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"
|
|
278
277
|
})]));
|
|
279
278
|
}
|
|
280
|
-
}),
|
|
279
|
+
}), ln = /* @__PURE__ */ u({
|
|
281
280
|
name: "DocumentAdd",
|
|
282
281
|
__name: "document-add",
|
|
283
282
|
setup(e) {
|
|
284
|
-
return (e, t) => (
|
|
283
|
+
return (e, t) => (y(), i("svg", {
|
|
285
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
286
285
|
viewBox: "0 0 1024 1024"
|
|
287
|
-
}, [
|
|
286
|
+
}, [a("path", {
|
|
288
287
|
fill: "currentColor",
|
|
289
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"
|
|
290
289
|
})]));
|
|
291
290
|
}
|
|
292
|
-
}),
|
|
291
|
+
}), un = /* @__PURE__ */ u({
|
|
293
292
|
name: "Edit",
|
|
294
293
|
__name: "edit",
|
|
295
294
|
setup(e) {
|
|
296
|
-
return (e, t) => (
|
|
295
|
+
return (e, t) => (y(), i("svg", {
|
|
297
296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
298
297
|
viewBox: "0 0 1024 1024"
|
|
299
|
-
}, [
|
|
298
|
+
}, [a("path", {
|
|
300
299
|
fill: "currentColor",
|
|
301
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"
|
|
302
|
-
}),
|
|
301
|
+
}), a("path", {
|
|
303
302
|
fill: "currentColor",
|
|
304
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"
|
|
305
304
|
})]));
|
|
306
305
|
}
|
|
307
|
-
}),
|
|
306
|
+
}), dn = /* @__PURE__ */ u({
|
|
308
307
|
name: "Folder",
|
|
309
308
|
__name: "folder",
|
|
310
309
|
setup(e) {
|
|
311
|
-
return (e, t) => (
|
|
310
|
+
return (e, t) => (y(), i("svg", {
|
|
312
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
313
312
|
viewBox: "0 0 1024 1024"
|
|
314
|
-
}, [
|
|
313
|
+
}, [a("path", {
|
|
315
314
|
fill: "currentColor",
|
|
316
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"
|
|
317
316
|
})]));
|
|
318
317
|
}
|
|
319
|
-
}),
|
|
318
|
+
}), fn = /* @__PURE__ */ u({
|
|
320
319
|
name: "MoreFilled",
|
|
321
320
|
__name: "more-filled",
|
|
322
321
|
setup(e) {
|
|
323
|
-
return (e, t) => (
|
|
322
|
+
return (e, t) => (y(), i("svg", {
|
|
324
323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
325
324
|
viewBox: "0 0 1024 1024"
|
|
326
|
-
}, [
|
|
325
|
+
}, [a("path", {
|
|
327
326
|
fill: "currentColor",
|
|
328
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"
|
|
329
328
|
})]));
|
|
330
329
|
}
|
|
331
|
-
}),
|
|
330
|
+
}), pn = /* @__PURE__ */ u({
|
|
332
331
|
name: "Promotion",
|
|
333
332
|
__name: "promotion",
|
|
334
333
|
setup(e) {
|
|
335
|
-
return (e, t) => (
|
|
334
|
+
return (e, t) => (y(), i("svg", {
|
|
336
335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
337
336
|
viewBox: "0 0 1024 1024"
|
|
338
|
-
}, [
|
|
337
|
+
}, [a("path", {
|
|
339
338
|
fill: "currentColor",
|
|
340
339
|
d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
|
|
341
340
|
})]));
|
|
342
341
|
}
|
|
343
|
-
}),
|
|
342
|
+
}), J = /* @__PURE__ */ u({
|
|
344
343
|
name: "Refresh",
|
|
345
344
|
__name: "refresh",
|
|
346
345
|
setup(e) {
|
|
347
|
-
return (e, t) => (
|
|
346
|
+
return (e, t) => (y(), i("svg", {
|
|
348
347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
349
348
|
viewBox: "0 0 1024 1024"
|
|
350
|
-
}, [
|
|
349
|
+
}, [a("path", {
|
|
351
350
|
fill: "currentColor",
|
|
352
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"
|
|
353
352
|
})]));
|
|
354
353
|
}
|
|
355
|
-
}),
|
|
354
|
+
}), mn = /* @__PURE__ */ u({
|
|
356
355
|
name: "Search",
|
|
357
356
|
__name: "search",
|
|
358
357
|
setup(e) {
|
|
359
|
-
return (e, t) => (
|
|
358
|
+
return (e, t) => (y(), i("svg", {
|
|
360
359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
361
360
|
viewBox: "0 0 1024 1024"
|
|
362
|
-
}, [
|
|
361
|
+
}, [a("path", {
|
|
363
362
|
fill: "currentColor",
|
|
364
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"
|
|
365
364
|
})]));
|
|
@@ -367,13 +366,13 @@ var ce = {
|
|
|
367
366
|
});
|
|
368
367
|
//#endregion
|
|
369
368
|
//#region src/components/utils/tools.ts
|
|
370
|
-
function
|
|
369
|
+
function hn(e) {
|
|
371
370
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
372
371
|
}
|
|
373
|
-
function
|
|
372
|
+
function Y(e) {
|
|
374
373
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
375
374
|
}
|
|
376
|
-
function
|
|
375
|
+
function X(e, t) {
|
|
377
376
|
let n = {};
|
|
378
377
|
return Object.keys($).forEach((r) => {
|
|
379
378
|
let i = r;
|
|
@@ -392,13 +391,13 @@ function K(e, t) {
|
|
|
392
391
|
data: t
|
|
393
392
|
}) : n.input(n.props || {}))(n);
|
|
394
393
|
}
|
|
395
|
-
function
|
|
396
|
-
let n =
|
|
394
|
+
function Z(e, t) {
|
|
395
|
+
let n = X(e, t);
|
|
397
396
|
return typeof n == "object" && (n.component ||= n), n;
|
|
398
397
|
}
|
|
399
398
|
//#endregion
|
|
400
399
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
401
|
-
var
|
|
400
|
+
var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
402
401
|
name: "UiDefaultFilter",
|
|
403
402
|
__name: "index",
|
|
404
403
|
props: {
|
|
@@ -419,8 +418,8 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
419
418
|
"reset",
|
|
420
419
|
"search"
|
|
421
420
|
],
|
|
422
|
-
setup(
|
|
423
|
-
let
|
|
421
|
+
setup(s, { emit: u }) {
|
|
422
|
+
let d = u, f = o(s, [
|
|
424
423
|
"fields",
|
|
425
424
|
"labelWidth",
|
|
426
425
|
"valueWidth",
|
|
@@ -428,69 +427,69 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
428
427
|
"column",
|
|
429
428
|
"size",
|
|
430
429
|
"filterFixedValues"
|
|
431
|
-
]),
|
|
430
|
+
]), m = b({
|
|
432
431
|
expandNum: 0,
|
|
433
432
|
expand: !1
|
|
434
|
-
}),
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
let t =
|
|
438
|
-
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);
|
|
439
438
|
});
|
|
440
439
|
});
|
|
441
|
-
function
|
|
442
|
-
let
|
|
443
|
-
Object.keys(
|
|
444
|
-
if (
|
|
445
|
-
let n =
|
|
446
|
-
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;
|
|
447
446
|
}
|
|
448
|
-
}),
|
|
449
|
-
...
|
|
450
|
-
...
|
|
451
|
-
}),
|
|
452
|
-
...
|
|
453
|
-
...
|
|
447
|
+
}), d("submit", {
|
|
448
|
+
...e,
|
|
449
|
+
...s.filterFixedValues
|
|
450
|
+
}), d("search", {
|
|
451
|
+
...e,
|
|
452
|
+
...s.filterFixedValues
|
|
454
453
|
});
|
|
455
454
|
}
|
|
456
|
-
function
|
|
457
|
-
Object.keys(
|
|
458
|
-
|
|
459
|
-
}),
|
|
455
|
+
function D() {
|
|
456
|
+
Object.keys(h).forEach((e) => {
|
|
457
|
+
s.omitFields.includes(e) || (h[e] = void 0);
|
|
458
|
+
}), d("reset", h);
|
|
460
459
|
}
|
|
461
|
-
return (t,
|
|
462
|
-
let
|
|
463
|
-
return
|
|
464
|
-
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,
|
|
465
464
|
class: "ui-filter",
|
|
466
|
-
size:
|
|
465
|
+
size: s.size
|
|
467
466
|
}, t.$attrs), {
|
|
468
|
-
default:
|
|
469
|
-
default:
|
|
470
|
-
default:
|
|
471
|
-
key:
|
|
472
|
-
label:
|
|
473
|
-
"label-width":
|
|
474
|
-
"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)
|
|
475
474
|
}, {
|
|
476
|
-
default:
|
|
475
|
+
default: N(() => [e.render ? (y(), n(E(A(X)(e, h).component), p({
|
|
477
476
|
key: 0,
|
|
478
|
-
modelValue:
|
|
479
|
-
"onUpdate:modelValue": (
|
|
480
|
-
}, { 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, {
|
|
481
480
|
clearable: !0,
|
|
482
|
-
style: { width:
|
|
481
|
+
style: { width: A(Y)(e?.valueWidth || s.valueWidth) }
|
|
483
482
|
}), null, 16, [
|
|
484
483
|
"modelValue",
|
|
485
484
|
"onUpdate:modelValue",
|
|
486
485
|
"style"
|
|
487
|
-
])) : (
|
|
486
|
+
])) : (y(), n(u, {
|
|
488
487
|
key: 1,
|
|
489
|
-
modelValue:
|
|
490
|
-
"onUpdate:modelValue": (
|
|
488
|
+
modelValue: h[e.prop],
|
|
489
|
+
"onUpdate:modelValue": (t) => h[e.prop] = t,
|
|
491
490
|
placeholder: "请输入",
|
|
492
491
|
clearable: !0,
|
|
493
|
-
style:
|
|
492
|
+
style: g({ width: A(Y)(e?.valueWidth || s.valueWidth) })
|
|
494
493
|
}, null, 8, [
|
|
495
494
|
"modelValue",
|
|
496
495
|
"onUpdate:modelValue",
|
|
@@ -503,42 +502,42 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
503
502
|
"value-width"
|
|
504
503
|
]))]),
|
|
505
504
|
_: 2
|
|
506
|
-
}, 1032, ["span"]))), 256)),
|
|
507
|
-
span: 24 /
|
|
508
|
-
offset:
|
|
505
|
+
}, 1032, ["span"]))), 256)), l(f, {
|
|
506
|
+
span: 24 / s.column,
|
|
507
|
+
offset: x.value
|
|
509
508
|
}, {
|
|
510
|
-
default:
|
|
509
|
+
default: N(() => [l(d, {
|
|
511
510
|
label: "",
|
|
512
511
|
"label-width": "30px"
|
|
513
512
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
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(_, {
|
|
517
516
|
key: 0,
|
|
518
517
|
text: "",
|
|
519
|
-
icon:
|
|
520
|
-
onClick:
|
|
518
|
+
icon: m.expand ? A(on) : A(an),
|
|
519
|
+
onClick: o[0] ||= (e) => m.expand = !m.expand
|
|
521
520
|
}, {
|
|
522
|
-
default:
|
|
521
|
+
default: N(() => [c(O(m.expand ? "收起" : "展开"), 1)]),
|
|
523
522
|
_: 1
|
|
524
|
-
}, 8, ["icon"])) :
|
|
525
|
-
|
|
526
|
-
icon:
|
|
523
|
+
}, 8, ["icon"])) : r("", !0),
|
|
524
|
+
l(_, {
|
|
525
|
+
icon: A(mn),
|
|
527
526
|
type: "primary",
|
|
528
|
-
onClick:
|
|
527
|
+
onClick: T
|
|
529
528
|
}, {
|
|
530
|
-
default:
|
|
529
|
+
default: N(() => [...o[1] ||= [c("查询", -1)]]),
|
|
531
530
|
_: 1
|
|
532
531
|
}, 8, ["icon"]),
|
|
533
|
-
|
|
534
|
-
icon:
|
|
535
|
-
onClick:
|
|
532
|
+
l(_, {
|
|
533
|
+
icon: A(J),
|
|
534
|
+
onClick: D
|
|
536
535
|
}, {
|
|
537
|
-
default:
|
|
536
|
+
default: N(() => [...o[2] ||= [c("重置", -1)]]),
|
|
538
537
|
_: 1
|
|
539
538
|
}, 8, ["icon"]),
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
C(t.$slots, "handle", { form: h }, void 0, !0),
|
|
540
|
+
C(t.$slots, "right", { form: h }, void 0, !0)
|
|
542
541
|
])]),
|
|
543
542
|
_: 3
|
|
544
543
|
})]),
|
|
@@ -550,16 +549,16 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
550
549
|
}, 16, ["model", "size"]);
|
|
551
550
|
};
|
|
552
551
|
}
|
|
553
|
-
}), [["__scopeId", "data-v-45f0642b"]]),
|
|
552
|
+
}), [["__scopeId", "data-v-45f0642b"]]), vn = {
|
|
554
553
|
key: 0,
|
|
555
554
|
style: { display: "inline-block" }
|
|
556
|
-
},
|
|
555
|
+
}, yn = {
|
|
557
556
|
key: 0,
|
|
558
557
|
style: { display: "inline-block" }
|
|
559
|
-
},
|
|
558
|
+
}, bn = {
|
|
560
559
|
key: 0,
|
|
561
560
|
class: "ui-form-buttons"
|
|
562
|
-
},
|
|
561
|
+
}, xn = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
563
562
|
__name: "index",
|
|
564
563
|
props: {
|
|
565
564
|
fields: {},
|
|
@@ -568,7 +567,7 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
568
567
|
labelWidth: { default: "100px" },
|
|
569
568
|
labelPosition: { default: "top" },
|
|
570
569
|
omitFields: { default: () => [] },
|
|
571
|
-
rules: { default: () =>
|
|
570
|
+
rules: { default: () => b({}) },
|
|
572
571
|
required: { type: Boolean },
|
|
573
572
|
column: { default: 24 },
|
|
574
573
|
defaultValues: {},
|
|
@@ -577,9 +576,9 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
577
576
|
size: {}
|
|
578
577
|
},
|
|
579
578
|
emits: ["submit", "reset"],
|
|
580
|
-
setup(
|
|
581
|
-
|
|
582
|
-
let
|
|
579
|
+
setup(a, { expose: s, emit: u }) {
|
|
580
|
+
ee((e) => ({ ec46e5ec: e.column / 2 }));
|
|
581
|
+
let d = u, f = o(a, [
|
|
583
582
|
"fields",
|
|
584
583
|
"labelWidth",
|
|
585
584
|
"valueWidth",
|
|
@@ -588,121 +587,121 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
588
587
|
"labelPosition",
|
|
589
588
|
"valueModel",
|
|
590
589
|
"column"
|
|
591
|
-
]),
|
|
592
|
-
let
|
|
593
|
-
return
|
|
594
|
-
let n =
|
|
595
|
-
|
|
596
|
-
let n =
|
|
597
|
-
|
|
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;
|
|
598
597
|
});
|
|
599
|
-
}),
|
|
600
|
-
}),
|
|
601
|
-
if (
|
|
602
|
-
let
|
|
603
|
-
return
|
|
604
|
-
|
|
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] = [{
|
|
605
604
|
required: !0,
|
|
606
|
-
message: "请输入" +
|
|
605
|
+
message: "请输入" + t.label,
|
|
607
606
|
trigger: "change"
|
|
608
607
|
}]);
|
|
609
|
-
}),
|
|
608
|
+
}), e;
|
|
610
609
|
});
|
|
611
|
-
|
|
612
|
-
Object.assign(
|
|
610
|
+
te(() => {
|
|
611
|
+
Object.assign(v, f?.form);
|
|
613
612
|
});
|
|
614
|
-
async function
|
|
613
|
+
async function j(e) {
|
|
615
614
|
let t = !0;
|
|
616
615
|
if (await e.validate((e) => {
|
|
617
616
|
t = e;
|
|
618
617
|
}), !t) return;
|
|
619
618
|
let n = {};
|
|
620
|
-
Object.keys(
|
|
621
|
-
|
|
622
|
-
}),
|
|
619
|
+
Object.keys(v).forEach((e) => {
|
|
620
|
+
v[e] !== void 0 && (n[e] = k(v[e]));
|
|
621
|
+
}), d("submit", n);
|
|
623
622
|
}
|
|
624
|
-
function
|
|
625
|
-
|
|
623
|
+
function M() {
|
|
624
|
+
_ && _.value?.clearValidate();
|
|
626
625
|
}
|
|
627
|
-
function
|
|
628
|
-
Object.keys(
|
|
629
|
-
|
|
630
|
-
}),
|
|
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);
|
|
631
630
|
}
|
|
632
|
-
function
|
|
633
|
-
return
|
|
631
|
+
function F() {
|
|
632
|
+
return v;
|
|
634
633
|
}
|
|
635
|
-
function
|
|
634
|
+
function ne(e) {
|
|
636
635
|
Object.keys(e).forEach((t) => {
|
|
637
|
-
|
|
636
|
+
v[t] = e[t];
|
|
638
637
|
});
|
|
639
638
|
}
|
|
640
|
-
async function
|
|
639
|
+
async function re() {
|
|
641
640
|
return new Promise((e) => {
|
|
642
|
-
|
|
641
|
+
_.value?.validate((t, n) => e(n));
|
|
643
642
|
});
|
|
644
643
|
}
|
|
645
|
-
return
|
|
646
|
-
getValues:
|
|
647
|
-
setValues:
|
|
648
|
-
clearValidate:
|
|
649
|
-
onSubmit:
|
|
650
|
-
validate:
|
|
651
|
-
}), (t,
|
|
652
|
-
let
|
|
653
|
-
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({
|
|
654
653
|
ref_key: "uiFormRef",
|
|
655
|
-
ref:
|
|
656
|
-
model:
|
|
654
|
+
ref: _,
|
|
655
|
+
model: v
|
|
657
656
|
}, t.$attrs, {
|
|
658
|
-
rules:
|
|
659
|
-
inline:
|
|
660
|
-
"label-position":
|
|
657
|
+
rules: D.value,
|
|
658
|
+
inline: a.labelPosition !== "top",
|
|
659
|
+
"label-position": a.labelPosition,
|
|
661
660
|
class: {
|
|
662
661
|
"ui-form": !0,
|
|
663
|
-
horizontal:
|
|
662
|
+
horizontal: a.labelPosition !== "top"
|
|
664
663
|
},
|
|
665
664
|
"validate-on-rule-change": !1
|
|
666
665
|
}), {
|
|
667
|
-
default:
|
|
668
|
-
key:
|
|
669
|
-
label:
|
|
670
|
-
"label-width":
|
|
671
|
-
"value-width":
|
|
672
|
-
prop:
|
|
673
|
-
style:
|
|
674
|
-
width: `${
|
|
675
|
-
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}`
|
|
676
675
|
})
|
|
677
676
|
}, {
|
|
678
|
-
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({
|
|
679
678
|
key: 1,
|
|
680
|
-
modelValue:
|
|
681
|
-
"onUpdate:modelValue": (e) =>
|
|
682
|
-
}, { 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, {
|
|
683
682
|
clearable: !0,
|
|
684
|
-
key: `${
|
|
683
|
+
key: `${r.prop}-${m.value}`,
|
|
685
684
|
style: { display: "inline-block" },
|
|
686
|
-
class: { underline:
|
|
685
|
+
class: { underline: a.valueModel === "underline" }
|
|
687
686
|
}), null, 16, [
|
|
688
687
|
"modelValue",
|
|
689
688
|
"onUpdate:modelValue",
|
|
690
689
|
"class"
|
|
691
|
-
])) : (
|
|
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({
|
|
692
691
|
key: 1,
|
|
693
|
-
modelValue:
|
|
694
|
-
"onUpdate:modelValue": (
|
|
695
|
-
"default-value":
|
|
696
|
-
placeholder:
|
|
697
|
-
}, { 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, {
|
|
698
697
|
style: {
|
|
699
698
|
display: "inline-block",
|
|
700
699
|
marginLeft: "10px",
|
|
701
|
-
width: `${
|
|
700
|
+
width: `${e.width ? e.width + "px" : "100%"}`
|
|
702
701
|
},
|
|
703
|
-
class: { underline:
|
|
702
|
+
class: { underline: a.valueModel === "underline" },
|
|
704
703
|
clearable: !0,
|
|
705
|
-
key: `${
|
|
704
|
+
key: `${e.prop}-${m.value}`
|
|
706
705
|
}), null, 16, [
|
|
707
706
|
"modelValue",
|
|
708
707
|
"onUpdate:modelValue",
|
|
@@ -710,13 +709,13 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
710
709
|
"placeholder",
|
|
711
710
|
"style",
|
|
712
711
|
"class"
|
|
713
|
-
])) : (
|
|
712
|
+
])) : (y(), i("span", yn, O(A(Z)(e, v) || "-"), 1))], !0)), 256))], 64)) : (y(), n(s, {
|
|
714
713
|
key: 1,
|
|
715
|
-
modelValue:
|
|
716
|
-
"onUpdate:modelValue": (e) =>
|
|
714
|
+
modelValue: v[r.prop],
|
|
715
|
+
"onUpdate:modelValue": (e) => v[r.prop] = e,
|
|
717
716
|
placeholder: "请输入",
|
|
718
717
|
clearable: !0,
|
|
719
|
-
class:
|
|
718
|
+
class: h({ underline: a.valueModel === "underline" })
|
|
720
719
|
}, null, 8, [
|
|
721
720
|
"modelValue",
|
|
722
721
|
"onUpdate:modelValue",
|
|
@@ -737,31 +736,31 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
737
736
|
"inline",
|
|
738
737
|
"label-position",
|
|
739
738
|
"class"
|
|
740
|
-
]), t.$attrs?.hideHandle ?
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
icon:
|
|
744
|
-
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(),
|
|
745
744
|
size: t.$props.size
|
|
746
745
|
}, {
|
|
747
|
-
default:
|
|
746
|
+
default: N(() => [...o[2] ||= [c("重置", -1)]]),
|
|
748
747
|
_: 1
|
|
749
748
|
}, 8, ["icon", "size"]),
|
|
750
|
-
|
|
751
|
-
icon:
|
|
749
|
+
l(f, {
|
|
750
|
+
icon: A(pn),
|
|
752
751
|
type: "primary",
|
|
753
|
-
onClick:
|
|
752
|
+
onClick: o[1] ||= (e) => _.value && j(_.value),
|
|
754
753
|
size: t.$props.size
|
|
755
754
|
}, {
|
|
756
|
-
default:
|
|
755
|
+
default: N(() => [...o[3] ||= [c("提交", -1)]]),
|
|
757
756
|
_: 1
|
|
758
757
|
}, 8, ["icon", "size"])
|
|
759
758
|
]))], 64);
|
|
760
759
|
};
|
|
761
760
|
}
|
|
762
|
-
}), [["__scopeId", "data-v-f8f2a1f5"]]),
|
|
761
|
+
}), [["__scopeId", "data-v-f8f2a1f5"]]), Sn = ["disabled"], Q = /* @__PURE__ */ u({
|
|
763
762
|
__name: "index",
|
|
764
|
-
props: /* @__PURE__ */
|
|
763
|
+
props: /* @__PURE__ */ f({
|
|
765
764
|
defaultValue: { default: "" },
|
|
766
765
|
disabled: {
|
|
767
766
|
type: Boolean,
|
|
@@ -774,32 +773,32 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
774
773
|
},
|
|
775
774
|
modelModifiers: {}
|
|
776
775
|
}),
|
|
777
|
-
emits: /* @__PURE__ */
|
|
776
|
+
emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
|
|
778
777
|
setup(e, { emit: t }) {
|
|
779
|
-
let n =
|
|
780
|
-
return
|
|
781
|
-
|
|
778
|
+
let n = x(), r = j(e, "modelValue"), a = x(r.value || e.defaultValue || ""), o = null, s = t;
|
|
779
|
+
return _(() => {
|
|
780
|
+
o = new en({
|
|
782
781
|
element: n.value,
|
|
783
782
|
placeholder: "点击输入内容...",
|
|
784
783
|
content: r.value || e.defaultValue || "",
|
|
785
784
|
toolbarExcludeKeys: ["ai"],
|
|
786
785
|
onChange: (e) => {
|
|
787
786
|
let t = e.getHtml();
|
|
788
|
-
r.value = t,
|
|
787
|
+
r.value = t, a.value = t, s("change", t);
|
|
789
788
|
}
|
|
790
|
-
}),
|
|
791
|
-
}),
|
|
792
|
-
|
|
793
|
-
}),
|
|
794
|
-
|
|
795
|
-
}), (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", {
|
|
796
795
|
ref_key: "editorRef",
|
|
797
796
|
ref: n,
|
|
798
797
|
style: { height: "500px" },
|
|
799
798
|
disabled: e.disabled
|
|
800
|
-
}, null, 8,
|
|
799
|
+
}, null, 8, Sn));
|
|
801
800
|
}
|
|
802
|
-
}),
|
|
801
|
+
}), Cn = { class: "ui-tree-wrapper" }, wn = {
|
|
803
802
|
key: 0,
|
|
804
803
|
style: {
|
|
805
804
|
display: "flex",
|
|
@@ -808,14 +807,14 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
808
807
|
"align-items": "center",
|
|
809
808
|
gap: "10px"
|
|
810
809
|
}
|
|
811
|
-
},
|
|
810
|
+
}, Tn = {
|
|
812
811
|
key: 0,
|
|
813
812
|
class: "custom-tree-node"
|
|
814
|
-
},
|
|
813
|
+
}, En = { class: "node-label" }, Dn = { style: {
|
|
815
814
|
color: "#ef4444",
|
|
816
815
|
display: "flex",
|
|
817
816
|
"align-items": "center"
|
|
818
|
-
} },
|
|
817
|
+
} }, On = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
819
818
|
__name: "index",
|
|
820
819
|
props: {
|
|
821
820
|
id: {},
|
|
@@ -832,35 +831,35 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
832
831
|
},
|
|
833
832
|
emits: ["change"],
|
|
834
833
|
setup(e, { emit: t }) {
|
|
835
|
-
let
|
|
834
|
+
let s = o(e, [
|
|
836
835
|
"filterable",
|
|
837
836
|
"placeholder",
|
|
838
837
|
"data",
|
|
839
838
|
"props"
|
|
840
|
-
]),
|
|
841
|
-
|
|
842
|
-
e.filterable &&
|
|
839
|
+
]), u = x(""), d = x(), f = x(null);
|
|
840
|
+
M(u, (t) => {
|
|
841
|
+
e.filterable && f.value.filter(t);
|
|
843
842
|
});
|
|
844
|
-
function
|
|
843
|
+
function m(t, n) {
|
|
845
844
|
return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
|
|
846
845
|
}
|
|
847
|
-
function
|
|
848
|
-
e?.stopPropagation(),
|
|
846
|
+
function h(e, t) {
|
|
847
|
+
e?.stopPropagation(), d.value = t.id;
|
|
849
848
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
849
|
+
function g() {
|
|
850
|
+
B.prompt("请输入新的名称", "添加节点", {
|
|
852
851
|
confirmButtonText: "确定",
|
|
853
852
|
cancelButtonText: "取消",
|
|
854
853
|
callback: async (e) => {
|
|
855
854
|
if (e.action === "confirm") {
|
|
856
|
-
if (!
|
|
855
|
+
if (!s?.id) return;
|
|
857
856
|
console.log("添加 =》》", e?.value);
|
|
858
857
|
}
|
|
859
858
|
}
|
|
860
859
|
});
|
|
861
860
|
}
|
|
862
|
-
function
|
|
863
|
-
|
|
861
|
+
function _(e) {
|
|
862
|
+
B.prompt("请输入新的名称", "重命名", {
|
|
864
863
|
confirmButtonText: "确定",
|
|
865
864
|
cancelButtonText: "取消",
|
|
866
865
|
inputValue: e.label
|
|
@@ -868,18 +867,18 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
868
867
|
console.log("修改节点 =》》", e);
|
|
869
868
|
});
|
|
870
869
|
}
|
|
871
|
-
async function
|
|
870
|
+
async function v(e) {
|
|
872
871
|
e.id && console.log("删除节点 =》》", e.id);
|
|
873
872
|
}
|
|
874
|
-
return (t,
|
|
875
|
-
let
|
|
876
|
-
return
|
|
877
|
-
e.filterable ? (
|
|
878
|
-
modelValue:
|
|
879
|
-
"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,
|
|
880
879
|
placeholder: e.placeholder ?? "请输入",
|
|
881
880
|
clearable: ""
|
|
882
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
881
|
+
}, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (y(), n(x, {
|
|
883
882
|
key: 0,
|
|
884
883
|
style: {
|
|
885
884
|
margin: "0px",
|
|
@@ -887,89 +886,89 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
887
886
|
},
|
|
888
887
|
link: ""
|
|
889
888
|
}, {
|
|
890
|
-
default:
|
|
891
|
-
default:
|
|
889
|
+
default: N(() => [l(b, { size: 22 }, {
|
|
890
|
+
default: N(() => [l(A(sn), { onClick: o[1] ||= (e) => g() })]),
|
|
892
891
|
_: 1
|
|
893
892
|
})]),
|
|
894
893
|
_: 1
|
|
895
|
-
}))])) :
|
|
896
|
-
|
|
897
|
-
|
|
894
|
+
}))])) : r("", !0),
|
|
895
|
+
C(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
896
|
+
l(D, p({
|
|
898
897
|
ref_key: "treeRef",
|
|
899
|
-
ref:
|
|
898
|
+
ref: f,
|
|
900
899
|
style: { "margin-top": "8px" }
|
|
901
900
|
}, {
|
|
902
901
|
...t.$props,
|
|
903
902
|
...t.$attrs
|
|
904
903
|
}, {
|
|
905
|
-
"node-key":
|
|
904
|
+
"node-key": s?.nodeKey || "id",
|
|
906
905
|
"highlight-current": !0,
|
|
907
|
-
"filter-method":
|
|
906
|
+
"filter-method": m
|
|
908
907
|
}), {
|
|
909
|
-
default:
|
|
910
|
-
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))]),
|
|
911
910
|
_: 1
|
|
912
|
-
})) :
|
|
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, {
|
|
913
912
|
key: 0,
|
|
914
913
|
trigger: "click"
|
|
915
914
|
}, {
|
|
916
|
-
dropdown:
|
|
917
|
-
default:
|
|
918
|
-
|
|
915
|
+
dropdown: N(() => [l(T, null, {
|
|
916
|
+
default: N(() => [
|
|
917
|
+
s?.hideNodeAdd ? r("", !0) : (y(), n(S, {
|
|
919
918
|
key: 0,
|
|
920
|
-
onClick:
|
|
919
|
+
onClick: o[2] ||= (e) => g()
|
|
921
920
|
}, {
|
|
922
|
-
default:
|
|
923
|
-
default:
|
|
921
|
+
default: N(() => [l(b, null, {
|
|
922
|
+
default: N(() => [l(A(ln))]),
|
|
924
923
|
_: 1
|
|
925
|
-
}),
|
|
924
|
+
}), o[3] ||= c("添加 ", -1)]),
|
|
926
925
|
_: 1
|
|
927
926
|
})),
|
|
928
|
-
|
|
927
|
+
s?.hideNodeEdit ? r("", !0) : (y(), n(S, {
|
|
929
928
|
key: 1,
|
|
930
|
-
onClick: (e) => u
|
|
929
|
+
onClick: (e) => _(u.data)
|
|
931
930
|
}, {
|
|
932
|
-
default:
|
|
933
|
-
default:
|
|
931
|
+
default: N(() => [l(b, null, {
|
|
932
|
+
default: N(() => [l(A(un))]),
|
|
934
933
|
_: 1
|
|
935
|
-
}),
|
|
934
|
+
}), o[4] ||= c("编辑 ", -1)]),
|
|
936
935
|
_: 1
|
|
937
936
|
}, 8, ["onClick"])),
|
|
938
|
-
|
|
937
|
+
s?.hideNodeDel ? r("", !0) : (y(), n(S, {
|
|
939
938
|
key: 2,
|
|
940
|
-
onClick: (e) =>
|
|
939
|
+
onClick: (e) => v(u.data)
|
|
941
940
|
}, {
|
|
942
|
-
default:
|
|
943
|
-
default:
|
|
941
|
+
default: N(() => [a("span", Dn, [l(b, null, {
|
|
942
|
+
default: N(() => [l(A(cn))]),
|
|
944
943
|
_: 1
|
|
945
|
-
}),
|
|
944
|
+
}), o[5] ||= c("删除 ", -1)])]),
|
|
946
945
|
_: 1
|
|
947
946
|
}, 8, ["onClick"])),
|
|
948
|
-
|
|
947
|
+
C(t.$slots, "node-handle", { data: u.data }, void 0, !0)
|
|
949
948
|
]),
|
|
950
949
|
_: 2
|
|
951
950
|
}, 1024)]),
|
|
952
|
-
default:
|
|
953
|
-
default:
|
|
951
|
+
default: N(() => [l(b, { onClick: (e) => h(e, u.data) }, {
|
|
952
|
+
default: N(() => [l(A(fn))]),
|
|
954
953
|
_: 1
|
|
955
954
|
}, 8, ["onClick"])]),
|
|
956
955
|
_: 2
|
|
957
|
-
}, 1024))])) :
|
|
956
|
+
}, 1024))])) : r("", !0)]),
|
|
958
957
|
_: 3
|
|
959
958
|
}, 16, ["node-key"])
|
|
960
959
|
]);
|
|
961
960
|
};
|
|
962
961
|
}
|
|
963
|
-
}), [["__scopeId", "data-v-4495ddac"]]),
|
|
962
|
+
}), [["__scopeId", "data-v-4495ddac"]]), kn = { style: { height: "100%" } }, An = { style: {
|
|
964
963
|
display: "flex",
|
|
965
964
|
"flex-direction": "row",
|
|
966
965
|
"justify-content": "space-between",
|
|
967
966
|
"align-items": "center",
|
|
968
967
|
gap: "10px"
|
|
969
|
-
} },
|
|
968
|
+
} }, jn = { style: { margin: "10px 0px" } }, Mn = ["onClick"], Nn = { key: 0 }, Pn = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
970
969
|
__name: "index",
|
|
971
970
|
props: {
|
|
972
|
-
loading: { default: () =>
|
|
971
|
+
loading: { default: () => x(!1) },
|
|
973
972
|
data: {},
|
|
974
973
|
placeholder: {},
|
|
975
974
|
props: {},
|
|
@@ -977,47 +976,47 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
977
976
|
filterable: { type: Boolean }
|
|
978
977
|
},
|
|
979
978
|
emits: ["node-click"],
|
|
980
|
-
setup(
|
|
981
|
-
let
|
|
982
|
-
|
|
983
|
-
!
|
|
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]);
|
|
984
983
|
}, { immediate: !0 });
|
|
985
|
-
function
|
|
986
|
-
|
|
984
|
+
function f(e) {
|
|
985
|
+
u.value = e, c("node-click", e);
|
|
987
986
|
}
|
|
988
|
-
return (t,
|
|
989
|
-
let
|
|
990
|
-
return
|
|
991
|
-
|
|
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, {
|
|
992
991
|
key: 0,
|
|
993
|
-
modelValue:
|
|
994
|
-
"onUpdate:modelValue":
|
|
995
|
-
placeholder:
|
|
996
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
997
|
-
|
|
998
|
-
|
|
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({
|
|
999
998
|
class: "infinite-list",
|
|
1000
999
|
"infinite-scroll-immediate": !1
|
|
1001
|
-
}, t.$attrs), [(
|
|
1002
|
-
key: "infinite-list-" +
|
|
1003
|
-
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({
|
|
1004
1003
|
"infinite-list-item": !0,
|
|
1005
|
-
active:
|
|
1004
|
+
active: e === u.value
|
|
1006
1005
|
}),
|
|
1007
|
-
onClick: (
|
|
1008
|
-
}, [
|
|
1009
|
-
|
|
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)
|
|
1010
1009
|
]);
|
|
1011
1010
|
};
|
|
1012
1011
|
}
|
|
1013
|
-
}), [["__scopeId", "data-v-2180fa82"]]),
|
|
1012
|
+
}), [["__scopeId", "data-v-2180fa82"]]), Fn = {
|
|
1014
1013
|
key: 0,
|
|
1015
1014
|
style: {
|
|
1016
1015
|
padding: "10px 0px",
|
|
1017
1016
|
"margin-bottom": "10px",
|
|
1018
1017
|
"border-bottom": "1px solid #e5e5e5"
|
|
1019
1018
|
}
|
|
1020
|
-
},
|
|
1019
|
+
}, In = { key: 1 }, Ln = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
1021
1020
|
__name: "index",
|
|
1022
1021
|
props: {
|
|
1023
1022
|
data: {},
|
|
@@ -1030,33 +1029,33 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1030
1029
|
extra: {},
|
|
1031
1030
|
labelWidth: {}
|
|
1032
1031
|
},
|
|
1033
|
-
setup(
|
|
1034
|
-
let
|
|
1032
|
+
setup(t) {
|
|
1033
|
+
let a = o(t, [
|
|
1035
1034
|
"title",
|
|
1036
1035
|
"column",
|
|
1037
1036
|
"fields",
|
|
1038
1037
|
"data"
|
|
1039
1038
|
]);
|
|
1040
|
-
return (
|
|
1041
|
-
let
|
|
1042
|
-
return
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
default:
|
|
1047
|
-
key:
|
|
1048
|
-
label:
|
|
1049
|
-
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
|
|
1050
1049
|
}, {
|
|
1051
|
-
default:
|
|
1050
|
+
default: N(() => [e.render ? (y(), n(E(A(X)(e, t.data).component), p({
|
|
1052
1051
|
key: 0,
|
|
1053
|
-
modelValue:
|
|
1054
|
-
"onUpdate:modelValue": (n) =>
|
|
1055
|
-
}, { 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, {
|
|
1056
1055
|
clearable: !0,
|
|
1057
|
-
key:
|
|
1056
|
+
key: e.prop,
|
|
1058
1057
|
style: { display: "inline-block" }
|
|
1059
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (
|
|
1058
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span", In, O(t.data[e.prop] || "-"), 1))]),
|
|
1060
1059
|
_: 2
|
|
1061
1060
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1062
1061
|
_: 1
|
|
@@ -1064,10 +1063,10 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1064
1063
|
], 64);
|
|
1065
1064
|
};
|
|
1066
1065
|
}
|
|
1067
|
-
}), [["__scopeId", "data-v-f02c30f9"]]),
|
|
1066
|
+
}), [["__scopeId", "data-v-f02c30f9"]]), Rn = {
|
|
1068
1067
|
key: 0,
|
|
1069
1068
|
class: "dialog-footer"
|
|
1070
|
-
},
|
|
1069
|
+
}, zn = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
1071
1070
|
__name: "index",
|
|
1072
1071
|
props: {
|
|
1073
1072
|
visible: { type: Boolean },
|
|
@@ -1082,36 +1081,36 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1082
1081
|
"submit"
|
|
1083
1082
|
],
|
|
1084
1083
|
setup(e, { emit: t }) {
|
|
1085
|
-
let
|
|
1086
|
-
function
|
|
1087
|
-
|
|
1084
|
+
let a = t, o = e, s = x();
|
|
1085
|
+
function u() {
|
|
1086
|
+
a("close"), a("update:visible", !1);
|
|
1088
1087
|
}
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1088
|
+
function d() {
|
|
1089
|
+
a("submit", k(s?.value || {})), a("update:visible", !1);
|
|
1091
1090
|
}
|
|
1092
1091
|
return (e, t) => {
|
|
1093
|
-
let
|
|
1094
|
-
return
|
|
1095
|
-
"model-value":
|
|
1096
|
-
"show-close":
|
|
1097
|
-
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,
|
|
1098
1097
|
"destroy-on-close": "",
|
|
1099
1098
|
"lock-scroll": !1,
|
|
1100
1099
|
"close-on-click-modal": !1,
|
|
1101
|
-
"onUpdate:modelValue": t[0] ||= (e) => !e &&
|
|
1102
|
-
onClose:
|
|
1100
|
+
"onUpdate:modelValue": t[0] ||= (e) => !e && u(),
|
|
1101
|
+
onClose: u
|
|
1103
1102
|
}), {
|
|
1104
|
-
default:
|
|
1103
|
+
default: N(() => [(y(), n(E(o.component), p({
|
|
1105
1104
|
ref_key: "slotRef",
|
|
1106
|
-
ref:
|
|
1107
|
-
},
|
|
1108
|
-
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)]]),
|
|
1109
1108
|
_: 1
|
|
1110
|
-
}),
|
|
1109
|
+
}), l(a, {
|
|
1111
1110
|
type: "primary",
|
|
1112
|
-
onClick:
|
|
1111
|
+
onClick: d
|
|
1113
1112
|
}, {
|
|
1114
|
-
default:
|
|
1113
|
+
default: N(() => [...t[2] ||= [c("确定", -1)]]),
|
|
1115
1114
|
_: 1
|
|
1116
1115
|
})]))]),
|
|
1117
1116
|
_: 1
|
|
@@ -1125,63 +1124,63 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
|
|
|
1125
1124
|
}), [["__scopeId", "data-v-fde928bf"]]);
|
|
1126
1125
|
//#endregion
|
|
1127
1126
|
//#region src/components/utils/render.ts
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1127
|
+
function Bn(e) {
|
|
1128
|
+
return d("template", { style: {
|
|
1130
1129
|
display: "flex",
|
|
1131
1130
|
flexDirection: "row",
|
|
1132
1131
|
flexWrap: "wrap"
|
|
1133
1132
|
} }, (Array.isArray(e) ? e : [e]).map((e) => {
|
|
1134
|
-
let { text:
|
|
1135
|
-
return
|
|
1136
|
-
...
|
|
1133
|
+
let { text: t, ...n } = e;
|
|
1134
|
+
return d(me, {
|
|
1135
|
+
...n,
|
|
1137
1136
|
link: !0,
|
|
1138
1137
|
size: "small",
|
|
1139
1138
|
type: e.type || "default"
|
|
1140
|
-
}, () =>
|
|
1139
|
+
}, () => t);
|
|
1141
1140
|
}));
|
|
1142
1141
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return Array.isArray(e) ?
|
|
1142
|
+
function Vn(e) {
|
|
1143
|
+
return Array.isArray(e) ? d("div", { style: {
|
|
1145
1144
|
display: "flex",
|
|
1146
1145
|
gap: "8px",
|
|
1147
1146
|
flexDirection: "row",
|
|
1148
1147
|
flexWrap: "wrap"
|
|
1149
|
-
} }, e.map((e) =>
|
|
1148
|
+
} }, e.map((e) => d(z, {
|
|
1150
1149
|
...e,
|
|
1151
1150
|
type: e.type || "primary"
|
|
1152
|
-
},
|
|
1151
|
+
}, d(W, {
|
|
1153
1152
|
lineClamp: e?.lineClamp,
|
|
1154
1153
|
type: e.type || "primary"
|
|
1155
|
-
}, () => e.prop)))) :
|
|
1154
|
+
}, () => e.prop)))) : d(z, {
|
|
1156
1155
|
...e,
|
|
1157
1156
|
type: e.type || "primary"
|
|
1158
|
-
},
|
|
1157
|
+
}, d(W, {
|
|
1159
1158
|
lineClamp: e?.lineClamp,
|
|
1160
1159
|
type: e.type || "primary"
|
|
1161
1160
|
}, () => e.prop));
|
|
1162
1161
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return
|
|
1162
|
+
function Hn(e) {
|
|
1163
|
+
return d("div", { style: {
|
|
1165
1164
|
display: "flex",
|
|
1166
1165
|
gap: "4px",
|
|
1167
1166
|
flexDirection: "row",
|
|
1168
1167
|
flexWrap: "wrap"
|
|
1169
|
-
} }, (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)));
|
|
1170
1169
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return
|
|
1170
|
+
function Un(e) {
|
|
1171
|
+
return d(U, { ...e });
|
|
1173
1172
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1173
|
+
function Wn(e) {
|
|
1174
|
+
return d(H, {
|
|
1176
1175
|
style: { minWidth: "160px" },
|
|
1177
1176
|
...e,
|
|
1178
1177
|
placeholder: "请选择",
|
|
1179
1178
|
filterable: !0
|
|
1180
1179
|
});
|
|
1181
1180
|
}
|
|
1182
|
-
function
|
|
1181
|
+
function Gn(e) {
|
|
1183
1182
|
let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
1184
|
-
return
|
|
1183
|
+
return d(Fe, {
|
|
1185
1184
|
format: t,
|
|
1186
1185
|
valueFormat: t,
|
|
1187
1186
|
startPlaceholder: "开始时间",
|
|
@@ -1191,9 +1190,9 @@ function Je(e) {
|
|
|
1191
1190
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
1192
1191
|
});
|
|
1193
1192
|
}
|
|
1194
|
-
function
|
|
1193
|
+
function Kn(e) {
|
|
1195
1194
|
let { start: t = "00:00", end: n = "23:30", ...r } = e;
|
|
1196
|
-
return
|
|
1195
|
+
return d(G, {
|
|
1197
1196
|
start: t,
|
|
1198
1197
|
end: n,
|
|
1199
1198
|
...r,
|
|
@@ -1201,15 +1200,15 @@ function Ye(e) {
|
|
|
1201
1200
|
filterable: !0
|
|
1202
1201
|
});
|
|
1203
1202
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return
|
|
1203
|
+
function qn(e) {
|
|
1204
|
+
return d(I, {
|
|
1206
1205
|
...e,
|
|
1207
1206
|
placeholder: "请输入"
|
|
1208
1207
|
});
|
|
1209
1208
|
}
|
|
1210
|
-
function
|
|
1209
|
+
function Jn(e) {
|
|
1211
1210
|
let { align: t = "left", controlsPosition: n = "right", ...r } = e;
|
|
1212
|
-
return
|
|
1211
|
+
return d(L, {
|
|
1213
1212
|
align: t,
|
|
1214
1213
|
style: {
|
|
1215
1214
|
...e?.style || {},
|
|
@@ -1220,47 +1219,47 @@ function Ze(e) {
|
|
|
1220
1219
|
...r
|
|
1221
1220
|
});
|
|
1222
1221
|
}
|
|
1223
|
-
function
|
|
1222
|
+
function Yn(e) {
|
|
1224
1223
|
let { rows: t = 1, ...n } = e;
|
|
1225
|
-
return
|
|
1224
|
+
return d(I, {
|
|
1226
1225
|
placeholder: "请输入",
|
|
1227
1226
|
rows: t,
|
|
1228
1227
|
...n,
|
|
1229
1228
|
type: "textarea"
|
|
1230
1229
|
});
|
|
1231
1230
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1231
|
+
function Xn(e) {
|
|
1232
|
+
return d(R, {
|
|
1234
1233
|
placeholder: "请输入",
|
|
1235
1234
|
...e,
|
|
1236
1235
|
clearable: !1
|
|
1237
1236
|
});
|
|
1238
1237
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return
|
|
1238
|
+
function Zn(e) {
|
|
1239
|
+
return d(Q, e);
|
|
1241
1240
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return
|
|
1241
|
+
function Qn(e) {
|
|
1242
|
+
return d(V, e);
|
|
1244
1243
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return
|
|
1244
|
+
function $n(e) {
|
|
1245
|
+
return d(W, e, () => e.prop);
|
|
1247
1246
|
}
|
|
1248
1247
|
var $ = {
|
|
1249
|
-
button:
|
|
1250
|
-
link:
|
|
1251
|
-
tag:
|
|
1252
|
-
switch:
|
|
1253
|
-
select:
|
|
1254
|
-
datePicker:
|
|
1255
|
-
timeSelect:
|
|
1256
|
-
input:
|
|
1257
|
-
inputNumber:
|
|
1258
|
-
textarea:
|
|
1259
|
-
inputTag:
|
|
1260
|
-
editor:
|
|
1261
|
-
radio:
|
|
1262
|
-
text:
|
|
1263
|
-
},
|
|
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({
|
|
1264
1263
|
name: "UiColumn",
|
|
1265
1264
|
__name: "UiColumn",
|
|
1266
1265
|
props: {
|
|
@@ -1271,69 +1270,69 @@ var $ = {
|
|
|
1271
1270
|
size: {}
|
|
1272
1271
|
},
|
|
1273
1272
|
emits: ["update:data"],
|
|
1274
|
-
setup(
|
|
1275
|
-
let
|
|
1276
|
-
function
|
|
1277
|
-
let
|
|
1278
|
-
Object.keys($).forEach((
|
|
1279
|
-
let
|
|
1280
|
-
|
|
1281
|
-
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 : {
|
|
1282
1281
|
placeholder: "请输入",
|
|
1283
1282
|
filterable: !0,
|
|
1284
|
-
...
|
|
1285
|
-
prop:
|
|
1286
|
-
modelValue:
|
|
1287
|
-
onChange:
|
|
1288
|
-
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))
|
|
1289
1288
|
};
|
|
1290
|
-
return $[
|
|
1289
|
+
return $[a](i);
|
|
1291
1290
|
};
|
|
1292
1291
|
});
|
|
1293
|
-
let
|
|
1292
|
+
let i = n.render ? n.render({
|
|
1294
1293
|
data: e,
|
|
1295
1294
|
index: t,
|
|
1296
|
-
h:
|
|
1297
|
-
column:
|
|
1295
|
+
h: r,
|
|
1296
|
+
column: n
|
|
1298
1297
|
}) : null;
|
|
1299
|
-
return
|
|
1298
|
+
return i ? typeof i == "object" ? i : d("div", { innerHTML: String(i) }) : null;
|
|
1300
1299
|
}
|
|
1301
|
-
return (
|
|
1302
|
-
let
|
|
1303
|
-
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, {
|
|
1304
1303
|
key: 0,
|
|
1305
|
-
label:
|
|
1306
|
-
align:
|
|
1304
|
+
label: t.column.label,
|
|
1305
|
+
align: s.align
|
|
1307
1306
|
}, {
|
|
1308
|
-
default:
|
|
1307
|
+
default: N(() => [(y(!0), i(e, null, S(t.column.children, (e) => (y(), n(u, p({
|
|
1309
1308
|
column: e,
|
|
1310
|
-
data:
|
|
1311
|
-
}, { ref_for: !0 },
|
|
1309
|
+
data: s.data
|
|
1310
|
+
}, { ref_for: !0 }, a.$attrs, { align: s.align }), null, 16, [
|
|
1312
1311
|
"column",
|
|
1313
1312
|
"data",
|
|
1314
1313
|
"align"
|
|
1315
1314
|
]))), 256))]),
|
|
1316
1315
|
_: 1
|
|
1317
|
-
}, 8, ["label", "align"])) : (
|
|
1316
|
+
}, 8, ["label", "align"])) : (y(), n(d, {
|
|
1318
1317
|
key: 1,
|
|
1319
|
-
prop: String(
|
|
1320
|
-
label:
|
|
1321
|
-
"column-key": String(
|
|
1322
|
-
align:
|
|
1323
|
-
width:
|
|
1324
|
-
"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
|
|
1325
1324
|
}, {
|
|
1326
|
-
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)), {
|
|
1327
1326
|
key: 0,
|
|
1328
|
-
align:
|
|
1329
|
-
size:
|
|
1330
|
-
}, null, 8, ["align", "size"])) : (
|
|
1327
|
+
align: s.align,
|
|
1328
|
+
size: s.size
|
|
1329
|
+
}, null, 8, ["align", "size"])) : (y(), n(f, {
|
|
1331
1330
|
key: 1,
|
|
1332
|
-
"line-clamp":
|
|
1331
|
+
"line-clamp": t.column?.lineClamp || 2
|
|
1333
1332
|
}, {
|
|
1334
|
-
default:
|
|
1333
|
+
default: N(() => [c(O(a.row[t.column.prop]), 1)]),
|
|
1335
1334
|
_: 2
|
|
1336
|
-
}, 1032, ["line-clamp"]))], 64)) :
|
|
1335
|
+
}, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
|
|
1337
1336
|
_: 1
|
|
1338
1337
|
}, 8, [
|
|
1339
1338
|
"prop",
|
|
@@ -1345,7 +1344,7 @@ var $ = {
|
|
|
1345
1344
|
]));
|
|
1346
1345
|
};
|
|
1347
1346
|
}
|
|
1348
|
-
}),
|
|
1347
|
+
}), tr = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
1349
1348
|
__name: "index",
|
|
1350
1349
|
props: {
|
|
1351
1350
|
loading: {
|
|
@@ -1357,14 +1356,14 @@ var $ = {
|
|
|
1357
1356
|
default: !1
|
|
1358
1357
|
},
|
|
1359
1358
|
size: { default: "default" },
|
|
1360
|
-
data: { default: () =>
|
|
1359
|
+
data: { default: () => b([]) },
|
|
1361
1360
|
columns: {},
|
|
1362
1361
|
align: { default: "left" },
|
|
1363
1362
|
hidePagination: {
|
|
1364
1363
|
type: Boolean,
|
|
1365
1364
|
default: !1
|
|
1366
1365
|
},
|
|
1367
|
-
pagination: { default: () =>
|
|
1366
|
+
pagination: { default: () => b({
|
|
1368
1367
|
page: 1,
|
|
1369
1368
|
pageSize: 10,
|
|
1370
1369
|
total: 0,
|
|
@@ -1381,8 +1380,8 @@ var $ = {
|
|
|
1381
1380
|
rowKey: {}
|
|
1382
1381
|
},
|
|
1383
1382
|
emits: ["pagination"],
|
|
1384
|
-
setup(
|
|
1385
|
-
let
|
|
1383
|
+
setup(a, { emit: s }) {
|
|
1384
|
+
let c = s, l = o(a, [
|
|
1386
1385
|
"loading",
|
|
1387
1386
|
"border",
|
|
1388
1387
|
"align",
|
|
@@ -1390,59 +1389,59 @@ var $ = {
|
|
|
1390
1389
|
"pagination",
|
|
1391
1390
|
"data",
|
|
1392
1391
|
"size"
|
|
1393
|
-
]),
|
|
1394
|
-
|
|
1395
|
-
!e?.length || !t?.length ||
|
|
1396
|
-
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;
|
|
1397
1396
|
let n = t.filter((t) => e.includes(t.id));
|
|
1398
|
-
|
|
1397
|
+
u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
|
|
1399
1398
|
});
|
|
1400
1399
|
}, { immediate: !0 });
|
|
1401
|
-
function
|
|
1402
|
-
|
|
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));
|
|
1403
1402
|
}
|
|
1404
|
-
function
|
|
1405
|
-
|
|
1406
|
-
...
|
|
1407
|
-
[
|
|
1403
|
+
function _(e, t, n) {
|
|
1404
|
+
a.data[e] && (a.data[e] = {
|
|
1405
|
+
...a.data[e],
|
|
1406
|
+
[t]: n
|
|
1408
1407
|
});
|
|
1409
1408
|
}
|
|
1410
|
-
return (t,
|
|
1411
|
-
let
|
|
1412
|
-
return
|
|
1413
|
-
|
|
1414
|
-
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,
|
|
1415
1414
|
lazy: !0,
|
|
1416
1415
|
class: "ui-table",
|
|
1417
1416
|
fit: "",
|
|
1418
1417
|
ref_key: "tableRef",
|
|
1419
|
-
ref:
|
|
1418
|
+
ref: u
|
|
1420
1419
|
}), {
|
|
1421
|
-
default:
|
|
1422
|
-
|
|
1420
|
+
default: N(() => [
|
|
1421
|
+
f.value ? (y(), n(s, {
|
|
1423
1422
|
key: 0,
|
|
1424
1423
|
type: "selection",
|
|
1425
|
-
selectable:
|
|
1424
|
+
selectable: l.selectable,
|
|
1426
1425
|
"column-key": "selection_0",
|
|
1427
|
-
align:
|
|
1426
|
+
align: a.align,
|
|
1428
1427
|
fixed: "left"
|
|
1429
|
-
}, null, 8, ["selectable", "align"])) :
|
|
1430
|
-
|
|
1428
|
+
}, null, 8, ["selectable", "align"])) : r("", !0),
|
|
1429
|
+
d.value ? (y(), n(s, {
|
|
1431
1430
|
key: 1,
|
|
1432
1431
|
fixed: "left",
|
|
1433
1432
|
type: "index",
|
|
1434
1433
|
label: "序号",
|
|
1435
1434
|
width: "60",
|
|
1436
1435
|
"column-key": "index_1",
|
|
1437
|
-
align:
|
|
1438
|
-
}, null, 8, ["align"])) :
|
|
1439
|
-
(
|
|
1440
|
-
key:
|
|
1441
|
-
column:
|
|
1442
|
-
data:
|
|
1443
|
-
align:
|
|
1444
|
-
"onUpdate:data":
|
|
1445
|
-
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
|
|
1446
1445
|
}, null, 8, [
|
|
1447
1446
|
"column",
|
|
1448
1447
|
"data",
|
|
@@ -1451,50 +1450,165 @@ var $ = {
|
|
|
1451
1450
|
]))), 128))
|
|
1452
1451
|
]),
|
|
1453
1452
|
_: 1
|
|
1454
|
-
}, 16, ["border", "data"])), [[
|
|
1455
|
-
|
|
1453
|
+
}, 16, ["border", "data"])), [[v, a.loading]]),
|
|
1454
|
+
a.hidePagination ? r("", !0) : (y(), n(m, {
|
|
1456
1455
|
key: 0,
|
|
1457
1456
|
class: "ui-pagination",
|
|
1458
1457
|
size: "small",
|
|
1459
1458
|
background: "",
|
|
1460
1459
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
1461
|
-
"page-sizes":
|
|
1460
|
+
"page-sizes": a.pagination?.pageSizes || [
|
|
1462
1461
|
10,
|
|
1463
1462
|
20,
|
|
1464
1463
|
50
|
|
1465
1464
|
],
|
|
1466
|
-
"page-size":
|
|
1467
|
-
"onUpdate:pageSize":
|
|
1468
|
-
"current-page":
|
|
1469
|
-
"onUpdate:currentPage":
|
|
1470
|
-
total:
|
|
1471
|
-
"onUpdate:total":
|
|
1472
|
-
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
|
|
1473
1472
|
}, null, 8, [
|
|
1474
1473
|
"page-sizes",
|
|
1475
1474
|
"page-size",
|
|
1476
1475
|
"current-page",
|
|
1477
1476
|
"total"
|
|
1478
1477
|
])),
|
|
1479
|
-
|
|
1478
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
1480
1479
|
]);
|
|
1481
1480
|
};
|
|
1482
1481
|
}
|
|
1483
|
-
}), [["__scopeId", "data-v-3402edfe"]]),
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
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);
|
|
1498
1612
|
} };
|
|
1499
1613
|
//#endregion
|
|
1500
|
-
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 };
|