yc-vep-ui 0.0.9 → 0.0.10
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 +570 -541
- package/dist/vep-ui.umd.js +1 -1
- package/dist/yc-vep-ui.css +1 -1
- package/package.json +1 -1
package/dist/vep-ui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AiEditor as
|
|
4
|
-
import { init as
|
|
1
|
+
import { ElButton as e, ElCard as t, ElCol as n, ElDatePicker as r, ElDescriptions as i, ElDescriptionsItem as a, ElDialog as o, ElDropdown as s, ElDropdownItem as c, ElDropdownMenu as l, ElForm as u, ElFormItem as d, ElIcon as f, ElInput as p, ElInputNumber as m, ElInputTag as h, ElLink as g, ElMessageBox as _, ElPagination as ee, ElRadioGroup as te, ElRow as ne, ElSelect as re, ElTable as ie, ElTableColumn as ae, ElTag as v, ElText as y, ElTimeSelect as oe, ElTreeV2 as se } from "element-plus";
|
|
2
|
+
import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createPropsRestProxy as E, createSlots as ce, createTextVNode as D, createVNode as O, defineComponent as k, h as A, mergeModels as le, mergeProps as j, nextTick as ue, normalizeClass as M, normalizeStyle as N, onBeforeUnmount as de, onMounted as P, onUnmounted as fe, openBlock as F, reactive as I, ref as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDirective as pe, resolveDynamicComponent as V, setBlockTracking as me, toDisplayString as H, toValue as U, unref as W, useCssVars as he, useModel as ge, watch as G, watchEffect as _e, withCtx as K, withDirectives as ve } from "vue";
|
|
3
|
+
import { AiEditor as ye } from "aieditor";
|
|
4
|
+
import { init as be } from "echarts";
|
|
5
5
|
//#region src/components/Card/index.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var xe = { class: /* @__PURE__ */ M({ bodyClass: !0 }) }, Se = /* @__PURE__ */ k({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
@@ -12,175 +12,175 @@ var me = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, he = /* @__PURE__ */ u
|
|
|
12
12
|
icon: {}
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
let
|
|
15
|
+
let t = x(() => ({
|
|
16
16
|
display: "flex",
|
|
17
17
|
alignItems: "center",
|
|
18
18
|
gap: "4px",
|
|
19
19
|
borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
|
|
20
20
|
}));
|
|
21
|
-
return (
|
|
22
|
-
let
|
|
23
|
-
return
|
|
21
|
+
return (n, r) => {
|
|
22
|
+
let i = B("el-icon"), a = B("el-card");
|
|
23
|
+
return F(), S(a, j(n.$attrs, { class: {
|
|
24
24
|
"ui-card": !0,
|
|
25
25
|
hideBorder: e.hideBorder
|
|
26
|
-
} }),
|
|
27
|
-
default:
|
|
26
|
+
} }), ce({
|
|
27
|
+
default: K(() => [T("div", xe, [z(n.$slots, "default", {}, void 0, !0)])]),
|
|
28
28
|
_: 2
|
|
29
29
|
}, [e.title && e.title?.length > 0 ? {
|
|
30
30
|
name: "header",
|
|
31
|
-
fn:
|
|
32
|
-
default:
|
|
31
|
+
fn: K(() => [T("div", { style: N(t.value) }, [e.icon ? (F(), S(i, { key: 0 }, {
|
|
32
|
+
default: K(() => [(F(), S(V(e.icon), { color: "#2563eb" }))]),
|
|
33
33
|
_: 1
|
|
34
|
-
})) :
|
|
34
|
+
})) : C("", !0), r[0] || (me(-1, !0), (r[0] = T("h4", null, [D(H(e.title), 1)])).cacheIndex = 0, me(1), r[0])], 4)]),
|
|
35
35
|
key: "0"
|
|
36
36
|
} : void 0]), 1040, ["class"]);
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), q = (e, t) => {
|
|
40
40
|
let n = e.__vccOpts || e;
|
|
41
41
|
for (let [e, r] of t) n[e] = r;
|
|
42
42
|
return n;
|
|
43
|
-
},
|
|
43
|
+
}, Ce = /* @__PURE__ */ q(Se, [["__scopeId", "data-v-ae248017"]]), we = /* @__PURE__ */ k({
|
|
44
44
|
name: "ArrowRight",
|
|
45
45
|
__name: "arrow-right",
|
|
46
46
|
setup(e) {
|
|
47
|
-
return (e, t) => (
|
|
47
|
+
return (e, t) => (F(), w("svg", {
|
|
48
48
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49
49
|
viewBox: "0 0 1024 1024"
|
|
50
|
-
}, [
|
|
50
|
+
}, [T("path", {
|
|
51
51
|
fill: "currentColor",
|
|
52
52
|
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"
|
|
53
53
|
})]));
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), Te = /* @__PURE__ */ k({
|
|
56
56
|
name: "ArrowUp",
|
|
57
57
|
__name: "arrow-up",
|
|
58
58
|
setup(e) {
|
|
59
|
-
return (e, t) => (
|
|
59
|
+
return (e, t) => (F(), w("svg", {
|
|
60
60
|
xmlns: "http://www.w3.org/2000/svg",
|
|
61
61
|
viewBox: "0 0 1024 1024"
|
|
62
|
-
}, [
|
|
62
|
+
}, [T("path", {
|
|
63
63
|
fill: "currentColor",
|
|
64
64
|
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"
|
|
65
65
|
})]));
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
67
|
+
}), Ee = /* @__PURE__ */ k({
|
|
68
68
|
name: "CirclePlus",
|
|
69
69
|
__name: "circle-plus",
|
|
70
70
|
setup(e) {
|
|
71
|
-
return (e, t) => (
|
|
71
|
+
return (e, t) => (F(), w("svg", {
|
|
72
72
|
xmlns: "http://www.w3.org/2000/svg",
|
|
73
73
|
viewBox: "0 0 1024 1024"
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
T("path", {
|
|
76
76
|
fill: "currentColor",
|
|
77
77
|
d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
|
|
78
78
|
}),
|
|
79
|
-
|
|
79
|
+
T("path", {
|
|
80
80
|
fill: "currentColor",
|
|
81
81
|
d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
|
|
82
82
|
}),
|
|
83
|
-
|
|
83
|
+
T("path", {
|
|
84
84
|
fill: "currentColor",
|
|
85
85
|
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"
|
|
86
86
|
})
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
89
|
+
}), De = /* @__PURE__ */ k({
|
|
90
90
|
name: "Delete",
|
|
91
91
|
__name: "delete",
|
|
92
92
|
setup(e) {
|
|
93
|
-
return (e, t) => (
|
|
93
|
+
return (e, t) => (F(), w("svg", {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
viewBox: "0 0 1024 1024"
|
|
96
|
-
}, [
|
|
96
|
+
}, [T("path", {
|
|
97
97
|
fill: "currentColor",
|
|
98
98
|
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"
|
|
99
99
|
})]));
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
101
|
+
}), Oe = /* @__PURE__ */ k({
|
|
102
102
|
name: "DocumentAdd",
|
|
103
103
|
__name: "document-add",
|
|
104
104
|
setup(e) {
|
|
105
|
-
return (e, t) => (
|
|
105
|
+
return (e, t) => (F(), w("svg", {
|
|
106
106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
107
107
|
viewBox: "0 0 1024 1024"
|
|
108
|
-
}, [
|
|
108
|
+
}, [T("path", {
|
|
109
109
|
fill: "currentColor",
|
|
110
110
|
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"
|
|
111
111
|
})]));
|
|
112
112
|
}
|
|
113
|
-
}),
|
|
113
|
+
}), ke = /* @__PURE__ */ k({
|
|
114
114
|
name: "Edit",
|
|
115
115
|
__name: "edit",
|
|
116
116
|
setup(e) {
|
|
117
|
-
return (e, t) => (
|
|
117
|
+
return (e, t) => (F(), w("svg", {
|
|
118
118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
119
|
viewBox: "0 0 1024 1024"
|
|
120
|
-
}, [
|
|
120
|
+
}, [T("path", {
|
|
121
121
|
fill: "currentColor",
|
|
122
122
|
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"
|
|
123
|
-
}),
|
|
123
|
+
}), T("path", {
|
|
124
124
|
fill: "currentColor",
|
|
125
125
|
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"
|
|
126
126
|
})]));
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
128
|
+
}), Ae = /* @__PURE__ */ k({
|
|
129
129
|
name: "Folder",
|
|
130
130
|
__name: "folder",
|
|
131
131
|
setup(e) {
|
|
132
|
-
return (e, t) => (
|
|
132
|
+
return (e, t) => (F(), w("svg", {
|
|
133
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
134
|
viewBox: "0 0 1024 1024"
|
|
135
|
-
}, [
|
|
135
|
+
}, [T("path", {
|
|
136
136
|
fill: "currentColor",
|
|
137
137
|
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"
|
|
138
138
|
})]));
|
|
139
139
|
}
|
|
140
|
-
}),
|
|
140
|
+
}), je = /* @__PURE__ */ k({
|
|
141
141
|
name: "MoreFilled",
|
|
142
142
|
__name: "more-filled",
|
|
143
143
|
setup(e) {
|
|
144
|
-
return (e, t) => (
|
|
144
|
+
return (e, t) => (F(), w("svg", {
|
|
145
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
146
146
|
viewBox: "0 0 1024 1024"
|
|
147
|
-
}, [
|
|
147
|
+
}, [T("path", {
|
|
148
148
|
fill: "currentColor",
|
|
149
149
|
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"
|
|
150
150
|
})]));
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
152
|
+
}), Me = /* @__PURE__ */ k({
|
|
153
153
|
name: "Promotion",
|
|
154
154
|
__name: "promotion",
|
|
155
155
|
setup(e) {
|
|
156
|
-
return (e, t) => (
|
|
156
|
+
return (e, t) => (F(), w("svg", {
|
|
157
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
158
|
viewBox: "0 0 1024 1024"
|
|
159
|
-
}, [
|
|
159
|
+
}, [T("path", {
|
|
160
160
|
fill: "currentColor",
|
|
161
161
|
d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
|
|
162
162
|
})]));
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
164
|
+
}), Ne = /* @__PURE__ */ k({
|
|
165
165
|
name: "Refresh",
|
|
166
166
|
__name: "refresh",
|
|
167
167
|
setup(e) {
|
|
168
|
-
return (e, t) => (
|
|
168
|
+
return (e, t) => (F(), w("svg", {
|
|
169
169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
170
170
|
viewBox: "0 0 1024 1024"
|
|
171
|
-
}, [
|
|
171
|
+
}, [T("path", {
|
|
172
172
|
fill: "currentColor",
|
|
173
173
|
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"
|
|
174
174
|
})]));
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
176
|
+
}), Pe = /* @__PURE__ */ k({
|
|
177
177
|
name: "Search",
|
|
178
178
|
__name: "search",
|
|
179
179
|
setup(e) {
|
|
180
|
-
return (e, t) => (
|
|
180
|
+
return (e, t) => (F(), w("svg", {
|
|
181
181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
182
182
|
viewBox: "0 0 1024 1024"
|
|
183
|
-
}, [
|
|
183
|
+
}, [T("path", {
|
|
184
184
|
fill: "currentColor",
|
|
185
185
|
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"
|
|
186
186
|
})]));
|
|
@@ -188,13 +188,13 @@ var me = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, he = /* @__PURE__ */ u
|
|
|
188
188
|
});
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region src/components/utils/tools.ts
|
|
191
|
-
function
|
|
191
|
+
function Fe(e) {
|
|
192
192
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function J(e) {
|
|
195
195
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Y(e, t) {
|
|
198
198
|
let n = {};
|
|
199
199
|
return Object.keys(Q).forEach((r) => {
|
|
200
200
|
let i = r;
|
|
@@ -213,13 +213,13 @@ function W(e, t) {
|
|
|
213
213
|
data: t
|
|
214
214
|
}) : n.input(n.props || {}))(n);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
let n =
|
|
216
|
+
function X(e, t) {
|
|
217
|
+
let n = Y(e, t);
|
|
218
218
|
return typeof n == "object" && (n.component ||= n), n;
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
222
|
-
var
|
|
222
|
+
var Ie = { class: "filter-buttons" }, Le = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
223
223
|
name: "UiDefaultFilter",
|
|
224
224
|
__name: "index",
|
|
225
225
|
props: {
|
|
@@ -240,8 +240,8 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
240
240
|
"reset",
|
|
241
241
|
"search"
|
|
242
242
|
],
|
|
243
|
-
setup(
|
|
244
|
-
let
|
|
243
|
+
setup(e, { emit: t }) {
|
|
244
|
+
let n = t, r = E(e, [
|
|
245
245
|
"fields",
|
|
246
246
|
"labelWidth",
|
|
247
247
|
"valueWidth",
|
|
@@ -249,69 +249,69 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
249
249
|
"column",
|
|
250
250
|
"size",
|
|
251
251
|
"filterFixedValues"
|
|
252
|
-
]),
|
|
252
|
+
]), i = I({
|
|
253
253
|
expandNum: 0,
|
|
254
254
|
expand: !1
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
let t =
|
|
259
|
-
t !== void 0 && (
|
|
255
|
+
}), a = I({}), o = x(() => e.fields.slice(0, i.expand ? e.fields.length : i.expandNum)), s = x(() => 24 - o.value?.reduce((t, n) => t + (n.span || 24 / e.column), 0) % 24 - 24 / e.column);
|
|
256
|
+
P(() => {
|
|
257
|
+
i.expandNum = r?.expandNum ?? 2 * e.column - 1, e.fields.forEach((e) => {
|
|
258
|
+
let t = Y(e, a)?.props?.defaultValue;
|
|
259
|
+
t !== void 0 && (a[e.prop] = t);
|
|
260
260
|
});
|
|
261
261
|
});
|
|
262
|
-
function
|
|
263
|
-
let
|
|
264
|
-
Object.keys(
|
|
265
|
-
if (
|
|
266
|
-
let n =
|
|
267
|
-
e
|
|
262
|
+
function c() {
|
|
263
|
+
let t = {};
|
|
264
|
+
Object.keys(a).forEach((e) => {
|
|
265
|
+
if (a[e] !== void 0) {
|
|
266
|
+
let n = U(a[e]);
|
|
267
|
+
t[e] = typeof n == "string" ? n.trim() : n;
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
270
|
-
...
|
|
271
|
-
...
|
|
272
|
-
}),
|
|
273
|
-
...
|
|
274
|
-
...
|
|
269
|
+
}), n("submit", {
|
|
270
|
+
...t,
|
|
271
|
+
...e.filterFixedValues
|
|
272
|
+
}), n("search", {
|
|
273
|
+
...t,
|
|
274
|
+
...e.filterFixedValues
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
Object.keys(
|
|
279
|
-
|
|
280
|
-
}),
|
|
277
|
+
function l() {
|
|
278
|
+
Object.keys(a).forEach((t) => {
|
|
279
|
+
e.omitFields.includes(t) || (a[t] = void 0);
|
|
280
|
+
}), n("reset", a);
|
|
281
281
|
}
|
|
282
|
-
return (t,
|
|
283
|
-
let
|
|
284
|
-
return
|
|
285
|
-
model:
|
|
282
|
+
return (t, n) => {
|
|
283
|
+
let r = B("el-input"), u = B("el-form-item"), d = B("el-col"), f = B("el-button"), p = B("el-row"), m = B("el-form");
|
|
284
|
+
return F(), S(m, j({
|
|
285
|
+
model: a,
|
|
286
286
|
class: "ui-filter",
|
|
287
|
-
size:
|
|
287
|
+
size: e.size
|
|
288
288
|
}, t.$attrs), {
|
|
289
|
-
default:
|
|
290
|
-
default:
|
|
291
|
-
default:
|
|
292
|
-
key:
|
|
293
|
-
label:
|
|
294
|
-
"label-width":
|
|
295
|
-
"value-width":
|
|
289
|
+
default: K(() => [O(p, { gutter: 20 }, {
|
|
290
|
+
default: K(() => [(F(!0), w(b, null, R(o.value, (t) => (F(), S(d, { span: t.span || 24 / e.column }, {
|
|
291
|
+
default: K(() => [(F(), S(u, {
|
|
292
|
+
key: t.prop,
|
|
293
|
+
label: t.label,
|
|
294
|
+
"label-width": W(Fe)(t?.labelWidth || e.labelWidth),
|
|
295
|
+
"value-width": W(J)(t?.valueWidth || e.valueWidth)
|
|
296
296
|
}, {
|
|
297
|
-
default:
|
|
297
|
+
default: K(() => [t.render ? (F(), S(V(W(Y)(t, a).component), j({
|
|
298
298
|
key: 0,
|
|
299
|
-
modelValue:
|
|
300
|
-
"onUpdate:modelValue": (
|
|
301
|
-
}, { ref_for: !0 },
|
|
299
|
+
modelValue: a[t.prop],
|
|
300
|
+
"onUpdate:modelValue": (e) => a[t.prop] = e
|
|
301
|
+
}, { ref_for: !0 }, W(Y)(t, a).props, {
|
|
302
302
|
clearable: !0,
|
|
303
|
-
style: { width:
|
|
303
|
+
style: { width: W(J)(t?.valueWidth || e.valueWidth) }
|
|
304
304
|
}), null, 16, [
|
|
305
305
|
"modelValue",
|
|
306
306
|
"onUpdate:modelValue",
|
|
307
307
|
"style"
|
|
308
|
-
])) : (
|
|
308
|
+
])) : (F(), S(r, {
|
|
309
309
|
key: 1,
|
|
310
|
-
modelValue:
|
|
311
|
-
"onUpdate:modelValue": (
|
|
310
|
+
modelValue: a[t.prop],
|
|
311
|
+
"onUpdate:modelValue": (e) => a[t.prop] = e,
|
|
312
312
|
placeholder: "请输入",
|
|
313
313
|
clearable: !0,
|
|
314
|
-
style:
|
|
314
|
+
style: N({ width: W(J)(t?.valueWidth || e.valueWidth) })
|
|
315
315
|
}, null, 8, [
|
|
316
316
|
"modelValue",
|
|
317
317
|
"onUpdate:modelValue",
|
|
@@ -324,42 +324,42 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
324
324
|
"value-width"
|
|
325
325
|
]))]),
|
|
326
326
|
_: 2
|
|
327
|
-
}, 1032, ["span"]))), 256)),
|
|
328
|
-
span: 24 /
|
|
329
|
-
offset:
|
|
327
|
+
}, 1032, ["span"]))), 256)), O(d, {
|
|
328
|
+
span: 24 / e.column,
|
|
329
|
+
offset: s.value
|
|
330
330
|
}, {
|
|
331
|
-
default:
|
|
331
|
+
default: K(() => [O(u, {
|
|
332
332
|
label: "",
|
|
333
333
|
"label-width": "30px"
|
|
334
334
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
337
|
-
|
|
335
|
+
default: K(() => [T("div", Ie, [
|
|
336
|
+
z(t.$slots, "left", { form: a }, void 0, !0),
|
|
337
|
+
e.fields.length >= 2 * e.column ? (F(), S(f, {
|
|
338
338
|
key: 0,
|
|
339
339
|
text: "",
|
|
340
|
-
icon:
|
|
341
|
-
onClick:
|
|
340
|
+
icon: i.expand ? W(Te) : W(we),
|
|
341
|
+
onClick: n[0] ||= (e) => i.expand = !i.expand
|
|
342
342
|
}, {
|
|
343
|
-
default:
|
|
343
|
+
default: K(() => [D(H(i.expand ? "收起" : "展开"), 1)]),
|
|
344
344
|
_: 1
|
|
345
|
-
}, 8, ["icon"])) :
|
|
346
|
-
|
|
347
|
-
icon:
|
|
345
|
+
}, 8, ["icon"])) : C("", !0),
|
|
346
|
+
O(f, {
|
|
347
|
+
icon: W(Pe),
|
|
348
348
|
type: "primary",
|
|
349
|
-
onClick:
|
|
349
|
+
onClick: c
|
|
350
350
|
}, {
|
|
351
|
-
default:
|
|
351
|
+
default: K(() => [...n[1] ||= [D("查询", -1)]]),
|
|
352
352
|
_: 1
|
|
353
353
|
}, 8, ["icon"]),
|
|
354
|
-
|
|
355
|
-
icon:
|
|
356
|
-
onClick:
|
|
354
|
+
O(f, {
|
|
355
|
+
icon: W(Ne),
|
|
356
|
+
onClick: l
|
|
357
357
|
}, {
|
|
358
|
-
default:
|
|
358
|
+
default: K(() => [...n[2] ||= [D("重置", -1)]]),
|
|
359
359
|
_: 1
|
|
360
360
|
}, 8, ["icon"]),
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
z(t.$slots, "handle", { form: a }, void 0, !0),
|
|
362
|
+
z(t.$slots, "right", { form: a }, void 0, !0)
|
|
363
363
|
])]),
|
|
364
364
|
_: 3
|
|
365
365
|
})]),
|
|
@@ -371,16 +371,16 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
371
371
|
}, 16, ["model", "size"]);
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
}), [["__scopeId", "data-v-
|
|
374
|
+
}), [["__scopeId", "data-v-45f0642b"]]), Re = {
|
|
375
375
|
key: 0,
|
|
376
376
|
style: { display: "inline-block" }
|
|
377
|
-
},
|
|
377
|
+
}, ze = {
|
|
378
378
|
key: 0,
|
|
379
379
|
style: { display: "inline-block" }
|
|
380
|
-
},
|
|
380
|
+
}, Be = {
|
|
381
381
|
key: 0,
|
|
382
382
|
class: "ui-form-buttons"
|
|
383
|
-
},
|
|
383
|
+
}, Ve = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
384
384
|
__name: "index",
|
|
385
385
|
props: {
|
|
386
386
|
fields: {},
|
|
@@ -389,7 +389,7 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
389
389
|
labelWidth: { default: "100px" },
|
|
390
390
|
labelPosition: { default: "top" },
|
|
391
391
|
omitFields: { default: () => [] },
|
|
392
|
-
rules: { default: () =>
|
|
392
|
+
rules: { default: () => I({}) },
|
|
393
393
|
required: { type: Boolean },
|
|
394
394
|
column: { default: 24 },
|
|
395
395
|
defaultValues: {},
|
|
@@ -398,9 +398,9 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
398
398
|
size: {}
|
|
399
399
|
},
|
|
400
400
|
emits: ["submit", "reset"],
|
|
401
|
-
setup(
|
|
402
|
-
|
|
403
|
-
let
|
|
401
|
+
setup(e, { expose: t, emit: n }) {
|
|
402
|
+
he((e) => ({ ec46e5ec: e.column / 2 }));
|
|
403
|
+
let r = n, i = E(e, [
|
|
404
404
|
"fields",
|
|
405
405
|
"labelWidth",
|
|
406
406
|
"valueWidth",
|
|
@@ -409,121 +409,121 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
409
409
|
"labelPosition",
|
|
410
410
|
"valueModel",
|
|
411
411
|
"column"
|
|
412
|
-
]),
|
|
413
|
-
let
|
|
414
|
-
return
|
|
415
|
-
let n =
|
|
416
|
-
|
|
417
|
-
let n =
|
|
418
|
-
|
|
412
|
+
]), a = L(0), o = L(), s = I({}), c = x(() => {
|
|
413
|
+
let t = U(s);
|
|
414
|
+
return e.fields.forEach((e) => {
|
|
415
|
+
let n = e.prop ? t?.[e.prop] : void 0, r = X(e, s)?.props?.defaultValue;
|
|
416
|
+
s[e.prop] = n ?? r ?? void 0, e?.slots && e?.slots?.length > 0 && e.slots.forEach((e) => {
|
|
417
|
+
let n = e.prop ? t?.[e.prop] : void 0, r = X(e, s)?.props?.defaultValue;
|
|
418
|
+
s[e.prop] = n ?? r ?? void 0;
|
|
419
419
|
});
|
|
420
|
-
}),
|
|
421
|
-
}),
|
|
422
|
-
if (
|
|
423
|
-
let
|
|
424
|
-
return
|
|
425
|
-
|
|
420
|
+
}), e.fields.filter((e) => typeof e.prop == "string");
|
|
421
|
+
}), l = x(() => {
|
|
422
|
+
if (e.rules && Object.keys(e.rules).length) return e.rules;
|
|
423
|
+
let t = {};
|
|
424
|
+
return c.value.forEach((e) => {
|
|
425
|
+
e.rules && Object.keys(e.rules).length ? t[e.prop] = e.rules : e.required && (t[e.prop] = [{
|
|
426
426
|
required: !0,
|
|
427
|
-
message: "请输入" +
|
|
427
|
+
message: "请输入" + e.label,
|
|
428
428
|
trigger: "change"
|
|
429
429
|
}]);
|
|
430
|
-
}),
|
|
430
|
+
}), t;
|
|
431
431
|
});
|
|
432
|
-
|
|
433
|
-
Object.assign(
|
|
432
|
+
_e(() => {
|
|
433
|
+
Object.assign(s, i?.form);
|
|
434
434
|
});
|
|
435
|
-
async function
|
|
435
|
+
async function u(e) {
|
|
436
436
|
let t = !0;
|
|
437
437
|
if (await e.validate((e) => {
|
|
438
438
|
t = e;
|
|
439
439
|
}), !t) return;
|
|
440
440
|
let n = {};
|
|
441
|
-
Object.keys(
|
|
442
|
-
|
|
443
|
-
}),
|
|
441
|
+
Object.keys(s).forEach((e) => {
|
|
442
|
+
s[e] !== void 0 && (n[e] = U(s[e]));
|
|
443
|
+
}), r("submit", n);
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
|
|
445
|
+
function d() {
|
|
446
|
+
o && o.value?.clearValidate();
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
Object.keys(
|
|
450
|
-
|
|
451
|
-
}),
|
|
448
|
+
function f() {
|
|
449
|
+
Object.keys(s).forEach((t) => {
|
|
450
|
+
e.omitFields.includes(t) || (s[t] = void 0);
|
|
451
|
+
}), a.value += 1, r("reset", s);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
453
|
+
function p() {
|
|
454
|
+
return s;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function m(e) {
|
|
457
457
|
Object.keys(e).forEach((t) => {
|
|
458
|
-
|
|
458
|
+
s[t] = e[t];
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
|
-
async function
|
|
461
|
+
async function h() {
|
|
462
462
|
return new Promise((e) => {
|
|
463
|
-
|
|
463
|
+
o.value?.validate((t, n) => e(n));
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
|
-
return
|
|
467
|
-
getValues:
|
|
468
|
-
setValues:
|
|
469
|
-
clearValidate:
|
|
470
|
-
onSubmit:
|
|
471
|
-
validate:
|
|
472
|
-
}), (t,
|
|
473
|
-
let
|
|
474
|
-
return
|
|
466
|
+
return t({
|
|
467
|
+
getValues: p,
|
|
468
|
+
setValues: m,
|
|
469
|
+
clearValidate: d,
|
|
470
|
+
onSubmit: u,
|
|
471
|
+
validate: h
|
|
472
|
+
}), (t, n) => {
|
|
473
|
+
let r = B("el-input"), i = B("el-form-item"), d = B("el-form"), p = B("el-button");
|
|
474
|
+
return F(), w(b, null, [O(d, j({
|
|
475
475
|
ref_key: "uiFormRef",
|
|
476
|
-
ref:
|
|
477
|
-
model:
|
|
476
|
+
ref: o,
|
|
477
|
+
model: s
|
|
478
478
|
}, t.$attrs, {
|
|
479
|
-
rules:
|
|
480
|
-
inline:
|
|
481
|
-
"label-position":
|
|
479
|
+
rules: l.value,
|
|
480
|
+
inline: e.labelPosition !== "top",
|
|
481
|
+
"label-position": e.labelPosition,
|
|
482
482
|
class: {
|
|
483
483
|
"ui-form": !0,
|
|
484
|
-
horizontal:
|
|
484
|
+
horizontal: e.labelPosition !== "top"
|
|
485
485
|
},
|
|
486
486
|
"validate-on-rule-change": !1
|
|
487
487
|
}), {
|
|
488
|
-
default:
|
|
489
|
-
key:
|
|
490
|
-
label:
|
|
491
|
-
"label-width":
|
|
492
|
-
"value-width":
|
|
493
|
-
prop:
|
|
494
|
-
style:
|
|
495
|
-
width: `${
|
|
496
|
-
gridColumn: `span ${(
|
|
488
|
+
default: K(() => [(F(!0), w(b, null, R(c.value, (n) => (F(), S(i, {
|
|
489
|
+
key: n.prop,
|
|
490
|
+
label: n.label,
|
|
491
|
+
"label-width": e.labelWidth,
|
|
492
|
+
"value-width": e.valueWidth,
|
|
493
|
+
prop: n.prop,
|
|
494
|
+
style: N({
|
|
495
|
+
width: `${n?.width ? n?.width + "px" : "100%"}`,
|
|
496
|
+
gridColumn: `span ${(n?.span || e.column) / 2 || 1}`
|
|
497
497
|
})
|
|
498
498
|
}, {
|
|
499
|
-
default:
|
|
499
|
+
default: K(() => [n.render ? (F(), w(b, { key: 0 }, [W(X)(n, s).component ? (F(), S(V(W(X)(n, s).component), j({
|
|
500
500
|
key: 1,
|
|
501
|
-
modelValue:
|
|
502
|
-
"onUpdate:modelValue": (e) =>
|
|
503
|
-
}, { ref_for: !0 },
|
|
501
|
+
modelValue: s[n.prop],
|
|
502
|
+
"onUpdate:modelValue": (e) => s[n.prop] = e
|
|
503
|
+
}, { ref_for: !0 }, W(X)(n, s).props, {
|
|
504
504
|
clearable: !0,
|
|
505
|
-
key: `${
|
|
505
|
+
key: `${n.prop}-${a.value}`,
|
|
506
506
|
style: { display: "inline-block" },
|
|
507
|
-
class: { underline:
|
|
507
|
+
class: { underline: e.valueModel === "underline" }
|
|
508
508
|
}), null, 16, [
|
|
509
509
|
"modelValue",
|
|
510
510
|
"onUpdate:modelValue",
|
|
511
511
|
"class"
|
|
512
|
-
])) : (
|
|
512
|
+
])) : (F(), w("span", Re, H(W(X)(n, s) || "-"), 1)), (F(!0), w(b, null, R(n.slots, (n) => z(t.$slots, "default", { form: s }, () => [W(X)(n, s).component ? (F(), S(V(W(X)(n, s).component), j({
|
|
513
513
|
key: 1,
|
|
514
|
-
modelValue:
|
|
515
|
-
"onUpdate:modelValue": (
|
|
516
|
-
"default-value":
|
|
517
|
-
placeholder:
|
|
518
|
-
}, { ref_for: !0 },
|
|
514
|
+
modelValue: s[n.prop],
|
|
515
|
+
"onUpdate:modelValue": (e) => s[n.prop] = e,
|
|
516
|
+
"default-value": n.defaultValue,
|
|
517
|
+
placeholder: n.placeholder
|
|
518
|
+
}, { ref_for: !0 }, W(X)(n, s).props, {
|
|
519
519
|
style: {
|
|
520
520
|
display: "inline-block",
|
|
521
521
|
marginLeft: "10px",
|
|
522
|
-
width: `${
|
|
522
|
+
width: `${n.width ? n.width + "px" : "100%"}`
|
|
523
523
|
},
|
|
524
|
-
class: { underline:
|
|
524
|
+
class: { underline: e.valueModel === "underline" },
|
|
525
525
|
clearable: !0,
|
|
526
|
-
key: `${
|
|
526
|
+
key: `${n.prop}-${a.value}`
|
|
527
527
|
}), null, 16, [
|
|
528
528
|
"modelValue",
|
|
529
529
|
"onUpdate:modelValue",
|
|
@@ -531,13 +531,13 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
531
531
|
"placeholder",
|
|
532
532
|
"style",
|
|
533
533
|
"class"
|
|
534
|
-
])) : (
|
|
534
|
+
])) : (F(), w("span", ze, H(W(X)(n, s) || "-"), 1))], !0)), 256))], 64)) : (F(), S(r, {
|
|
535
535
|
key: 1,
|
|
536
|
-
modelValue:
|
|
537
|
-
"onUpdate:modelValue": (e) =>
|
|
536
|
+
modelValue: s[n.prop],
|
|
537
|
+
"onUpdate:modelValue": (e) => s[n.prop] = e,
|
|
538
538
|
placeholder: "请输入",
|
|
539
539
|
clearable: !0,
|
|
540
|
-
class:
|
|
540
|
+
class: M({ underline: e.valueModel === "underline" })
|
|
541
541
|
}, null, 8, [
|
|
542
542
|
"modelValue",
|
|
543
543
|
"onUpdate:modelValue",
|
|
@@ -558,31 +558,31 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
558
558
|
"inline",
|
|
559
559
|
"label-position",
|
|
560
560
|
"class"
|
|
561
|
-
]), t.$attrs?.hideHandle ?
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
icon:
|
|
565
|
-
onClick:
|
|
561
|
+
]), t.$attrs?.hideHandle ? C("", !0) : (F(), w("div", Be, [
|
|
562
|
+
z(t.$slots, "handle", { form: s }, void 0, !0),
|
|
563
|
+
O(p, {
|
|
564
|
+
icon: W(Ne),
|
|
565
|
+
onClick: n[0] ||= (e) => o.value && f(),
|
|
566
566
|
size: t.$props.size
|
|
567
567
|
}, {
|
|
568
|
-
default:
|
|
568
|
+
default: K(() => [...n[2] ||= [D("重置", -1)]]),
|
|
569
569
|
_: 1
|
|
570
570
|
}, 8, ["icon", "size"]),
|
|
571
|
-
|
|
572
|
-
icon:
|
|
571
|
+
O(p, {
|
|
572
|
+
icon: W(Me),
|
|
573
573
|
type: "primary",
|
|
574
|
-
onClick:
|
|
574
|
+
onClick: n[1] ||= (e) => o.value && u(o.value),
|
|
575
575
|
size: t.$props.size
|
|
576
576
|
}, {
|
|
577
|
-
default:
|
|
577
|
+
default: K(() => [...n[3] ||= [D("提交", -1)]]),
|
|
578
578
|
_: 1
|
|
579
579
|
}, 8, ["icon", "size"])
|
|
580
580
|
]))], 64);
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
}), [["__scopeId", "data-v-f8f2a1f5"]]),
|
|
583
|
+
}), [["__scopeId", "data-v-f8f2a1f5"]]), He = ["disabled"], Z = /* @__PURE__ */ k({
|
|
584
584
|
__name: "index",
|
|
585
|
-
props: /* @__PURE__ */
|
|
585
|
+
props: /* @__PURE__ */ le({
|
|
586
586
|
defaultValue: { default: "" },
|
|
587
587
|
disabled: {
|
|
588
588
|
type: Boolean,
|
|
@@ -595,32 +595,32 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
595
595
|
},
|
|
596
596
|
modelModifiers: {}
|
|
597
597
|
}),
|
|
598
|
-
emits: /* @__PURE__ */
|
|
598
|
+
emits: /* @__PURE__ */ le(["change"], ["update:modelValue"]),
|
|
599
599
|
setup(e, { emit: t }) {
|
|
600
|
-
let n =
|
|
601
|
-
return
|
|
602
|
-
|
|
600
|
+
let n = L(), r = ge(e, "modelValue"), i = L(r.value || e.defaultValue || ""), a = null, o = t;
|
|
601
|
+
return P(() => {
|
|
602
|
+
a = new ye({
|
|
603
603
|
element: n.value,
|
|
604
604
|
placeholder: "点击输入内容...",
|
|
605
605
|
content: r.value || e.defaultValue || "",
|
|
606
606
|
toolbarExcludeKeys: ["ai"],
|
|
607
607
|
onChange: (e) => {
|
|
608
608
|
let t = e.getHtml();
|
|
609
|
-
r.value = t,
|
|
609
|
+
r.value = t, i.value = t, o("change", t);
|
|
610
610
|
}
|
|
611
|
-
}),
|
|
612
|
-
}),
|
|
613
|
-
|
|
614
|
-
}),
|
|
615
|
-
|
|
616
|
-
}), (t, r) => (
|
|
611
|
+
}), a.setEditable(!e.disabled);
|
|
612
|
+
}), G(r, (e) => {
|
|
613
|
+
a && e !== a.getHtml() && a.setContent(e);
|
|
614
|
+
}), fe(() => {
|
|
615
|
+
a && a.destroy();
|
|
616
|
+
}), (t, r) => (F(), w("div", {
|
|
617
617
|
ref_key: "editorRef",
|
|
618
618
|
ref: n,
|
|
619
619
|
style: { height: "500px" },
|
|
620
620
|
disabled: e.disabled
|
|
621
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, He));
|
|
622
622
|
}
|
|
623
|
-
}),
|
|
623
|
+
}), Ue = { class: "ui-tree-wrapper" }, We = {
|
|
624
624
|
key: 0,
|
|
625
625
|
style: {
|
|
626
626
|
display: "flex",
|
|
@@ -629,14 +629,14 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
629
629
|
"align-items": "center",
|
|
630
630
|
gap: "10px"
|
|
631
631
|
}
|
|
632
|
-
},
|
|
632
|
+
}, Ge = {
|
|
633
633
|
key: 0,
|
|
634
634
|
class: "custom-tree-node"
|
|
635
|
-
},
|
|
635
|
+
}, Ke = { class: "node-label" }, qe = { style: {
|
|
636
636
|
color: "#ef4444",
|
|
637
637
|
display: "flex",
|
|
638
638
|
"align-items": "center"
|
|
639
|
-
} },
|
|
639
|
+
} }, Je = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
640
640
|
__name: "index",
|
|
641
641
|
props: {
|
|
642
642
|
id: {},
|
|
@@ -653,35 +653,35 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
653
653
|
},
|
|
654
654
|
emits: ["change"],
|
|
655
655
|
setup(e, { emit: t }) {
|
|
656
|
-
let
|
|
656
|
+
let n = E(e, [
|
|
657
657
|
"filterable",
|
|
658
658
|
"placeholder",
|
|
659
659
|
"data",
|
|
660
660
|
"props"
|
|
661
|
-
]),
|
|
662
|
-
|
|
663
|
-
e.filterable &&
|
|
661
|
+
]), r = L(""), i = L(), a = L(null);
|
|
662
|
+
G(r, (t) => {
|
|
663
|
+
e.filterable && a.value.filter(t);
|
|
664
664
|
});
|
|
665
|
-
function
|
|
665
|
+
function o(t, n) {
|
|
666
666
|
return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
e?.stopPropagation(),
|
|
668
|
+
function s(e, t) {
|
|
669
|
+
e?.stopPropagation(), i.value = t.id;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
|
|
671
|
+
function c() {
|
|
672
|
+
_.prompt("请输入新的名称", "添加节点", {
|
|
673
673
|
confirmButtonText: "确定",
|
|
674
674
|
cancelButtonText: "取消",
|
|
675
675
|
callback: async (e) => {
|
|
676
676
|
if (e.action === "confirm") {
|
|
677
|
-
if (!
|
|
677
|
+
if (!n?.id) return;
|
|
678
678
|
console.log("添加 =》》", e?.value);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
|
|
683
|
+
function l(e) {
|
|
684
|
+
_.prompt("请输入新的名称", "重命名", {
|
|
685
685
|
confirmButtonText: "确定",
|
|
686
686
|
cancelButtonText: "取消",
|
|
687
687
|
inputValue: e.label
|
|
@@ -689,18 +689,18 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
689
689
|
console.log("修改节点 =》》", e);
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
|
-
async function
|
|
692
|
+
async function u(e) {
|
|
693
693
|
e.id && console.log("删除节点 =》》", e.id);
|
|
694
694
|
}
|
|
695
|
-
return (t,
|
|
696
|
-
let d =
|
|
697
|
-
return
|
|
698
|
-
e.filterable ? (
|
|
699
|
-
modelValue:
|
|
700
|
-
"onUpdate:modelValue":
|
|
695
|
+
return (t, i) => {
|
|
696
|
+
let d = B("el-input"), f = B("el-icon"), p = B("el-button"), m = B("el-dropdown-item"), h = B("el-dropdown-menu"), g = B("el-dropdown"), _ = B("el-tree-v2");
|
|
697
|
+
return F(), w("div", Ue, [
|
|
698
|
+
e.filterable ? (F(), w("div", We, [O(d, {
|
|
699
|
+
modelValue: r.value,
|
|
700
|
+
"onUpdate:modelValue": i[0] ||= (e) => r.value = e,
|
|
701
701
|
placeholder: e.placeholder ?? "请输入",
|
|
702
702
|
clearable: ""
|
|
703
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
703
|
+
}, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? C("", !0) : (F(), S(p, {
|
|
704
704
|
key: 0,
|
|
705
705
|
style: {
|
|
706
706
|
margin: "0px",
|
|
@@ -708,89 +708,89 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
708
708
|
},
|
|
709
709
|
link: ""
|
|
710
710
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
default:
|
|
711
|
+
default: K(() => [O(f, { size: 22 }, {
|
|
712
|
+
default: K(() => [O(W(Ee), { onClick: i[1] ||= (e) => c() })]),
|
|
713
713
|
_: 1
|
|
714
714
|
})]),
|
|
715
715
|
_: 1
|
|
716
|
-
}))])) :
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
}))])) : C("", !0),
|
|
717
|
+
z(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
718
|
+
O(_, j({
|
|
719
719
|
ref_key: "treeRef",
|
|
720
|
-
ref:
|
|
720
|
+
ref: a,
|
|
721
721
|
style: { "margin-top": "8px" }
|
|
722
722
|
}, {
|
|
723
723
|
...t.$props,
|
|
724
724
|
...t.$attrs
|
|
725
725
|
}, {
|
|
726
|
-
"node-key":
|
|
726
|
+
"node-key": n?.nodeKey || "id",
|
|
727
727
|
"highlight-current": !0,
|
|
728
|
-
"filter-method":
|
|
728
|
+
"filter-method": o
|
|
729
729
|
}), {
|
|
730
|
-
default:
|
|
731
|
-
default:
|
|
730
|
+
default: K((r) => [r?.data ? (F(), w("div", Ge, [T("div", Ke, [r.data?.children?.length ? (F(), S(f, { key: 0 }, {
|
|
731
|
+
default: K(() => [O(W(Ae))]),
|
|
732
732
|
_: 1
|
|
733
|
-
})) :
|
|
733
|
+
})) : C("", !0), D(" " + H(r.data?.[e.props?.label || "label"]) + " " + H(r.data?.children?.length ? `(${r.data.children.length})` : ""), 1)]), n.hideNodeHandle ? C("", !0) : (F(), S(g, {
|
|
734
734
|
key: 0,
|
|
735
735
|
trigger: "click"
|
|
736
736
|
}, {
|
|
737
|
-
dropdown:
|
|
738
|
-
default:
|
|
739
|
-
|
|
737
|
+
dropdown: K(() => [O(h, null, {
|
|
738
|
+
default: K(() => [
|
|
739
|
+
n?.hideNodeAdd ? C("", !0) : (F(), S(m, {
|
|
740
740
|
key: 0,
|
|
741
|
-
onClick:
|
|
741
|
+
onClick: i[2] ||= (e) => c()
|
|
742
742
|
}, {
|
|
743
|
-
default:
|
|
744
|
-
default:
|
|
743
|
+
default: K(() => [O(f, null, {
|
|
744
|
+
default: K(() => [O(W(Oe))]),
|
|
745
745
|
_: 1
|
|
746
|
-
}),
|
|
746
|
+
}), i[3] ||= D("添加 ", -1)]),
|
|
747
747
|
_: 1
|
|
748
748
|
})),
|
|
749
|
-
|
|
749
|
+
n?.hideNodeEdit ? C("", !0) : (F(), S(m, {
|
|
750
750
|
key: 1,
|
|
751
|
-
onClick: (e) =>
|
|
751
|
+
onClick: (e) => l(r.data)
|
|
752
752
|
}, {
|
|
753
|
-
default:
|
|
754
|
-
default:
|
|
753
|
+
default: K(() => [O(f, null, {
|
|
754
|
+
default: K(() => [O(W(ke))]),
|
|
755
755
|
_: 1
|
|
756
|
-
}),
|
|
756
|
+
}), i[4] ||= D("编辑 ", -1)]),
|
|
757
757
|
_: 1
|
|
758
758
|
}, 8, ["onClick"])),
|
|
759
|
-
|
|
759
|
+
n?.hideNodeDel ? C("", !0) : (F(), S(m, {
|
|
760
760
|
key: 2,
|
|
761
|
-
onClick: (e) =>
|
|
761
|
+
onClick: (e) => u(r.data)
|
|
762
762
|
}, {
|
|
763
|
-
default:
|
|
764
|
-
default:
|
|
763
|
+
default: K(() => [T("span", qe, [O(f, null, {
|
|
764
|
+
default: K(() => [O(W(De))]),
|
|
765
765
|
_: 1
|
|
766
|
-
}),
|
|
766
|
+
}), i[5] ||= D("删除 ", -1)])]),
|
|
767
767
|
_: 1
|
|
768
768
|
}, 8, ["onClick"])),
|
|
769
|
-
|
|
769
|
+
z(t.$slots, "node-handle", { data: r.data }, void 0, !0)
|
|
770
770
|
]),
|
|
771
771
|
_: 2
|
|
772
772
|
}, 1024)]),
|
|
773
|
-
default:
|
|
774
|
-
default:
|
|
773
|
+
default: K(() => [O(f, { onClick: (e) => s(e, r.data) }, {
|
|
774
|
+
default: K(() => [O(W(je))]),
|
|
775
775
|
_: 1
|
|
776
776
|
}, 8, ["onClick"])]),
|
|
777
777
|
_: 2
|
|
778
|
-
}, 1024))])) :
|
|
778
|
+
}, 1024))])) : C("", !0)]),
|
|
779
779
|
_: 3
|
|
780
780
|
}, 16, ["node-key"])
|
|
781
781
|
]);
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
}), [["__scopeId", "data-v-4495ddac"]]),
|
|
784
|
+
}), [["__scopeId", "data-v-4495ddac"]]), Ye = { style: { height: "100%" } }, Xe = { style: {
|
|
785
785
|
display: "flex",
|
|
786
786
|
"flex-direction": "row",
|
|
787
787
|
"justify-content": "space-between",
|
|
788
788
|
"align-items": "center",
|
|
789
789
|
gap: "10px"
|
|
790
|
-
} },
|
|
790
|
+
} }, Ze = { style: { margin: "10px 0px" } }, Qe = ["onClick"], $e = { key: 0 }, et = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
791
791
|
__name: "index",
|
|
792
792
|
props: {
|
|
793
|
-
loading: { default: () =>
|
|
793
|
+
loading: { default: () => L(!1) },
|
|
794
794
|
data: {},
|
|
795
795
|
placeholder: {},
|
|
796
796
|
props: {},
|
|
@@ -798,47 +798,47 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
798
798
|
filterable: { type: Boolean }
|
|
799
799
|
},
|
|
800
800
|
emits: ["node-click"],
|
|
801
|
-
setup(
|
|
802
|
-
let
|
|
803
|
-
|
|
804
|
-
!
|
|
801
|
+
setup(e, { emit: t }) {
|
|
802
|
+
let n = t, r = L(""), i = L(), a = x(() => r.value ? e.data.filter((t) => t[e.props?.label || "label"]?.includes(r.value)) : e.data);
|
|
803
|
+
G(() => [i.value, e.data?.[0]], (t) => {
|
|
804
|
+
!t[0] && t[1] && (i.value = e.data?.[0]);
|
|
805
805
|
}, { immediate: !0 });
|
|
806
|
-
function
|
|
807
|
-
|
|
806
|
+
function o(e) {
|
|
807
|
+
i.value = e, n("node-click", e);
|
|
808
808
|
}
|
|
809
|
-
return (t,
|
|
810
|
-
let
|
|
811
|
-
return
|
|
812
|
-
|
|
809
|
+
return (t, n) => {
|
|
810
|
+
let s = B("el-input");
|
|
811
|
+
return F(), w("div", Ye, [
|
|
812
|
+
T("div", Xe, [e.filterable ? (F(), S(s, {
|
|
813
813
|
key: 0,
|
|
814
|
-
modelValue:
|
|
815
|
-
"onUpdate:modelValue":
|
|
816
|
-
placeholder:
|
|
817
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
818
|
-
|
|
819
|
-
|
|
814
|
+
modelValue: r.value,
|
|
815
|
+
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
816
|
+
placeholder: e.placeholder ?? "请输入"
|
|
817
|
+
}, null, 8, ["modelValue", "placeholder"])) : C("", !0), z(t.$slots, "plus", {}, void 0, !0)]),
|
|
818
|
+
T("div", Ze, [z(t.$slots, "handle", {}, void 0, !0)]),
|
|
819
|
+
ve((F(), w("ul", j({
|
|
820
820
|
class: "infinite-list",
|
|
821
821
|
"infinite-scroll-immediate": !1
|
|
822
|
-
}, t.$attrs), [(
|
|
823
|
-
key: "infinite-list-" +
|
|
824
|
-
class:
|
|
822
|
+
}, t.$attrs), [(F(!0), w(b, null, R(a.value, (n, r) => (F(), w("li", {
|
|
823
|
+
key: "infinite-list-" + r,
|
|
824
|
+
class: M({
|
|
825
825
|
"infinite-list-item": !0,
|
|
826
|
-
active:
|
|
826
|
+
active: n === i.value
|
|
827
827
|
}),
|
|
828
|
-
onClick: (
|
|
829
|
-
}, [
|
|
830
|
-
|
|
828
|
+
onClick: (e) => o(n)
|
|
829
|
+
}, [T("span", null, H(n[e.props?.label || "label"]), 1), z(t.$slots, "itemHandle", { data: n }, void 0, !0)], 10, Qe))), 128))], 16)), [[W(e.vInfiniteScroll), e.vInfiniteScroll]]),
|
|
830
|
+
e.loading.value ? (F(), w("p", $e, "loading...")) : C("", !0)
|
|
831
831
|
]);
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
|
-
}), [["__scopeId", "data-v-2180fa82"]]),
|
|
834
|
+
}), [["__scopeId", "data-v-2180fa82"]]), tt = {
|
|
835
835
|
key: 0,
|
|
836
836
|
style: {
|
|
837
837
|
padding: "10px 0px",
|
|
838
838
|
"margin-bottom": "10px",
|
|
839
839
|
"border-bottom": "1px solid #e5e5e5"
|
|
840
840
|
}
|
|
841
|
-
},
|
|
841
|
+
}, nt = { key: 1 }, rt = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
842
842
|
__name: "index",
|
|
843
843
|
props: {
|
|
844
844
|
data: {},
|
|
@@ -851,33 +851,33 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
851
851
|
extra: {},
|
|
852
852
|
labelWidth: {}
|
|
853
853
|
},
|
|
854
|
-
setup(
|
|
855
|
-
let
|
|
854
|
+
setup(e) {
|
|
855
|
+
let t = E(e, [
|
|
856
856
|
"title",
|
|
857
857
|
"column",
|
|
858
858
|
"fields",
|
|
859
859
|
"data"
|
|
860
860
|
]);
|
|
861
|
-
return (
|
|
862
|
-
let
|
|
863
|
-
return
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
default:
|
|
868
|
-
key:
|
|
869
|
-
label:
|
|
870
|
-
span:
|
|
861
|
+
return (n, r) => {
|
|
862
|
+
let i = B("el-descriptions-item"), a = B("el-descriptions");
|
|
863
|
+
return F(), w(b, null, [
|
|
864
|
+
e.title ? (F(), w("h4", tt, H(e.title), 1)) : C("", !0),
|
|
865
|
+
z(n.$slots, "title", {}, void 0, !0),
|
|
866
|
+
O(a, j({ column: e.column }, t, { class: "ui-descriptions" }), {
|
|
867
|
+
default: K(() => [(F(!0), w(b, null, R(e.fields, (t) => (F(), S(i, {
|
|
868
|
+
key: t.prop,
|
|
869
|
+
label: t.label,
|
|
870
|
+
span: t.span || 2
|
|
871
871
|
}, {
|
|
872
|
-
default:
|
|
872
|
+
default: K(() => [t.render ? (F(), S(V(W(Y)(t, e.data).component), j({
|
|
873
873
|
key: 0,
|
|
874
|
-
modelValue:
|
|
875
|
-
"onUpdate:modelValue": (n) =>
|
|
876
|
-
}, { ref_for: !0 },
|
|
874
|
+
modelValue: e.data[t.prop],
|
|
875
|
+
"onUpdate:modelValue": (n) => e.data[t.prop] = n
|
|
876
|
+
}, { ref_for: !0 }, W(Y)(t, e.data).props, {
|
|
877
877
|
clearable: !0,
|
|
878
|
-
key:
|
|
878
|
+
key: t.prop,
|
|
879
879
|
style: { display: "inline-block" }
|
|
880
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (
|
|
880
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (F(), w("span", nt, H(e.data[t.prop] || "-"), 1))]),
|
|
881
881
|
_: 2
|
|
882
882
|
}, 1032, ["label", "span"]))), 128))]),
|
|
883
883
|
_: 1
|
|
@@ -885,10 +885,10 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
885
885
|
], 64);
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
}), [["__scopeId", "data-v-f02c30f9"]]),
|
|
888
|
+
}), [["__scopeId", "data-v-f02c30f9"]]), it = {
|
|
889
889
|
key: 0,
|
|
890
890
|
class: "dialog-footer"
|
|
891
|
-
},
|
|
891
|
+
}, at = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
892
892
|
__name: "index",
|
|
893
893
|
props: {
|
|
894
894
|
visible: { type: Boolean },
|
|
@@ -903,36 +903,36 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
903
903
|
"submit"
|
|
904
904
|
],
|
|
905
905
|
setup(e, { emit: t }) {
|
|
906
|
-
let
|
|
907
|
-
function
|
|
908
|
-
|
|
906
|
+
let n = t, r = e, i = L();
|
|
907
|
+
function a() {
|
|
908
|
+
n("close"), n("update:visible", !1);
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
|
|
910
|
+
function o() {
|
|
911
|
+
n("submit", U(i?.value || {})), n("update:visible", !1);
|
|
912
912
|
}
|
|
913
913
|
return (e, t) => {
|
|
914
|
-
let
|
|
915
|
-
return
|
|
916
|
-
"model-value":
|
|
917
|
-
"show-close":
|
|
918
|
-
fullscreen: !
|
|
914
|
+
let n = B("el-button"), s = B("el-dialog");
|
|
915
|
+
return F(), S(s, j(e.$attrs, {
|
|
916
|
+
"model-value": r.visible,
|
|
917
|
+
"show-close": r.disabled,
|
|
918
|
+
fullscreen: !r.width,
|
|
919
919
|
"destroy-on-close": "",
|
|
920
920
|
"lock-scroll": !1,
|
|
921
921
|
"close-on-click-modal": !1,
|
|
922
|
-
"onUpdate:modelValue": t[0] ||= (e) => !e &&
|
|
923
|
-
onClose:
|
|
922
|
+
"onUpdate:modelValue": t[0] ||= (e) => !e && a(),
|
|
923
|
+
onClose: a
|
|
924
924
|
}), {
|
|
925
|
-
default:
|
|
925
|
+
default: K(() => [(F(), S(V(r.component), j({
|
|
926
926
|
ref_key: "slotRef",
|
|
927
|
-
ref:
|
|
928
|
-
},
|
|
929
|
-
default:
|
|
927
|
+
ref: i
|
|
928
|
+
}, r.componentProps), null, 16)), r.disabled ? C("", !0) : (F(), w("div", it, [O(n, { onClick: a }, {
|
|
929
|
+
default: K(() => [...t[1] ||= [D("取消", -1)]]),
|
|
930
930
|
_: 1
|
|
931
|
-
}),
|
|
931
|
+
}), O(n, {
|
|
932
932
|
type: "primary",
|
|
933
|
-
onClick:
|
|
933
|
+
onClick: o
|
|
934
934
|
}, {
|
|
935
|
-
default:
|
|
935
|
+
default: K(() => [...t[2] ||= [D("确定", -1)]]),
|
|
936
936
|
_: 1
|
|
937
937
|
})]))]),
|
|
938
938
|
_: 1
|
|
@@ -946,63 +946,63 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
|
|
|
946
946
|
}), [["__scopeId", "data-v-fde928bf"]]);
|
|
947
947
|
//#endregion
|
|
948
948
|
//#region src/components/utils/render.ts
|
|
949
|
-
function
|
|
950
|
-
return
|
|
949
|
+
function ot(t) {
|
|
950
|
+
return A("template", { style: {
|
|
951
951
|
display: "flex",
|
|
952
952
|
flexDirection: "row",
|
|
953
953
|
flexWrap: "wrap"
|
|
954
|
-
} }, (Array.isArray(
|
|
955
|
-
let { text:
|
|
956
|
-
return
|
|
957
|
-
...
|
|
954
|
+
} }, (Array.isArray(t) ? t : [t]).map((t) => {
|
|
955
|
+
let { text: n, ...r } = t;
|
|
956
|
+
return A(e, {
|
|
957
|
+
...r,
|
|
958
958
|
link: !0,
|
|
959
959
|
size: "small",
|
|
960
|
-
type:
|
|
961
|
-
}, () =>
|
|
960
|
+
type: t.type || "default"
|
|
961
|
+
}, () => n);
|
|
962
962
|
}));
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
return Array.isArray(e) ?
|
|
964
|
+
function st(e) {
|
|
965
|
+
return Array.isArray(e) ? A("div", { style: {
|
|
966
966
|
display: "flex",
|
|
967
967
|
gap: "8px",
|
|
968
968
|
flexDirection: "row",
|
|
969
969
|
flexWrap: "wrap"
|
|
970
|
-
} }, e.map((e) =>
|
|
970
|
+
} }, e.map((e) => A(g, {
|
|
971
971
|
...e,
|
|
972
972
|
type: e.type || "primary"
|
|
973
|
-
},
|
|
973
|
+
}, A(y, {
|
|
974
974
|
lineClamp: e?.lineClamp,
|
|
975
975
|
type: e.type || "primary"
|
|
976
|
-
}, () => e.prop)))) :
|
|
976
|
+
}, () => e.prop)))) : A(g, {
|
|
977
977
|
...e,
|
|
978
978
|
type: e.type || "primary"
|
|
979
|
-
},
|
|
979
|
+
}, A(y, {
|
|
980
980
|
lineClamp: e?.lineClamp,
|
|
981
981
|
type: e.type || "primary"
|
|
982
982
|
}, () => e.prop));
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
return
|
|
984
|
+
function ct(e) {
|
|
985
|
+
return A("div", { style: {
|
|
986
986
|
display: "flex",
|
|
987
987
|
gap: "4px",
|
|
988
988
|
flexDirection: "row",
|
|
989
989
|
flexWrap: "wrap"
|
|
990
|
-
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) =>
|
|
990
|
+
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => A(v, e, () => t)));
|
|
991
991
|
}
|
|
992
|
-
function
|
|
993
|
-
return
|
|
992
|
+
function lt(e) {
|
|
993
|
+
return A(v, { ...e });
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
return
|
|
995
|
+
function ut(e) {
|
|
996
|
+
return A(re, {
|
|
997
997
|
style: { minWidth: "160px" },
|
|
998
998
|
...e,
|
|
999
999
|
placeholder: "请选择",
|
|
1000
1000
|
filterable: !0
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function dt(e) {
|
|
1004
1004
|
let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
1005
|
-
return
|
|
1005
|
+
return A(r, {
|
|
1006
1006
|
format: t,
|
|
1007
1007
|
valueFormat: t,
|
|
1008
1008
|
startPlaceholder: "开始时间",
|
|
@@ -1012,9 +1012,9 @@ function Ze(e) {
|
|
|
1012
1012
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
1013
1013
|
});
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function ft(e) {
|
|
1016
1016
|
let { start: t = "00:00", end: n = "23:30", ...r } = e;
|
|
1017
|
-
return
|
|
1017
|
+
return A(oe, {
|
|
1018
1018
|
start: t,
|
|
1019
1019
|
end: n,
|
|
1020
1020
|
...r,
|
|
@@ -1022,15 +1022,15 @@ function Qe(e) {
|
|
|
1022
1022
|
filterable: !0
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return
|
|
1025
|
+
function pt(e) {
|
|
1026
|
+
return A(p, {
|
|
1027
1027
|
...e,
|
|
1028
1028
|
placeholder: "请输入"
|
|
1029
1029
|
});
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function mt(e) {
|
|
1032
1032
|
let { align: t = "left", controlsPosition: n = "right", ...r } = e;
|
|
1033
|
-
return
|
|
1033
|
+
return A(m, {
|
|
1034
1034
|
align: t,
|
|
1035
1035
|
style: {
|
|
1036
1036
|
...e?.style || {},
|
|
@@ -1041,47 +1041,47 @@ function et(e) {
|
|
|
1041
1041
|
...r
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function ht(e) {
|
|
1045
1045
|
let { rows: t = 1, ...n } = e;
|
|
1046
|
-
return
|
|
1046
|
+
return A(p, {
|
|
1047
1047
|
placeholder: "请输入",
|
|
1048
1048
|
rows: t,
|
|
1049
1049
|
...n,
|
|
1050
1050
|
type: "textarea"
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return
|
|
1053
|
+
function gt(e) {
|
|
1054
|
+
return A(h, {
|
|
1055
1055
|
placeholder: "请输入",
|
|
1056
1056
|
...e,
|
|
1057
1057
|
clearable: !1
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return
|
|
1060
|
+
function _t(e) {
|
|
1061
|
+
return A(Z, e);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return
|
|
1063
|
+
function vt(e) {
|
|
1064
|
+
return A(te, e);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
return
|
|
1066
|
+
function yt(e) {
|
|
1067
|
+
return A(y, e, () => e.prop);
|
|
1068
1068
|
}
|
|
1069
1069
|
var Q = {
|
|
1070
|
-
button:
|
|
1071
|
-
link:
|
|
1072
|
-
tag:
|
|
1073
|
-
switch:
|
|
1074
|
-
select:
|
|
1075
|
-
datePicker:
|
|
1076
|
-
timeSelect:
|
|
1077
|
-
input:
|
|
1078
|
-
inputNumber:
|
|
1079
|
-
textarea:
|
|
1080
|
-
inputTag:
|
|
1081
|
-
editor:
|
|
1082
|
-
radio:
|
|
1083
|
-
text:
|
|
1084
|
-
},
|
|
1070
|
+
button: ot,
|
|
1071
|
+
link: st,
|
|
1072
|
+
tag: ct,
|
|
1073
|
+
switch: lt,
|
|
1074
|
+
select: ut,
|
|
1075
|
+
datePicker: dt,
|
|
1076
|
+
timeSelect: ft,
|
|
1077
|
+
input: pt,
|
|
1078
|
+
inputNumber: mt,
|
|
1079
|
+
textarea: ht,
|
|
1080
|
+
inputTag: gt,
|
|
1081
|
+
editor: _t,
|
|
1082
|
+
radio: vt,
|
|
1083
|
+
text: yt
|
|
1084
|
+
}, bt = /* @__PURE__ */ k({
|
|
1085
1085
|
name: "UiColumn",
|
|
1086
1086
|
__name: "UiColumn",
|
|
1087
1087
|
props: {
|
|
@@ -1092,69 +1092,69 @@ var Q = {
|
|
|
1092
1092
|
size: {}
|
|
1093
1093
|
},
|
|
1094
1094
|
emits: ["update:data"],
|
|
1095
|
-
setup(
|
|
1096
|
-
let
|
|
1097
|
-
function
|
|
1098
|
-
let
|
|
1099
|
-
Object.keys(Q).forEach((
|
|
1100
|
-
let
|
|
1101
|
-
|
|
1102
|
-
let
|
|
1095
|
+
setup(e, { emit: t }) {
|
|
1096
|
+
let n = t, r = e;
|
|
1097
|
+
function i(e, t, r) {
|
|
1098
|
+
let i = {};
|
|
1099
|
+
Object.keys(Q).forEach((a) => {
|
|
1100
|
+
let o = a;
|
|
1101
|
+
i[o] = (i) => {
|
|
1102
|
+
let a = Array.isArray(i) ? i : {
|
|
1103
1103
|
placeholder: "请输入",
|
|
1104
1104
|
filterable: !0,
|
|
1105
|
-
...
|
|
1106
|
-
prop:
|
|
1107
|
-
modelValue:
|
|
1108
|
-
onChange:
|
|
1109
|
-
onInput:
|
|
1105
|
+
...i,
|
|
1106
|
+
prop: i?.prop || e[r.prop],
|
|
1107
|
+
modelValue: i?.prop || e[r.prop],
|
|
1108
|
+
onChange: i?.onChange || ((e) => n("update:data", t, r.prop, e)),
|
|
1109
|
+
onInput: i?.onInput || ((e) => n("update:data", t, r.prop, e))
|
|
1110
1110
|
};
|
|
1111
|
-
return Q[
|
|
1111
|
+
return Q[o](a);
|
|
1112
1112
|
};
|
|
1113
1113
|
});
|
|
1114
|
-
let
|
|
1114
|
+
let a = r.render ? r.render({
|
|
1115
1115
|
data: e,
|
|
1116
1116
|
index: t,
|
|
1117
|
-
h:
|
|
1118
|
-
column:
|
|
1117
|
+
h: i,
|
|
1118
|
+
column: r
|
|
1119
1119
|
}) : null;
|
|
1120
|
-
return
|
|
1120
|
+
return a ? typeof a == "object" ? a : A("div", { innerHTML: String(a) }) : null;
|
|
1121
1121
|
}
|
|
1122
|
-
return (
|
|
1123
|
-
let
|
|
1124
|
-
return
|
|
1122
|
+
return (t, n) => {
|
|
1123
|
+
let a = B("UiColumn", !0), o = B("el-table-column"), s = B("el-text");
|
|
1124
|
+
return e.column?.children && e.column?.children?.length > 0 ? (F(), S(o, {
|
|
1125
1125
|
key: 0,
|
|
1126
|
-
label:
|
|
1127
|
-
align:
|
|
1126
|
+
label: e.column.label,
|
|
1127
|
+
align: r.align
|
|
1128
1128
|
}, {
|
|
1129
|
-
default:
|
|
1129
|
+
default: K(() => [(F(!0), w(b, null, R(e.column.children, (e) => (F(), S(a, j({
|
|
1130
1130
|
column: e,
|
|
1131
|
-
data:
|
|
1132
|
-
}, { ref_for: !0 },
|
|
1131
|
+
data: r.data
|
|
1132
|
+
}, { ref_for: !0 }, t.$attrs, { align: r.align }), null, 16, [
|
|
1133
1133
|
"column",
|
|
1134
1134
|
"data",
|
|
1135
1135
|
"align"
|
|
1136
1136
|
]))), 256))]),
|
|
1137
1137
|
_: 1
|
|
1138
|
-
}, 8, ["label", "align"])) : (
|
|
1138
|
+
}, 8, ["label", "align"])) : (F(), S(o, {
|
|
1139
1139
|
key: 1,
|
|
1140
|
-
prop: String(
|
|
1141
|
-
label:
|
|
1142
|
-
"column-key": String(
|
|
1143
|
-
align:
|
|
1144
|
-
width:
|
|
1145
|
-
"show-overflow-tooltip":
|
|
1140
|
+
prop: String(e.column.prop),
|
|
1141
|
+
label: e.column.label,
|
|
1142
|
+
"column-key": String(e.column.prop),
|
|
1143
|
+
align: r.align,
|
|
1144
|
+
width: e.column.width,
|
|
1145
|
+
"show-overflow-tooltip": e.column.showOverflowTooltip
|
|
1146
1146
|
}, {
|
|
1147
|
-
default:
|
|
1147
|
+
default: K((t) => [t?.row ? (F(), w(b, { key: 0 }, [e.column.render ? (F(), S(V(i(t.row, t.$index, e.column)), {
|
|
1148
1148
|
key: 0,
|
|
1149
|
-
align:
|
|
1150
|
-
size:
|
|
1151
|
-
}, null, 8, ["align", "size"])) : (
|
|
1149
|
+
align: r.align,
|
|
1150
|
+
size: r.size
|
|
1151
|
+
}, null, 8, ["align", "size"])) : (F(), S(s, {
|
|
1152
1152
|
key: 1,
|
|
1153
|
-
"line-clamp":
|
|
1153
|
+
"line-clamp": e.column?.lineClamp || 2
|
|
1154
1154
|
}, {
|
|
1155
|
-
default:
|
|
1155
|
+
default: K(() => [D(H(t.row[e.column.prop]), 1)]),
|
|
1156
1156
|
_: 2
|
|
1157
|
-
}, 1032, ["line-clamp"]))], 64)) :
|
|
1157
|
+
}, 1032, ["line-clamp"]))], 64)) : C("", !0)]),
|
|
1158
1158
|
_: 1
|
|
1159
1159
|
}, 8, [
|
|
1160
1160
|
"prop",
|
|
@@ -1166,7 +1166,7 @@ var Q = {
|
|
|
1166
1166
|
]));
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
|
-
}),
|
|
1169
|
+
}), xt = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
1170
1170
|
__name: "index",
|
|
1171
1171
|
props: {
|
|
1172
1172
|
loading: {
|
|
@@ -1178,14 +1178,14 @@ var Q = {
|
|
|
1178
1178
|
default: !1
|
|
1179
1179
|
},
|
|
1180
1180
|
size: { default: "default" },
|
|
1181
|
-
data: { default: () =>
|
|
1181
|
+
data: { default: () => I([]) },
|
|
1182
1182
|
columns: {},
|
|
1183
1183
|
align: { default: "left" },
|
|
1184
1184
|
hidePagination: {
|
|
1185
1185
|
type: Boolean,
|
|
1186
1186
|
default: !1
|
|
1187
1187
|
},
|
|
1188
|
-
pagination: { default: () =>
|
|
1188
|
+
pagination: { default: () => I({
|
|
1189
1189
|
page: 1,
|
|
1190
1190
|
pageSize: 10,
|
|
1191
1191
|
total: 0,
|
|
@@ -1202,8 +1202,8 @@ var Q = {
|
|
|
1202
1202
|
rowKey: {}
|
|
1203
1203
|
},
|
|
1204
1204
|
emits: ["pagination"],
|
|
1205
|
-
setup(
|
|
1206
|
-
let
|
|
1205
|
+
setup(e, { emit: t }) {
|
|
1206
|
+
let n = t, r = E(e, [
|
|
1207
1207
|
"loading",
|
|
1208
1208
|
"border",
|
|
1209
1209
|
"align",
|
|
@@ -1211,59 +1211,59 @@ var Q = {
|
|
|
1211
1211
|
"pagination",
|
|
1212
1212
|
"data",
|
|
1213
1213
|
"size"
|
|
1214
|
-
]),
|
|
1215
|
-
|
|
1216
|
-
!e?.length || !t?.length ||
|
|
1217
|
-
if (!
|
|
1214
|
+
]), i = L(), a = x(() => U(r.columns)?.some((e) => e.type === "index")), o = x(() => U(r.columns)?.some((e) => e.type === "selection")), s = x(() => !r.columns || !r.columns.length ? [] : r.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
|
|
1215
|
+
G(() => [r.defaultCheckedKeys, e.data], ([e, t]) => {
|
|
1216
|
+
!e?.length || !t?.length || ue(() => {
|
|
1217
|
+
if (!i.value) return;
|
|
1218
1218
|
let n = t.filter((t) => e.includes(t.id));
|
|
1219
|
-
|
|
1219
|
+
i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
|
|
1220
1220
|
});
|
|
1221
1221
|
}, { immediate: !0 });
|
|
1222
|
-
function
|
|
1223
|
-
|
|
1222
|
+
function c(t, r) {
|
|
1223
|
+
e.pagination.page = t || e.pagination.page, e.pagination.pageSize = r || e.pagination.pageSize, n("pagination", U(e.pagination));
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1226
|
-
|
|
1227
|
-
...
|
|
1228
|
-
[
|
|
1225
|
+
function l(t, n, r) {
|
|
1226
|
+
e.data[t] && (e.data[t] = {
|
|
1227
|
+
...e.data[t],
|
|
1228
|
+
[n]: r
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
return (t,
|
|
1232
|
-
let
|
|
1233
|
-
return
|
|
1234
|
-
|
|
1235
|
-
data:
|
|
1231
|
+
return (t, n) => {
|
|
1232
|
+
let u = B("el-table-column"), d = B("el-table"), f = B("el-pagination"), p = pe("loading");
|
|
1233
|
+
return F(), w("div", null, [
|
|
1234
|
+
ve((F(), S(d, j({ border: e.border }, t.$attrs, {
|
|
1235
|
+
data: e.data,
|
|
1236
1236
|
lazy: !0,
|
|
1237
1237
|
class: "ui-table",
|
|
1238
1238
|
fit: "",
|
|
1239
1239
|
ref_key: "tableRef",
|
|
1240
|
-
ref:
|
|
1240
|
+
ref: i
|
|
1241
1241
|
}), {
|
|
1242
|
-
default:
|
|
1243
|
-
|
|
1242
|
+
default: K(() => [
|
|
1243
|
+
o.value ? (F(), S(u, {
|
|
1244
1244
|
key: 0,
|
|
1245
1245
|
type: "selection",
|
|
1246
|
-
selectable:
|
|
1246
|
+
selectable: r.selectable,
|
|
1247
1247
|
"column-key": "selection_0",
|
|
1248
|
-
align:
|
|
1248
|
+
align: e.align,
|
|
1249
1249
|
fixed: "left"
|
|
1250
|
-
}, null, 8, ["selectable", "align"])) :
|
|
1251
|
-
|
|
1250
|
+
}, null, 8, ["selectable", "align"])) : C("", !0),
|
|
1251
|
+
a.value ? (F(), S(u, {
|
|
1252
1252
|
key: 1,
|
|
1253
1253
|
fixed: "left",
|
|
1254
1254
|
type: "index",
|
|
1255
1255
|
label: "序号",
|
|
1256
1256
|
width: "60",
|
|
1257
1257
|
"column-key": "index_1",
|
|
1258
|
-
align:
|
|
1259
|
-
}, null, 8, ["align"])) :
|
|
1260
|
-
(
|
|
1261
|
-
key:
|
|
1262
|
-
column:
|
|
1263
|
-
data:
|
|
1264
|
-
align:
|
|
1265
|
-
"onUpdate:data":
|
|
1266
|
-
size:
|
|
1258
|
+
align: e.align
|
|
1259
|
+
}, null, 8, ["align"])) : C("", !0),
|
|
1260
|
+
(F(!0), w(b, null, R(s.value, (t, n) => (F(), S(bt, {
|
|
1261
|
+
key: n + "column_" + t?.prop?.toString(),
|
|
1262
|
+
column: t,
|
|
1263
|
+
data: e.data,
|
|
1264
|
+
align: e.align,
|
|
1265
|
+
"onUpdate:data": l,
|
|
1266
|
+
size: e.size
|
|
1267
1267
|
}, null, 8, [
|
|
1268
1268
|
"column",
|
|
1269
1269
|
"data",
|
|
@@ -1272,54 +1272,54 @@ var Q = {
|
|
|
1272
1272
|
]))), 128))
|
|
1273
1273
|
]),
|
|
1274
1274
|
_: 1
|
|
1275
|
-
}, 16, ["border", "data"])), [[
|
|
1276
|
-
|
|
1275
|
+
}, 16, ["border", "data"])), [[p, e.loading]]),
|
|
1276
|
+
e.hidePagination ? C("", !0) : (F(), S(f, {
|
|
1277
1277
|
key: 0,
|
|
1278
1278
|
class: "ui-pagination",
|
|
1279
1279
|
size: "small",
|
|
1280
1280
|
background: "",
|
|
1281
1281
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
1282
|
-
"page-sizes":
|
|
1282
|
+
"page-sizes": e.pagination?.pageSizes || [
|
|
1283
1283
|
10,
|
|
1284
1284
|
20,
|
|
1285
1285
|
50
|
|
1286
1286
|
],
|
|
1287
|
-
"page-size":
|
|
1288
|
-
"onUpdate:pageSize":
|
|
1289
|
-
"current-page":
|
|
1290
|
-
"onUpdate:currentPage":
|
|
1291
|
-
total:
|
|
1292
|
-
"onUpdate:total":
|
|
1293
|
-
onChange:
|
|
1287
|
+
"page-size": e.pagination.pageSize,
|
|
1288
|
+
"onUpdate:pageSize": n[0] ||= (t) => e.pagination.pageSize = t,
|
|
1289
|
+
"current-page": e.pagination.page,
|
|
1290
|
+
"onUpdate:currentPage": n[1] ||= (t) => e.pagination.page = t,
|
|
1291
|
+
total: e.pagination.total,
|
|
1292
|
+
"onUpdate:total": n[2] ||= (t) => e.pagination.total = t,
|
|
1293
|
+
onChange: c
|
|
1294
1294
|
}, null, 8, [
|
|
1295
1295
|
"page-sizes",
|
|
1296
1296
|
"page-size",
|
|
1297
1297
|
"current-page",
|
|
1298
1298
|
"total"
|
|
1299
1299
|
])),
|
|
1300
|
-
|
|
1300
|
+
z(t.$slots, "default", {}, void 0, !0)
|
|
1301
1301
|
]);
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
}), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */
|
|
1304
|
+
}), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */ k({
|
|
1305
1305
|
__name: "Series",
|
|
1306
1306
|
props: {
|
|
1307
1307
|
option: {},
|
|
1308
1308
|
height: {}
|
|
1309
1309
|
},
|
|
1310
1310
|
setup(e) {
|
|
1311
|
-
let t = e, n =
|
|
1312
|
-
|
|
1313
|
-
n.value && (r.value =
|
|
1314
|
-
}),
|
|
1311
|
+
let t = e, n = L(null), r = L(null);
|
|
1312
|
+
P(() => {
|
|
1313
|
+
n.value && (r.value = be(n.value), i());
|
|
1314
|
+
}), de(() => {
|
|
1315
1315
|
r.value && r.value.dispose();
|
|
1316
|
-
}),
|
|
1317
|
-
e &&
|
|
1316
|
+
}), G(() => t.option, (e) => {
|
|
1317
|
+
e && i();
|
|
1318
1318
|
}, { deep: !0 });
|
|
1319
|
-
function
|
|
1319
|
+
function i() {
|
|
1320
1320
|
r.value && (!Array.isArray(t?.option.series) || !t?.option?.series?.length || r.value.setOption(t.option));
|
|
1321
1321
|
}
|
|
1322
|
-
return (e, r) => (
|
|
1322
|
+
return (e, r) => (F(), w("div", j(e.$attrs, {
|
|
1323
1323
|
style: {
|
|
1324
1324
|
width: "100%",
|
|
1325
1325
|
height: t.height || "100%",
|
|
@@ -1329,7 +1329,7 @@ var Q = {
|
|
|
1329
1329
|
ref: n
|
|
1330
1330
|
}), null, 16));
|
|
1331
1331
|
}
|
|
1332
|
-
}),
|
|
1332
|
+
}), St = /* @__PURE__ */ k({
|
|
1333
1333
|
__name: "Pie",
|
|
1334
1334
|
props: {
|
|
1335
1335
|
data: {},
|
|
@@ -1339,32 +1339,32 @@ var Q = {
|
|
|
1339
1339
|
height: {}
|
|
1340
1340
|
},
|
|
1341
1341
|
setup(e) {
|
|
1342
|
-
let
|
|
1343
|
-
let e =
|
|
1342
|
+
let t = e, n = x(() => {
|
|
1343
|
+
let e = t?.option || {}, n = Array.isArray(t?.option?.series) ? t.option.series.filter((e) => e && typeof e == "object" && "type" in e && e.type === "pie") : [], r = n[0] || {}, i = e?.legend?.orient;
|
|
1344
1344
|
return {
|
|
1345
1345
|
title: {
|
|
1346
|
-
text:
|
|
1346
|
+
text: t?.title || "",
|
|
1347
1347
|
left: "left"
|
|
1348
1348
|
},
|
|
1349
1349
|
tooltip: { trigger: "item" },
|
|
1350
|
-
legend: e?.legend ?? (
|
|
1350
|
+
legend: e?.legend ?? (t?.horizontal ? {
|
|
1351
1351
|
orient: "vertical",
|
|
1352
1352
|
top: "center",
|
|
1353
1353
|
right: "10%",
|
|
1354
|
-
data:
|
|
1354
|
+
data: t?.data?.map((e) => e.name),
|
|
1355
1355
|
formatter: (e) => {
|
|
1356
|
-
let
|
|
1357
|
-
return `${e} ${
|
|
1356
|
+
let n = t?.data?.find((t) => t.name === e);
|
|
1357
|
+
return `${e} ${n ? n.value : 0}`;
|
|
1358
1358
|
}
|
|
1359
1359
|
} : {
|
|
1360
1360
|
top: "5%",
|
|
1361
1361
|
left: "center"
|
|
1362
1362
|
}),
|
|
1363
|
-
series:
|
|
1364
|
-
name:
|
|
1363
|
+
series: n.length > 0 ? n : [{
|
|
1364
|
+
name: r?.name || "xx饼图",
|
|
1365
1365
|
type: "pie",
|
|
1366
1366
|
radius: ["40%", "70%"],
|
|
1367
|
-
center:
|
|
1367
|
+
center: t?.horizontal || i === "vertical" ? ["30%", "50%"] : ["50%", "50%"],
|
|
1368
1368
|
avoidLabelOverlap: !1,
|
|
1369
1369
|
itemStyle: { borderRadius: 10 },
|
|
1370
1370
|
label: {
|
|
@@ -1377,16 +1377,16 @@ var Q = {
|
|
|
1377
1377
|
fontWeight: "bold"
|
|
1378
1378
|
} },
|
|
1379
1379
|
labelLine: { show: !1 },
|
|
1380
|
-
data:
|
|
1380
|
+
data: t.data || []
|
|
1381
1381
|
}]
|
|
1382
1382
|
};
|
|
1383
1383
|
});
|
|
1384
|
-
return (t, r) => (
|
|
1385
|
-
option:
|
|
1384
|
+
return (t, r) => (F(), S($, j({
|
|
1385
|
+
option: n.value,
|
|
1386
1386
|
height: e.height
|
|
1387
1387
|
}, t.$attrs), null, 16, ["option", "height"]));
|
|
1388
1388
|
}
|
|
1389
|
-
}),
|
|
1389
|
+
}), Ct = /* @__PURE__ */ k({
|
|
1390
1390
|
__name: "Bar",
|
|
1391
1391
|
props: {
|
|
1392
1392
|
data: {},
|
|
@@ -1394,11 +1394,11 @@ var Q = {
|
|
|
1394
1394
|
title: {}
|
|
1395
1395
|
},
|
|
1396
1396
|
setup(e) {
|
|
1397
|
-
let
|
|
1398
|
-
let e =
|
|
1397
|
+
let t = e, n = x(() => {
|
|
1398
|
+
let e = t?.option || {};
|
|
1399
1399
|
return {
|
|
1400
1400
|
title: {
|
|
1401
|
-
text:
|
|
1401
|
+
text: t?.title || "",
|
|
1402
1402
|
left: "left"
|
|
1403
1403
|
},
|
|
1404
1404
|
tooltip: { trigger: "axis" },
|
|
@@ -1409,10 +1409,10 @@ var Q = {
|
|
|
1409
1409
|
},
|
|
1410
1410
|
xAxis: {
|
|
1411
1411
|
type: "category",
|
|
1412
|
-
data:
|
|
1412
|
+
data: t.data.map((e) => e.name)
|
|
1413
1413
|
},
|
|
1414
1414
|
yAxis: { type: "value" },
|
|
1415
|
-
series:
|
|
1415
|
+
series: t?.option?.series || t.data?.map((e) => ({
|
|
1416
1416
|
name: e?.name || "xx柱状图",
|
|
1417
1417
|
type: "bar",
|
|
1418
1418
|
data: e.value,
|
|
@@ -1420,23 +1420,52 @@ var Q = {
|
|
|
1420
1420
|
}))
|
|
1421
1421
|
};
|
|
1422
1422
|
});
|
|
1423
|
-
return (e, t) => (
|
|
1423
|
+
return (e, t) => (F(), S($, { option: n.value }, null, 8, ["option"]));
|
|
1424
1424
|
}
|
|
1425
|
-
}),
|
|
1426
|
-
UiCard:
|
|
1427
|
-
UiTable:
|
|
1428
|
-
UiFilter:
|
|
1429
|
-
UiForm:
|
|
1430
|
-
UiEditor:
|
|
1431
|
-
UiTree:
|
|
1432
|
-
UiInfiniteScroll:
|
|
1433
|
-
UiDescriptions:
|
|
1434
|
-
UiDialog:
|
|
1435
|
-
UiPie:
|
|
1425
|
+
}), wt = {
|
|
1426
|
+
UiCard: Ce,
|
|
1427
|
+
UiTable: xt,
|
|
1428
|
+
UiFilter: Le,
|
|
1429
|
+
UiForm: Ve,
|
|
1430
|
+
UiEditor: Z,
|
|
1431
|
+
UiTree: Je,
|
|
1432
|
+
UiInfiniteScroll: et,
|
|
1433
|
+
UiDescriptions: rt,
|
|
1434
|
+
UiDialog: at,
|
|
1435
|
+
UiPie: St,
|
|
1436
1436
|
UiSeries: $,
|
|
1437
|
-
UiBar:
|
|
1438
|
-
},
|
|
1439
|
-
|
|
1437
|
+
UiBar: Ct
|
|
1438
|
+
}, Tt = [
|
|
1439
|
+
e,
|
|
1440
|
+
t,
|
|
1441
|
+
n,
|
|
1442
|
+
r,
|
|
1443
|
+
i,
|
|
1444
|
+
a,
|
|
1445
|
+
o,
|
|
1446
|
+
s,
|
|
1447
|
+
c,
|
|
1448
|
+
l,
|
|
1449
|
+
u,
|
|
1450
|
+
d,
|
|
1451
|
+
f,
|
|
1452
|
+
p,
|
|
1453
|
+
m,
|
|
1454
|
+
h,
|
|
1455
|
+
g,
|
|
1456
|
+
ee,
|
|
1457
|
+
te,
|
|
1458
|
+
ne,
|
|
1459
|
+
re,
|
|
1460
|
+
ie,
|
|
1461
|
+
ae,
|
|
1462
|
+
v,
|
|
1463
|
+
y,
|
|
1464
|
+
oe,
|
|
1465
|
+
se
|
|
1466
|
+
], Et = { install(e) {
|
|
1467
|
+
Tt.forEach((t) => e.component(t.name || t.__name, t));
|
|
1468
|
+
for (let [t, n] of Object.entries(wt)) e.component(t, n);
|
|
1440
1469
|
} };
|
|
1441
1470
|
//#endregion
|
|
1442
|
-
export {
|
|
1471
|
+
export { Ct as UiBar, Ce as UiCard, rt as UiDescriptions, at as UiDialog, Z as UiEditor, Le as UiFilter, Ve as UiForm, et as UiInfiniteScroll, St as UiPie, $ as UiSeries, xt as UiTable, Je as UiTree, Et as default };
|