yc-vep-ui 0.0.8 → 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 +613 -572
- 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 fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, pe = /* @__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 fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, pe = /* @__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 Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
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,126 +249,138 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
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
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
w(t.$slots, "left", { form: h }, void 0, !0),
|
|
331
|
-
s.fields.length >= 2 * s.column ? (b(), n(f, {
|
|
332
|
-
key: 0,
|
|
333
|
-
text: "",
|
|
334
|
-
icon: m.expand ? j(he) : j(me),
|
|
335
|
-
onClick: o[0] ||= (e) => m.expand = !m.expand
|
|
336
|
-
}, {
|
|
337
|
-
default: P(() => [c(k(m.expand ? "收起" : "展开"), 1)]),
|
|
338
|
-
_: 1
|
|
339
|
-
}, 8, ["icon"])) : r("", !0),
|
|
340
|
-
l(f, {
|
|
341
|
-
icon: j(Ce),
|
|
342
|
-
type: "primary",
|
|
343
|
-
onClick: y
|
|
344
|
-
}, {
|
|
345
|
-
default: P(() => [...o[1] ||= [c("查询", -1)]]),
|
|
346
|
-
_: 1
|
|
347
|
-
}, 8, ["icon"]),
|
|
348
|
-
l(f, {
|
|
349
|
-
icon: j(H),
|
|
350
|
-
onClick: S
|
|
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
|
+
}, {
|
|
297
|
+
default: K(() => [t.render ? (F(), S(V(W(Y)(t, a).component), j({
|
|
298
|
+
key: 0,
|
|
299
|
+
modelValue: a[t.prop],
|
|
300
|
+
"onUpdate:modelValue": (e) => a[t.prop] = e
|
|
301
|
+
}, { ref_for: !0 }, W(Y)(t, a).props, {
|
|
302
|
+
clearable: !0,
|
|
303
|
+
style: { width: W(J)(t?.valueWidth || e.valueWidth) }
|
|
304
|
+
}), null, 16, [
|
|
305
|
+
"modelValue",
|
|
306
|
+
"onUpdate:modelValue",
|
|
307
|
+
"style"
|
|
308
|
+
])) : (F(), S(r, {
|
|
309
|
+
key: 1,
|
|
310
|
+
modelValue: a[t.prop],
|
|
311
|
+
"onUpdate:modelValue": (e) => a[t.prop] = e,
|
|
312
|
+
placeholder: "请输入",
|
|
313
|
+
clearable: !0,
|
|
314
|
+
style: N({ width: W(J)(t?.valueWidth || e.valueWidth) })
|
|
315
|
+
}, null, 8, [
|
|
316
|
+
"modelValue",
|
|
317
|
+
"onUpdate:modelValue",
|
|
318
|
+
"style"
|
|
319
|
+
]))]),
|
|
320
|
+
_: 2
|
|
321
|
+
}, 1032, [
|
|
322
|
+
"label",
|
|
323
|
+
"label-width",
|
|
324
|
+
"value-width"
|
|
325
|
+
]))]),
|
|
326
|
+
_: 2
|
|
327
|
+
}, 1032, ["span"]))), 256)), O(d, {
|
|
328
|
+
span: 24 / e.column,
|
|
329
|
+
offset: s.value
|
|
351
330
|
}, {
|
|
352
|
-
default:
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
331
|
+
default: K(() => [O(u, {
|
|
332
|
+
label: "",
|
|
333
|
+
"label-width": "30px"
|
|
334
|
+
}, {
|
|
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
|
+
key: 0,
|
|
339
|
+
text: "",
|
|
340
|
+
icon: i.expand ? W(Te) : W(we),
|
|
341
|
+
onClick: n[0] ||= (e) => i.expand = !i.expand
|
|
342
|
+
}, {
|
|
343
|
+
default: K(() => [D(H(i.expand ? "收起" : "展开"), 1)]),
|
|
344
|
+
_: 1
|
|
345
|
+
}, 8, ["icon"])) : C("", !0),
|
|
346
|
+
O(f, {
|
|
347
|
+
icon: W(Pe),
|
|
348
|
+
type: "primary",
|
|
349
|
+
onClick: c
|
|
350
|
+
}, {
|
|
351
|
+
default: K(() => [...n[1] ||= [D("查询", -1)]]),
|
|
352
|
+
_: 1
|
|
353
|
+
}, 8, ["icon"]),
|
|
354
|
+
O(f, {
|
|
355
|
+
icon: W(Ne),
|
|
356
|
+
onClick: l
|
|
357
|
+
}, {
|
|
358
|
+
default: K(() => [...n[2] ||= [D("重置", -1)]]),
|
|
359
|
+
_: 1
|
|
360
|
+
}, 8, ["icon"]),
|
|
361
|
+
z(t.$slots, "handle", { form: a }, void 0, !0),
|
|
362
|
+
z(t.$slots, "right", { form: a }, void 0, !0)
|
|
363
|
+
])]),
|
|
364
|
+
_: 3
|
|
365
|
+
})]),
|
|
366
|
+
_: 3
|
|
367
|
+
}, 8, ["span", "offset"])]),
|
|
368
|
+
_: 3
|
|
369
|
+
})]),
|
|
358
370
|
_: 3
|
|
359
371
|
}, 16, ["model", "size"]);
|
|
360
372
|
};
|
|
361
373
|
}
|
|
362
|
-
}), [["__scopeId", "data-v-
|
|
374
|
+
}), [["__scopeId", "data-v-45f0642b"]]), Re = {
|
|
363
375
|
key: 0,
|
|
364
376
|
style: { display: "inline-block" }
|
|
365
|
-
},
|
|
377
|
+
}, ze = {
|
|
366
378
|
key: 0,
|
|
367
379
|
style: { display: "inline-block" }
|
|
368
|
-
},
|
|
380
|
+
}, Be = {
|
|
369
381
|
key: 0,
|
|
370
382
|
class: "ui-form-buttons"
|
|
371
|
-
},
|
|
383
|
+
}, Ve = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
372
384
|
__name: "index",
|
|
373
385
|
props: {
|
|
374
386
|
fields: {},
|
|
@@ -377,7 +389,7 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
377
389
|
labelWidth: { default: "100px" },
|
|
378
390
|
labelPosition: { default: "top" },
|
|
379
391
|
omitFields: { default: () => [] },
|
|
380
|
-
rules: { default: () =>
|
|
392
|
+
rules: { default: () => I({}) },
|
|
381
393
|
required: { type: Boolean },
|
|
382
394
|
column: { default: 24 },
|
|
383
395
|
defaultValues: {},
|
|
@@ -386,9 +398,9 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
386
398
|
size: {}
|
|
387
399
|
},
|
|
388
400
|
emits: ["submit", "reset"],
|
|
389
|
-
setup(
|
|
390
|
-
|
|
391
|
-
let
|
|
401
|
+
setup(e, { expose: t, emit: n }) {
|
|
402
|
+
he((e) => ({ ec46e5ec: e.column / 2 }));
|
|
403
|
+
let r = n, i = E(e, [
|
|
392
404
|
"fields",
|
|
393
405
|
"labelWidth",
|
|
394
406
|
"valueWidth",
|
|
@@ -397,121 +409,121 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
397
409
|
"labelPosition",
|
|
398
410
|
"valueModel",
|
|
399
411
|
"column"
|
|
400
|
-
]),
|
|
401
|
-
let
|
|
402
|
-
return
|
|
403
|
-
let n =
|
|
404
|
-
|
|
405
|
-
let n =
|
|
406
|
-
|
|
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;
|
|
407
419
|
});
|
|
408
|
-
}),
|
|
409
|
-
}),
|
|
410
|
-
if (
|
|
411
|
-
let
|
|
412
|
-
return
|
|
413
|
-
|
|
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] = [{
|
|
414
426
|
required: !0,
|
|
415
|
-
message: "请输入" +
|
|
427
|
+
message: "请输入" + e.label,
|
|
416
428
|
trigger: "change"
|
|
417
429
|
}]);
|
|
418
|
-
}),
|
|
430
|
+
}), t;
|
|
419
431
|
});
|
|
420
|
-
|
|
421
|
-
Object.assign(
|
|
432
|
+
_e(() => {
|
|
433
|
+
Object.assign(s, i?.form);
|
|
422
434
|
});
|
|
423
|
-
async function
|
|
435
|
+
async function u(e) {
|
|
424
436
|
let t = !0;
|
|
425
437
|
if (await e.validate((e) => {
|
|
426
438
|
t = e;
|
|
427
439
|
}), !t) return;
|
|
428
440
|
let n = {};
|
|
429
|
-
Object.keys(
|
|
430
|
-
|
|
431
|
-
}),
|
|
441
|
+
Object.keys(s).forEach((e) => {
|
|
442
|
+
s[e] !== void 0 && (n[e] = U(s[e]));
|
|
443
|
+
}), r("submit", n);
|
|
432
444
|
}
|
|
433
|
-
function
|
|
434
|
-
|
|
445
|
+
function d() {
|
|
446
|
+
o && o.value?.clearValidate();
|
|
435
447
|
}
|
|
436
|
-
function
|
|
437
|
-
Object.keys(
|
|
438
|
-
|
|
439
|
-
}),
|
|
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);
|
|
440
452
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
453
|
+
function p() {
|
|
454
|
+
return s;
|
|
443
455
|
}
|
|
444
|
-
function
|
|
456
|
+
function m(e) {
|
|
445
457
|
Object.keys(e).forEach((t) => {
|
|
446
|
-
|
|
458
|
+
s[t] = e[t];
|
|
447
459
|
});
|
|
448
460
|
}
|
|
449
|
-
async function
|
|
461
|
+
async function h() {
|
|
450
462
|
return new Promise((e) => {
|
|
451
|
-
|
|
463
|
+
o.value?.validate((t, n) => e(n));
|
|
452
464
|
});
|
|
453
465
|
}
|
|
454
|
-
return
|
|
455
|
-
getValues:
|
|
456
|
-
setValues:
|
|
457
|
-
clearValidate:
|
|
458
|
-
onSubmit:
|
|
459
|
-
validate:
|
|
460
|
-
}), (t,
|
|
461
|
-
let
|
|
462
|
-
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({
|
|
463
475
|
ref_key: "uiFormRef",
|
|
464
|
-
ref:
|
|
465
|
-
model:
|
|
476
|
+
ref: o,
|
|
477
|
+
model: s
|
|
466
478
|
}, t.$attrs, {
|
|
467
|
-
rules:
|
|
468
|
-
inline:
|
|
469
|
-
"label-position":
|
|
479
|
+
rules: l.value,
|
|
480
|
+
inline: e.labelPosition !== "top",
|
|
481
|
+
"label-position": e.labelPosition,
|
|
470
482
|
class: {
|
|
471
483
|
"ui-form": !0,
|
|
472
|
-
horizontal:
|
|
484
|
+
horizontal: e.labelPosition !== "top"
|
|
473
485
|
},
|
|
474
486
|
"validate-on-rule-change": !1
|
|
475
487
|
}), {
|
|
476
|
-
default:
|
|
477
|
-
key:
|
|
478
|
-
label:
|
|
479
|
-
"label-width":
|
|
480
|
-
"value-width":
|
|
481
|
-
prop:
|
|
482
|
-
style:
|
|
483
|
-
width: `${
|
|
484
|
-
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}`
|
|
485
497
|
})
|
|
486
498
|
}, {
|
|
487
|
-
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({
|
|
488
500
|
key: 1,
|
|
489
|
-
modelValue:
|
|
490
|
-
"onUpdate:modelValue": (e) =>
|
|
491
|
-
}, { 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, {
|
|
492
504
|
clearable: !0,
|
|
493
|
-
key: `${
|
|
505
|
+
key: `${n.prop}-${a.value}`,
|
|
494
506
|
style: { display: "inline-block" },
|
|
495
|
-
class: { underline:
|
|
507
|
+
class: { underline: e.valueModel === "underline" }
|
|
496
508
|
}), null, 16, [
|
|
497
509
|
"modelValue",
|
|
498
510
|
"onUpdate:modelValue",
|
|
499
511
|
"class"
|
|
500
|
-
])) : (
|
|
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({
|
|
501
513
|
key: 1,
|
|
502
|
-
modelValue:
|
|
503
|
-
"onUpdate:modelValue": (
|
|
504
|
-
"default-value":
|
|
505
|
-
placeholder:
|
|
506
|
-
}, { 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, {
|
|
507
519
|
style: {
|
|
508
520
|
display: "inline-block",
|
|
509
521
|
marginLeft: "10px",
|
|
510
|
-
width: `${
|
|
522
|
+
width: `${n.width ? n.width + "px" : "100%"}`
|
|
511
523
|
},
|
|
512
|
-
class: { underline:
|
|
524
|
+
class: { underline: e.valueModel === "underline" },
|
|
513
525
|
clearable: !0,
|
|
514
|
-
key: `${
|
|
526
|
+
key: `${n.prop}-${a.value}`
|
|
515
527
|
}), null, 16, [
|
|
516
528
|
"modelValue",
|
|
517
529
|
"onUpdate:modelValue",
|
|
@@ -519,13 +531,13 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
519
531
|
"placeholder",
|
|
520
532
|
"style",
|
|
521
533
|
"class"
|
|
522
|
-
])) : (
|
|
534
|
+
])) : (F(), w("span", ze, H(W(X)(n, s) || "-"), 1))], !0)), 256))], 64)) : (F(), S(r, {
|
|
523
535
|
key: 1,
|
|
524
|
-
modelValue:
|
|
525
|
-
"onUpdate:modelValue": (e) =>
|
|
536
|
+
modelValue: s[n.prop],
|
|
537
|
+
"onUpdate:modelValue": (e) => s[n.prop] = e,
|
|
526
538
|
placeholder: "请输入",
|
|
527
539
|
clearable: !0,
|
|
528
|
-
class:
|
|
540
|
+
class: M({ underline: e.valueModel === "underline" })
|
|
529
541
|
}, null, 8, [
|
|
530
542
|
"modelValue",
|
|
531
543
|
"onUpdate:modelValue",
|
|
@@ -546,31 +558,31 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
546
558
|
"inline",
|
|
547
559
|
"label-position",
|
|
548
560
|
"class"
|
|
549
|
-
]), t.$attrs?.hideHandle ?
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
icon:
|
|
553
|
-
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(),
|
|
554
566
|
size: t.$props.size
|
|
555
567
|
}, {
|
|
556
|
-
default:
|
|
568
|
+
default: K(() => [...n[2] ||= [D("重置", -1)]]),
|
|
557
569
|
_: 1
|
|
558
570
|
}, 8, ["icon", "size"]),
|
|
559
|
-
|
|
560
|
-
icon:
|
|
571
|
+
O(p, {
|
|
572
|
+
icon: W(Me),
|
|
561
573
|
type: "primary",
|
|
562
|
-
onClick:
|
|
574
|
+
onClick: n[1] ||= (e) => o.value && u(o.value),
|
|
563
575
|
size: t.$props.size
|
|
564
576
|
}, {
|
|
565
|
-
default:
|
|
577
|
+
default: K(() => [...n[3] ||= [D("提交", -1)]]),
|
|
566
578
|
_: 1
|
|
567
579
|
}, 8, ["icon", "size"])
|
|
568
580
|
]))], 64);
|
|
569
581
|
};
|
|
570
582
|
}
|
|
571
|
-
}), [["__scopeId", "data-v-f8f2a1f5"]]),
|
|
583
|
+
}), [["__scopeId", "data-v-f8f2a1f5"]]), He = ["disabled"], Z = /* @__PURE__ */ k({
|
|
572
584
|
__name: "index",
|
|
573
|
-
props: /* @__PURE__ */
|
|
585
|
+
props: /* @__PURE__ */ le({
|
|
574
586
|
defaultValue: { default: "" },
|
|
575
587
|
disabled: {
|
|
576
588
|
type: Boolean,
|
|
@@ -583,32 +595,32 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
583
595
|
},
|
|
584
596
|
modelModifiers: {}
|
|
585
597
|
}),
|
|
586
|
-
emits: /* @__PURE__ */
|
|
598
|
+
emits: /* @__PURE__ */ le(["change"], ["update:modelValue"]),
|
|
587
599
|
setup(e, { emit: t }) {
|
|
588
|
-
let n =
|
|
589
|
-
return
|
|
590
|
-
|
|
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({
|
|
591
603
|
element: n.value,
|
|
592
604
|
placeholder: "点击输入内容...",
|
|
593
605
|
content: r.value || e.defaultValue || "",
|
|
594
606
|
toolbarExcludeKeys: ["ai"],
|
|
595
607
|
onChange: (e) => {
|
|
596
608
|
let t = e.getHtml();
|
|
597
|
-
r.value = t,
|
|
609
|
+
r.value = t, i.value = t, o("change", t);
|
|
598
610
|
}
|
|
599
|
-
}),
|
|
600
|
-
}),
|
|
601
|
-
|
|
602
|
-
}),
|
|
603
|
-
|
|
604
|
-
}), (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", {
|
|
605
617
|
ref_key: "editorRef",
|
|
606
618
|
ref: n,
|
|
607
619
|
style: { height: "500px" },
|
|
608
620
|
disabled: e.disabled
|
|
609
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, He));
|
|
610
622
|
}
|
|
611
|
-
}),
|
|
623
|
+
}), Ue = { class: "ui-tree-wrapper" }, We = {
|
|
612
624
|
key: 0,
|
|
613
625
|
style: {
|
|
614
626
|
display: "flex",
|
|
@@ -617,14 +629,14 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
617
629
|
"align-items": "center",
|
|
618
630
|
gap: "10px"
|
|
619
631
|
}
|
|
620
|
-
},
|
|
632
|
+
}, Ge = {
|
|
621
633
|
key: 0,
|
|
622
634
|
class: "custom-tree-node"
|
|
623
|
-
},
|
|
635
|
+
}, Ke = { class: "node-label" }, qe = { style: {
|
|
624
636
|
color: "#ef4444",
|
|
625
637
|
display: "flex",
|
|
626
638
|
"align-items": "center"
|
|
627
|
-
} },
|
|
639
|
+
} }, Je = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
628
640
|
__name: "index",
|
|
629
641
|
props: {
|
|
630
642
|
id: {},
|
|
@@ -641,35 +653,35 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
641
653
|
},
|
|
642
654
|
emits: ["change"],
|
|
643
655
|
setup(e, { emit: t }) {
|
|
644
|
-
let
|
|
656
|
+
let n = E(e, [
|
|
645
657
|
"filterable",
|
|
646
658
|
"placeholder",
|
|
647
659
|
"data",
|
|
648
660
|
"props"
|
|
649
|
-
]),
|
|
650
|
-
|
|
651
|
-
e.filterable &&
|
|
661
|
+
]), r = L(""), i = L(), a = L(null);
|
|
662
|
+
G(r, (t) => {
|
|
663
|
+
e.filterable && a.value.filter(t);
|
|
652
664
|
});
|
|
653
|
-
function
|
|
665
|
+
function o(t, n) {
|
|
654
666
|
return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
|
|
655
667
|
}
|
|
656
|
-
function
|
|
657
|
-
e?.stopPropagation(),
|
|
668
|
+
function s(e, t) {
|
|
669
|
+
e?.stopPropagation(), i.value = t.id;
|
|
658
670
|
}
|
|
659
|
-
function
|
|
660
|
-
|
|
671
|
+
function c() {
|
|
672
|
+
_.prompt("请输入新的名称", "添加节点", {
|
|
661
673
|
confirmButtonText: "确定",
|
|
662
674
|
cancelButtonText: "取消",
|
|
663
675
|
callback: async (e) => {
|
|
664
676
|
if (e.action === "confirm") {
|
|
665
|
-
if (!
|
|
677
|
+
if (!n?.id) return;
|
|
666
678
|
console.log("添加 =》》", e?.value);
|
|
667
679
|
}
|
|
668
680
|
}
|
|
669
681
|
});
|
|
670
682
|
}
|
|
671
|
-
function
|
|
672
|
-
|
|
683
|
+
function l(e) {
|
|
684
|
+
_.prompt("请输入新的名称", "重命名", {
|
|
673
685
|
confirmButtonText: "确定",
|
|
674
686
|
cancelButtonText: "取消",
|
|
675
687
|
inputValue: e.label
|
|
@@ -677,18 +689,18 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
677
689
|
console.log("修改节点 =》》", e);
|
|
678
690
|
});
|
|
679
691
|
}
|
|
680
|
-
async function
|
|
692
|
+
async function u(e) {
|
|
681
693
|
e.id && console.log("删除节点 =》》", e.id);
|
|
682
694
|
}
|
|
683
|
-
return (t,
|
|
684
|
-
let d =
|
|
685
|
-
return
|
|
686
|
-
e.filterable ? (
|
|
687
|
-
modelValue:
|
|
688
|
-
"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,
|
|
689
701
|
placeholder: e.placeholder ?? "请输入",
|
|
690
702
|
clearable: ""
|
|
691
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
703
|
+
}, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? C("", !0) : (F(), S(p, {
|
|
692
704
|
key: 0,
|
|
693
705
|
style: {
|
|
694
706
|
margin: "0px",
|
|
@@ -696,89 +708,89 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
696
708
|
},
|
|
697
709
|
link: ""
|
|
698
710
|
}, {
|
|
699
|
-
default:
|
|
700
|
-
default:
|
|
711
|
+
default: K(() => [O(f, { size: 22 }, {
|
|
712
|
+
default: K(() => [O(W(Ee), { onClick: i[1] ||= (e) => c() })]),
|
|
701
713
|
_: 1
|
|
702
714
|
})]),
|
|
703
715
|
_: 1
|
|
704
|
-
}))])) :
|
|
705
|
-
|
|
706
|
-
|
|
716
|
+
}))])) : C("", !0),
|
|
717
|
+
z(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
718
|
+
O(_, j({
|
|
707
719
|
ref_key: "treeRef",
|
|
708
|
-
ref:
|
|
720
|
+
ref: a,
|
|
709
721
|
style: { "margin-top": "8px" }
|
|
710
722
|
}, {
|
|
711
723
|
...t.$props,
|
|
712
724
|
...t.$attrs
|
|
713
725
|
}, {
|
|
714
|
-
"node-key":
|
|
726
|
+
"node-key": n?.nodeKey || "id",
|
|
715
727
|
"highlight-current": !0,
|
|
716
|
-
"filter-method":
|
|
728
|
+
"filter-method": o
|
|
717
729
|
}), {
|
|
718
|
-
default:
|
|
719
|
-
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))]),
|
|
720
732
|
_: 1
|
|
721
|
-
})) :
|
|
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, {
|
|
722
734
|
key: 0,
|
|
723
735
|
trigger: "click"
|
|
724
736
|
}, {
|
|
725
|
-
dropdown:
|
|
726
|
-
default:
|
|
727
|
-
|
|
737
|
+
dropdown: K(() => [O(h, null, {
|
|
738
|
+
default: K(() => [
|
|
739
|
+
n?.hideNodeAdd ? C("", !0) : (F(), S(m, {
|
|
728
740
|
key: 0,
|
|
729
|
-
onClick:
|
|
741
|
+
onClick: i[2] ||= (e) => c()
|
|
730
742
|
}, {
|
|
731
|
-
default:
|
|
732
|
-
default:
|
|
743
|
+
default: K(() => [O(f, null, {
|
|
744
|
+
default: K(() => [O(W(Oe))]),
|
|
733
745
|
_: 1
|
|
734
|
-
}),
|
|
746
|
+
}), i[3] ||= D("添加 ", -1)]),
|
|
735
747
|
_: 1
|
|
736
748
|
})),
|
|
737
|
-
|
|
749
|
+
n?.hideNodeEdit ? C("", !0) : (F(), S(m, {
|
|
738
750
|
key: 1,
|
|
739
|
-
onClick: (e) =>
|
|
751
|
+
onClick: (e) => l(r.data)
|
|
740
752
|
}, {
|
|
741
|
-
default:
|
|
742
|
-
default:
|
|
753
|
+
default: K(() => [O(f, null, {
|
|
754
|
+
default: K(() => [O(W(ke))]),
|
|
743
755
|
_: 1
|
|
744
|
-
}),
|
|
756
|
+
}), i[4] ||= D("编辑 ", -1)]),
|
|
745
757
|
_: 1
|
|
746
758
|
}, 8, ["onClick"])),
|
|
747
|
-
|
|
759
|
+
n?.hideNodeDel ? C("", !0) : (F(), S(m, {
|
|
748
760
|
key: 2,
|
|
749
|
-
onClick: (e) =>
|
|
761
|
+
onClick: (e) => u(r.data)
|
|
750
762
|
}, {
|
|
751
|
-
default:
|
|
752
|
-
default:
|
|
763
|
+
default: K(() => [T("span", qe, [O(f, null, {
|
|
764
|
+
default: K(() => [O(W(De))]),
|
|
753
765
|
_: 1
|
|
754
|
-
}),
|
|
766
|
+
}), i[5] ||= D("删除 ", -1)])]),
|
|
755
767
|
_: 1
|
|
756
768
|
}, 8, ["onClick"])),
|
|
757
|
-
|
|
769
|
+
z(t.$slots, "node-handle", { data: r.data }, void 0, !0)
|
|
758
770
|
]),
|
|
759
771
|
_: 2
|
|
760
772
|
}, 1024)]),
|
|
761
|
-
default:
|
|
762
|
-
default:
|
|
773
|
+
default: K(() => [O(f, { onClick: (e) => s(e, r.data) }, {
|
|
774
|
+
default: K(() => [O(W(je))]),
|
|
763
775
|
_: 1
|
|
764
776
|
}, 8, ["onClick"])]),
|
|
765
777
|
_: 2
|
|
766
|
-
}, 1024))])) :
|
|
778
|
+
}, 1024))])) : C("", !0)]),
|
|
767
779
|
_: 3
|
|
768
780
|
}, 16, ["node-key"])
|
|
769
781
|
]);
|
|
770
782
|
};
|
|
771
783
|
}
|
|
772
|
-
}), [["__scopeId", "data-v-4495ddac"]]),
|
|
784
|
+
}), [["__scopeId", "data-v-4495ddac"]]), Ye = { style: { height: "100%" } }, Xe = { style: {
|
|
773
785
|
display: "flex",
|
|
774
786
|
"flex-direction": "row",
|
|
775
787
|
"justify-content": "space-between",
|
|
776
788
|
"align-items": "center",
|
|
777
789
|
gap: "10px"
|
|
778
|
-
} },
|
|
790
|
+
} }, Ze = { style: { margin: "10px 0px" } }, Qe = ["onClick"], $e = { key: 0 }, et = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
779
791
|
__name: "index",
|
|
780
792
|
props: {
|
|
781
|
-
loading: { default: () =>
|
|
793
|
+
loading: { default: () => L(!1) },
|
|
782
794
|
data: {},
|
|
783
795
|
placeholder: {},
|
|
784
796
|
props: {},
|
|
@@ -786,47 +798,47 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
786
798
|
filterable: { type: Boolean }
|
|
787
799
|
},
|
|
788
800
|
emits: ["node-click"],
|
|
789
|
-
setup(
|
|
790
|
-
let
|
|
791
|
-
|
|
792
|
-
!
|
|
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]);
|
|
793
805
|
}, { immediate: !0 });
|
|
794
|
-
function
|
|
795
|
-
|
|
806
|
+
function o(e) {
|
|
807
|
+
i.value = e, n("node-click", e);
|
|
796
808
|
}
|
|
797
|
-
return (t,
|
|
798
|
-
let
|
|
799
|
-
return
|
|
800
|
-
|
|
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, {
|
|
801
813
|
key: 0,
|
|
802
|
-
modelValue:
|
|
803
|
-
"onUpdate:modelValue":
|
|
804
|
-
placeholder:
|
|
805
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
806
|
-
|
|
807
|
-
|
|
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({
|
|
808
820
|
class: "infinite-list",
|
|
809
821
|
"infinite-scroll-immediate": !1
|
|
810
|
-
}, t.$attrs), [(
|
|
811
|
-
key: "infinite-list-" +
|
|
812
|
-
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({
|
|
813
825
|
"infinite-list-item": !0,
|
|
814
|
-
active:
|
|
826
|
+
active: n === i.value
|
|
815
827
|
}),
|
|
816
|
-
onClick: (
|
|
817
|
-
}, [
|
|
818
|
-
|
|
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)
|
|
819
831
|
]);
|
|
820
832
|
};
|
|
821
833
|
}
|
|
822
|
-
}), [["__scopeId", "data-v-2180fa82"]]),
|
|
834
|
+
}), [["__scopeId", "data-v-2180fa82"]]), tt = {
|
|
823
835
|
key: 0,
|
|
824
836
|
style: {
|
|
825
837
|
padding: "10px 0px",
|
|
826
838
|
"margin-bottom": "10px",
|
|
827
839
|
"border-bottom": "1px solid #e5e5e5"
|
|
828
840
|
}
|
|
829
|
-
},
|
|
841
|
+
}, nt = { key: 1 }, rt = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
830
842
|
__name: "index",
|
|
831
843
|
props: {
|
|
832
844
|
data: {},
|
|
@@ -839,33 +851,33 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
839
851
|
extra: {},
|
|
840
852
|
labelWidth: {}
|
|
841
853
|
},
|
|
842
|
-
setup(
|
|
843
|
-
let
|
|
854
|
+
setup(e) {
|
|
855
|
+
let t = E(e, [
|
|
844
856
|
"title",
|
|
845
857
|
"column",
|
|
846
858
|
"fields",
|
|
847
859
|
"data"
|
|
848
860
|
]);
|
|
849
|
-
return (
|
|
850
|
-
let
|
|
851
|
-
return
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
default:
|
|
856
|
-
key:
|
|
857
|
-
label:
|
|
858
|
-
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
|
|
859
871
|
}, {
|
|
860
|
-
default:
|
|
872
|
+
default: K(() => [t.render ? (F(), S(V(W(Y)(t, e.data).component), j({
|
|
861
873
|
key: 0,
|
|
862
|
-
modelValue:
|
|
863
|
-
"onUpdate:modelValue": (n) =>
|
|
864
|
-
}, { 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, {
|
|
865
877
|
clearable: !0,
|
|
866
|
-
key:
|
|
878
|
+
key: t.prop,
|
|
867
879
|
style: { display: "inline-block" }
|
|
868
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (
|
|
880
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (F(), w("span", nt, H(e.data[t.prop] || "-"), 1))]),
|
|
869
881
|
_: 2
|
|
870
882
|
}, 1032, ["label", "span"]))), 128))]),
|
|
871
883
|
_: 1
|
|
@@ -873,10 +885,10 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
873
885
|
], 64);
|
|
874
886
|
};
|
|
875
887
|
}
|
|
876
|
-
}), [["__scopeId", "data-v-f02c30f9"]]),
|
|
888
|
+
}), [["__scopeId", "data-v-f02c30f9"]]), it = {
|
|
877
889
|
key: 0,
|
|
878
890
|
class: "dialog-footer"
|
|
879
|
-
},
|
|
891
|
+
}, at = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
880
892
|
__name: "index",
|
|
881
893
|
props: {
|
|
882
894
|
visible: { type: Boolean },
|
|
@@ -891,36 +903,36 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
891
903
|
"submit"
|
|
892
904
|
],
|
|
893
905
|
setup(e, { emit: t }) {
|
|
894
|
-
let
|
|
895
|
-
function
|
|
896
|
-
|
|
906
|
+
let n = t, r = e, i = L();
|
|
907
|
+
function a() {
|
|
908
|
+
n("close"), n("update:visible", !1);
|
|
897
909
|
}
|
|
898
|
-
function
|
|
899
|
-
|
|
910
|
+
function o() {
|
|
911
|
+
n("submit", U(i?.value || {})), n("update:visible", !1);
|
|
900
912
|
}
|
|
901
913
|
return (e, t) => {
|
|
902
|
-
let
|
|
903
|
-
return
|
|
904
|
-
"model-value":
|
|
905
|
-
"show-close":
|
|
906
|
-
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,
|
|
907
919
|
"destroy-on-close": "",
|
|
908
920
|
"lock-scroll": !1,
|
|
909
921
|
"close-on-click-modal": !1,
|
|
910
|
-
"onUpdate:modelValue": t[0] ||= (e) => !e &&
|
|
911
|
-
onClose:
|
|
922
|
+
"onUpdate:modelValue": t[0] ||= (e) => !e && a(),
|
|
923
|
+
onClose: a
|
|
912
924
|
}), {
|
|
913
|
-
default:
|
|
925
|
+
default: K(() => [(F(), S(V(r.component), j({
|
|
914
926
|
ref_key: "slotRef",
|
|
915
|
-
ref:
|
|
916
|
-
},
|
|
917
|
-
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)]]),
|
|
918
930
|
_: 1
|
|
919
|
-
}),
|
|
931
|
+
}), O(n, {
|
|
920
932
|
type: "primary",
|
|
921
|
-
onClick:
|
|
933
|
+
onClick: o
|
|
922
934
|
}, {
|
|
923
|
-
default:
|
|
935
|
+
default: K(() => [...t[2] ||= [D("确定", -1)]]),
|
|
924
936
|
_: 1
|
|
925
937
|
})]))]),
|
|
926
938
|
_: 1
|
|
@@ -934,63 +946,63 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
|
|
|
934
946
|
}), [["__scopeId", "data-v-fde928bf"]]);
|
|
935
947
|
//#endregion
|
|
936
948
|
//#region src/components/utils/render.ts
|
|
937
|
-
function
|
|
938
|
-
return
|
|
949
|
+
function ot(t) {
|
|
950
|
+
return A("template", { style: {
|
|
939
951
|
display: "flex",
|
|
940
952
|
flexDirection: "row",
|
|
941
953
|
flexWrap: "wrap"
|
|
942
|
-
} }, (Array.isArray(
|
|
943
|
-
let { text:
|
|
944
|
-
return
|
|
945
|
-
...
|
|
954
|
+
} }, (Array.isArray(t) ? t : [t]).map((t) => {
|
|
955
|
+
let { text: n, ...r } = t;
|
|
956
|
+
return A(e, {
|
|
957
|
+
...r,
|
|
946
958
|
link: !0,
|
|
947
959
|
size: "small",
|
|
948
|
-
type:
|
|
949
|
-
}, () =>
|
|
960
|
+
type: t.type || "default"
|
|
961
|
+
}, () => n);
|
|
950
962
|
}));
|
|
951
963
|
}
|
|
952
|
-
function
|
|
953
|
-
return Array.isArray(e) ?
|
|
964
|
+
function st(e) {
|
|
965
|
+
return Array.isArray(e) ? A("div", { style: {
|
|
954
966
|
display: "flex",
|
|
955
967
|
gap: "8px",
|
|
956
968
|
flexDirection: "row",
|
|
957
969
|
flexWrap: "wrap"
|
|
958
|
-
} }, e.map((e) =>
|
|
970
|
+
} }, e.map((e) => A(g, {
|
|
959
971
|
...e,
|
|
960
972
|
type: e.type || "primary"
|
|
961
|
-
},
|
|
973
|
+
}, A(y, {
|
|
962
974
|
lineClamp: e?.lineClamp,
|
|
963
975
|
type: e.type || "primary"
|
|
964
|
-
}, () => e.prop)))) :
|
|
976
|
+
}, () => e.prop)))) : A(g, {
|
|
965
977
|
...e,
|
|
966
978
|
type: e.type || "primary"
|
|
967
|
-
},
|
|
979
|
+
}, A(y, {
|
|
968
980
|
lineClamp: e?.lineClamp,
|
|
969
981
|
type: e.type || "primary"
|
|
970
982
|
}, () => e.prop));
|
|
971
983
|
}
|
|
972
|
-
function
|
|
973
|
-
return
|
|
984
|
+
function ct(e) {
|
|
985
|
+
return A("div", { style: {
|
|
974
986
|
display: "flex",
|
|
975
987
|
gap: "4px",
|
|
976
988
|
flexDirection: "row",
|
|
977
989
|
flexWrap: "wrap"
|
|
978
|
-
} }, (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)));
|
|
979
991
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
992
|
+
function lt(e) {
|
|
993
|
+
return A(v, { ...e });
|
|
982
994
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
995
|
+
function ut(e) {
|
|
996
|
+
return A(re, {
|
|
985
997
|
style: { minWidth: "160px" },
|
|
986
998
|
...e,
|
|
987
999
|
placeholder: "请选择",
|
|
988
1000
|
filterable: !0
|
|
989
1001
|
});
|
|
990
1002
|
}
|
|
991
|
-
function
|
|
1003
|
+
function dt(e) {
|
|
992
1004
|
let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
993
|
-
return
|
|
1005
|
+
return A(r, {
|
|
994
1006
|
format: t,
|
|
995
1007
|
valueFormat: t,
|
|
996
1008
|
startPlaceholder: "开始时间",
|
|
@@ -1000,9 +1012,9 @@ function Xe(e) {
|
|
|
1000
1012
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
1001
1013
|
});
|
|
1002
1014
|
}
|
|
1003
|
-
function
|
|
1015
|
+
function ft(e) {
|
|
1004
1016
|
let { start: t = "00:00", end: n = "23:30", ...r } = e;
|
|
1005
|
-
return
|
|
1017
|
+
return A(oe, {
|
|
1006
1018
|
start: t,
|
|
1007
1019
|
end: n,
|
|
1008
1020
|
...r,
|
|
@@ -1010,15 +1022,15 @@ function Ze(e) {
|
|
|
1010
1022
|
filterable: !0
|
|
1011
1023
|
});
|
|
1012
1024
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return
|
|
1025
|
+
function pt(e) {
|
|
1026
|
+
return A(p, {
|
|
1015
1027
|
...e,
|
|
1016
1028
|
placeholder: "请输入"
|
|
1017
1029
|
});
|
|
1018
1030
|
}
|
|
1019
|
-
function
|
|
1031
|
+
function mt(e) {
|
|
1020
1032
|
let { align: t = "left", controlsPosition: n = "right", ...r } = e;
|
|
1021
|
-
return
|
|
1033
|
+
return A(m, {
|
|
1022
1034
|
align: t,
|
|
1023
1035
|
style: {
|
|
1024
1036
|
...e?.style || {},
|
|
@@ -1029,47 +1041,47 @@ function $e(e) {
|
|
|
1029
1041
|
...r
|
|
1030
1042
|
});
|
|
1031
1043
|
}
|
|
1032
|
-
function
|
|
1044
|
+
function ht(e) {
|
|
1033
1045
|
let { rows: t = 1, ...n } = e;
|
|
1034
|
-
return
|
|
1046
|
+
return A(p, {
|
|
1035
1047
|
placeholder: "请输入",
|
|
1036
1048
|
rows: t,
|
|
1037
1049
|
...n,
|
|
1038
1050
|
type: "textarea"
|
|
1039
1051
|
});
|
|
1040
1052
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return
|
|
1053
|
+
function gt(e) {
|
|
1054
|
+
return A(h, {
|
|
1043
1055
|
placeholder: "请输入",
|
|
1044
1056
|
...e,
|
|
1045
1057
|
clearable: !1
|
|
1046
1058
|
});
|
|
1047
1059
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return
|
|
1060
|
+
function _t(e) {
|
|
1061
|
+
return A(Z, e);
|
|
1050
1062
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return
|
|
1063
|
+
function vt(e) {
|
|
1064
|
+
return A(te, e);
|
|
1053
1065
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return
|
|
1066
|
+
function yt(e) {
|
|
1067
|
+
return A(y, e, () => e.prop);
|
|
1056
1068
|
}
|
|
1057
1069
|
var Q = {
|
|
1058
|
-
button:
|
|
1059
|
-
link:
|
|
1060
|
-
tag:
|
|
1061
|
-
switch:
|
|
1062
|
-
select:
|
|
1063
|
-
datePicker:
|
|
1064
|
-
timeSelect:
|
|
1065
|
-
input:
|
|
1066
|
-
inputNumber:
|
|
1067
|
-
textarea:
|
|
1068
|
-
inputTag:
|
|
1069
|
-
editor:
|
|
1070
|
-
radio:
|
|
1071
|
-
text:
|
|
1072
|
-
},
|
|
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({
|
|
1073
1085
|
name: "UiColumn",
|
|
1074
1086
|
__name: "UiColumn",
|
|
1075
1087
|
props: {
|
|
@@ -1080,69 +1092,69 @@ var Q = {
|
|
|
1080
1092
|
size: {}
|
|
1081
1093
|
},
|
|
1082
1094
|
emits: ["update:data"],
|
|
1083
|
-
setup(
|
|
1084
|
-
let
|
|
1085
|
-
function
|
|
1086
|
-
let
|
|
1087
|
-
Object.keys(Q).forEach((
|
|
1088
|
-
let
|
|
1089
|
-
|
|
1090
|
-
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 : {
|
|
1091
1103
|
placeholder: "请输入",
|
|
1092
1104
|
filterable: !0,
|
|
1093
|
-
...
|
|
1094
|
-
prop:
|
|
1095
|
-
modelValue:
|
|
1096
|
-
onChange:
|
|
1097
|
-
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))
|
|
1098
1110
|
};
|
|
1099
|
-
return Q[
|
|
1111
|
+
return Q[o](a);
|
|
1100
1112
|
};
|
|
1101
1113
|
});
|
|
1102
|
-
let
|
|
1114
|
+
let a = r.render ? r.render({
|
|
1103
1115
|
data: e,
|
|
1104
1116
|
index: t,
|
|
1105
|
-
h:
|
|
1106
|
-
column:
|
|
1117
|
+
h: i,
|
|
1118
|
+
column: r
|
|
1107
1119
|
}) : null;
|
|
1108
|
-
return
|
|
1120
|
+
return a ? typeof a == "object" ? a : A("div", { innerHTML: String(a) }) : null;
|
|
1109
1121
|
}
|
|
1110
|
-
return (
|
|
1111
|
-
let
|
|
1112
|
-
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, {
|
|
1113
1125
|
key: 0,
|
|
1114
|
-
label:
|
|
1115
|
-
align:
|
|
1126
|
+
label: e.column.label,
|
|
1127
|
+
align: r.align
|
|
1116
1128
|
}, {
|
|
1117
|
-
default:
|
|
1129
|
+
default: K(() => [(F(!0), w(b, null, R(e.column.children, (e) => (F(), S(a, j({
|
|
1118
1130
|
column: e,
|
|
1119
|
-
data:
|
|
1120
|
-
}, { ref_for: !0 },
|
|
1131
|
+
data: r.data
|
|
1132
|
+
}, { ref_for: !0 }, t.$attrs, { align: r.align }), null, 16, [
|
|
1121
1133
|
"column",
|
|
1122
1134
|
"data",
|
|
1123
1135
|
"align"
|
|
1124
1136
|
]))), 256))]),
|
|
1125
1137
|
_: 1
|
|
1126
|
-
}, 8, ["label", "align"])) : (
|
|
1138
|
+
}, 8, ["label", "align"])) : (F(), S(o, {
|
|
1127
1139
|
key: 1,
|
|
1128
|
-
prop: String(
|
|
1129
|
-
label:
|
|
1130
|
-
"column-key": String(
|
|
1131
|
-
align:
|
|
1132
|
-
width:
|
|
1133
|
-
"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
|
|
1134
1146
|
}, {
|
|
1135
|
-
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)), {
|
|
1136
1148
|
key: 0,
|
|
1137
|
-
align:
|
|
1138
|
-
size:
|
|
1139
|
-
}, null, 8, ["align", "size"])) : (
|
|
1149
|
+
align: r.align,
|
|
1150
|
+
size: r.size
|
|
1151
|
+
}, null, 8, ["align", "size"])) : (F(), S(s, {
|
|
1140
1152
|
key: 1,
|
|
1141
|
-
"line-clamp":
|
|
1153
|
+
"line-clamp": e.column?.lineClamp || 2
|
|
1142
1154
|
}, {
|
|
1143
|
-
default:
|
|
1155
|
+
default: K(() => [D(H(t.row[e.column.prop]), 1)]),
|
|
1144
1156
|
_: 2
|
|
1145
|
-
}, 1032, ["line-clamp"]))], 64)) :
|
|
1157
|
+
}, 1032, ["line-clamp"]))], 64)) : C("", !0)]),
|
|
1146
1158
|
_: 1
|
|
1147
1159
|
}, 8, [
|
|
1148
1160
|
"prop",
|
|
@@ -1154,7 +1166,7 @@ var Q = {
|
|
|
1154
1166
|
]));
|
|
1155
1167
|
};
|
|
1156
1168
|
}
|
|
1157
|
-
}),
|
|
1169
|
+
}), xt = /* @__PURE__ */ q(/* @__PURE__ */ k({
|
|
1158
1170
|
__name: "index",
|
|
1159
1171
|
props: {
|
|
1160
1172
|
loading: {
|
|
@@ -1166,14 +1178,14 @@ var Q = {
|
|
|
1166
1178
|
default: !1
|
|
1167
1179
|
},
|
|
1168
1180
|
size: { default: "default" },
|
|
1169
|
-
data: { default: () =>
|
|
1181
|
+
data: { default: () => I([]) },
|
|
1170
1182
|
columns: {},
|
|
1171
1183
|
align: { default: "left" },
|
|
1172
1184
|
hidePagination: {
|
|
1173
1185
|
type: Boolean,
|
|
1174
1186
|
default: !1
|
|
1175
1187
|
},
|
|
1176
|
-
pagination: { default: () =>
|
|
1188
|
+
pagination: { default: () => I({
|
|
1177
1189
|
page: 1,
|
|
1178
1190
|
pageSize: 10,
|
|
1179
1191
|
total: 0,
|
|
@@ -1190,8 +1202,8 @@ var Q = {
|
|
|
1190
1202
|
rowKey: {}
|
|
1191
1203
|
},
|
|
1192
1204
|
emits: ["pagination"],
|
|
1193
|
-
setup(
|
|
1194
|
-
let
|
|
1205
|
+
setup(e, { emit: t }) {
|
|
1206
|
+
let n = t, r = E(e, [
|
|
1195
1207
|
"loading",
|
|
1196
1208
|
"border",
|
|
1197
1209
|
"align",
|
|
@@ -1199,59 +1211,59 @@ var Q = {
|
|
|
1199
1211
|
"pagination",
|
|
1200
1212
|
"data",
|
|
1201
1213
|
"size"
|
|
1202
|
-
]),
|
|
1203
|
-
|
|
1204
|
-
!e?.length || !t?.length ||
|
|
1205
|
-
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;
|
|
1206
1218
|
let n = t.filter((t) => e.includes(t.id));
|
|
1207
|
-
|
|
1219
|
+
i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
|
|
1208
1220
|
});
|
|
1209
1221
|
}, { immediate: !0 });
|
|
1210
|
-
function
|
|
1211
|
-
|
|
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));
|
|
1212
1224
|
}
|
|
1213
|
-
function
|
|
1214
|
-
|
|
1215
|
-
...
|
|
1216
|
-
[
|
|
1225
|
+
function l(t, n, r) {
|
|
1226
|
+
e.data[t] && (e.data[t] = {
|
|
1227
|
+
...e.data[t],
|
|
1228
|
+
[n]: r
|
|
1217
1229
|
});
|
|
1218
1230
|
}
|
|
1219
|
-
return (t,
|
|
1220
|
-
let
|
|
1221
|
-
return
|
|
1222
|
-
|
|
1223
|
-
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,
|
|
1224
1236
|
lazy: !0,
|
|
1225
1237
|
class: "ui-table",
|
|
1226
1238
|
fit: "",
|
|
1227
1239
|
ref_key: "tableRef",
|
|
1228
|
-
ref:
|
|
1240
|
+
ref: i
|
|
1229
1241
|
}), {
|
|
1230
|
-
default:
|
|
1231
|
-
|
|
1242
|
+
default: K(() => [
|
|
1243
|
+
o.value ? (F(), S(u, {
|
|
1232
1244
|
key: 0,
|
|
1233
1245
|
type: "selection",
|
|
1234
|
-
selectable:
|
|
1246
|
+
selectable: r.selectable,
|
|
1235
1247
|
"column-key": "selection_0",
|
|
1236
|
-
align:
|
|
1248
|
+
align: e.align,
|
|
1237
1249
|
fixed: "left"
|
|
1238
|
-
}, null, 8, ["selectable", "align"])) :
|
|
1239
|
-
|
|
1250
|
+
}, null, 8, ["selectable", "align"])) : C("", !0),
|
|
1251
|
+
a.value ? (F(), S(u, {
|
|
1240
1252
|
key: 1,
|
|
1241
1253
|
fixed: "left",
|
|
1242
1254
|
type: "index",
|
|
1243
1255
|
label: "序号",
|
|
1244
1256
|
width: "60",
|
|
1245
1257
|
"column-key": "index_1",
|
|
1246
|
-
align:
|
|
1247
|
-
}, null, 8, ["align"])) :
|
|
1248
|
-
(
|
|
1249
|
-
key:
|
|
1250
|
-
column:
|
|
1251
|
-
data:
|
|
1252
|
-
align:
|
|
1253
|
-
"onUpdate:data":
|
|
1254
|
-
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
|
|
1255
1267
|
}, null, 8, [
|
|
1256
1268
|
"column",
|
|
1257
1269
|
"data",
|
|
@@ -1260,54 +1272,54 @@ var Q = {
|
|
|
1260
1272
|
]))), 128))
|
|
1261
1273
|
]),
|
|
1262
1274
|
_: 1
|
|
1263
|
-
}, 16, ["border", "data"])), [[
|
|
1264
|
-
|
|
1275
|
+
}, 16, ["border", "data"])), [[p, e.loading]]),
|
|
1276
|
+
e.hidePagination ? C("", !0) : (F(), S(f, {
|
|
1265
1277
|
key: 0,
|
|
1266
1278
|
class: "ui-pagination",
|
|
1267
1279
|
size: "small",
|
|
1268
1280
|
background: "",
|
|
1269
1281
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
1270
|
-
"page-sizes":
|
|
1282
|
+
"page-sizes": e.pagination?.pageSizes || [
|
|
1271
1283
|
10,
|
|
1272
1284
|
20,
|
|
1273
1285
|
50
|
|
1274
1286
|
],
|
|
1275
|
-
"page-size":
|
|
1276
|
-
"onUpdate:pageSize":
|
|
1277
|
-
"current-page":
|
|
1278
|
-
"onUpdate:currentPage":
|
|
1279
|
-
total:
|
|
1280
|
-
"onUpdate:total":
|
|
1281
|
-
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
|
|
1282
1294
|
}, null, 8, [
|
|
1283
1295
|
"page-sizes",
|
|
1284
1296
|
"page-size",
|
|
1285
1297
|
"current-page",
|
|
1286
1298
|
"total"
|
|
1287
1299
|
])),
|
|
1288
|
-
|
|
1300
|
+
z(t.$slots, "default", {}, void 0, !0)
|
|
1289
1301
|
]);
|
|
1290
1302
|
};
|
|
1291
1303
|
}
|
|
1292
|
-
}), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */
|
|
1304
|
+
}), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */ k({
|
|
1293
1305
|
__name: "Series",
|
|
1294
1306
|
props: {
|
|
1295
1307
|
option: {},
|
|
1296
1308
|
height: {}
|
|
1297
1309
|
},
|
|
1298
1310
|
setup(e) {
|
|
1299
|
-
let t = e, n =
|
|
1300
|
-
|
|
1301
|
-
n.value && (r.value =
|
|
1302
|
-
}),
|
|
1311
|
+
let t = e, n = L(null), r = L(null);
|
|
1312
|
+
P(() => {
|
|
1313
|
+
n.value && (r.value = be(n.value), i());
|
|
1314
|
+
}), de(() => {
|
|
1303
1315
|
r.value && r.value.dispose();
|
|
1304
|
-
}),
|
|
1305
|
-
e &&
|
|
1316
|
+
}), G(() => t.option, (e) => {
|
|
1317
|
+
e && i();
|
|
1306
1318
|
}, { deep: !0 });
|
|
1307
|
-
function
|
|
1319
|
+
function i() {
|
|
1308
1320
|
r.value && (!Array.isArray(t?.option.series) || !t?.option?.series?.length || r.value.setOption(t.option));
|
|
1309
1321
|
}
|
|
1310
|
-
return (e, r) => (
|
|
1322
|
+
return (e, r) => (F(), w("div", j(e.$attrs, {
|
|
1311
1323
|
style: {
|
|
1312
1324
|
width: "100%",
|
|
1313
1325
|
height: t.height || "100%",
|
|
@@ -1317,7 +1329,7 @@ var Q = {
|
|
|
1317
1329
|
ref: n
|
|
1318
1330
|
}), null, 16));
|
|
1319
1331
|
}
|
|
1320
|
-
}),
|
|
1332
|
+
}), St = /* @__PURE__ */ k({
|
|
1321
1333
|
__name: "Pie",
|
|
1322
1334
|
props: {
|
|
1323
1335
|
data: {},
|
|
@@ -1327,32 +1339,32 @@ var Q = {
|
|
|
1327
1339
|
height: {}
|
|
1328
1340
|
},
|
|
1329
1341
|
setup(e) {
|
|
1330
|
-
let
|
|
1331
|
-
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;
|
|
1332
1344
|
return {
|
|
1333
1345
|
title: {
|
|
1334
|
-
text:
|
|
1346
|
+
text: t?.title || "",
|
|
1335
1347
|
left: "left"
|
|
1336
1348
|
},
|
|
1337
1349
|
tooltip: { trigger: "item" },
|
|
1338
|
-
legend: e?.legend ?? (
|
|
1350
|
+
legend: e?.legend ?? (t?.horizontal ? {
|
|
1339
1351
|
orient: "vertical",
|
|
1340
1352
|
top: "center",
|
|
1341
1353
|
right: "10%",
|
|
1342
|
-
data:
|
|
1354
|
+
data: t?.data?.map((e) => e.name),
|
|
1343
1355
|
formatter: (e) => {
|
|
1344
|
-
let
|
|
1345
|
-
return `${e} ${
|
|
1356
|
+
let n = t?.data?.find((t) => t.name === e);
|
|
1357
|
+
return `${e} ${n ? n.value : 0}`;
|
|
1346
1358
|
}
|
|
1347
1359
|
} : {
|
|
1348
1360
|
top: "5%",
|
|
1349
1361
|
left: "center"
|
|
1350
1362
|
}),
|
|
1351
|
-
series:
|
|
1352
|
-
name:
|
|
1363
|
+
series: n.length > 0 ? n : [{
|
|
1364
|
+
name: r?.name || "xx饼图",
|
|
1353
1365
|
type: "pie",
|
|
1354
1366
|
radius: ["40%", "70%"],
|
|
1355
|
-
center:
|
|
1367
|
+
center: t?.horizontal || i === "vertical" ? ["30%", "50%"] : ["50%", "50%"],
|
|
1356
1368
|
avoidLabelOverlap: !1,
|
|
1357
1369
|
itemStyle: { borderRadius: 10 },
|
|
1358
1370
|
label: {
|
|
@@ -1365,16 +1377,16 @@ var Q = {
|
|
|
1365
1377
|
fontWeight: "bold"
|
|
1366
1378
|
} },
|
|
1367
1379
|
labelLine: { show: !1 },
|
|
1368
|
-
data:
|
|
1380
|
+
data: t.data || []
|
|
1369
1381
|
}]
|
|
1370
1382
|
};
|
|
1371
1383
|
});
|
|
1372
|
-
return (t, r) => (
|
|
1373
|
-
option:
|
|
1384
|
+
return (t, r) => (F(), S($, j({
|
|
1385
|
+
option: n.value,
|
|
1374
1386
|
height: e.height
|
|
1375
1387
|
}, t.$attrs), null, 16, ["option", "height"]));
|
|
1376
1388
|
}
|
|
1377
|
-
}),
|
|
1389
|
+
}), Ct = /* @__PURE__ */ k({
|
|
1378
1390
|
__name: "Bar",
|
|
1379
1391
|
props: {
|
|
1380
1392
|
data: {},
|
|
@@ -1382,11 +1394,11 @@ var Q = {
|
|
|
1382
1394
|
title: {}
|
|
1383
1395
|
},
|
|
1384
1396
|
setup(e) {
|
|
1385
|
-
let
|
|
1386
|
-
let e =
|
|
1397
|
+
let t = e, n = x(() => {
|
|
1398
|
+
let e = t?.option || {};
|
|
1387
1399
|
return {
|
|
1388
1400
|
title: {
|
|
1389
|
-
text:
|
|
1401
|
+
text: t?.title || "",
|
|
1390
1402
|
left: "left"
|
|
1391
1403
|
},
|
|
1392
1404
|
tooltip: { trigger: "axis" },
|
|
@@ -1397,10 +1409,10 @@ var Q = {
|
|
|
1397
1409
|
},
|
|
1398
1410
|
xAxis: {
|
|
1399
1411
|
type: "category",
|
|
1400
|
-
data:
|
|
1412
|
+
data: t.data.map((e) => e.name)
|
|
1401
1413
|
},
|
|
1402
1414
|
yAxis: { type: "value" },
|
|
1403
|
-
series:
|
|
1415
|
+
series: t?.option?.series || t.data?.map((e) => ({
|
|
1404
1416
|
name: e?.name || "xx柱状图",
|
|
1405
1417
|
type: "bar",
|
|
1406
1418
|
data: e.value,
|
|
@@ -1408,23 +1420,52 @@ var Q = {
|
|
|
1408
1420
|
}))
|
|
1409
1421
|
};
|
|
1410
1422
|
});
|
|
1411
|
-
return (e, t) => (
|
|
1423
|
+
return (e, t) => (F(), S($, { option: n.value }, null, 8, ["option"]));
|
|
1412
1424
|
}
|
|
1413
|
-
}),
|
|
1414
|
-
UiCard:
|
|
1415
|
-
UiTable:
|
|
1416
|
-
UiFilter:
|
|
1417
|
-
UiForm:
|
|
1418
|
-
UiEditor:
|
|
1419
|
-
UiTree:
|
|
1420
|
-
UiInfiniteScroll:
|
|
1421
|
-
UiDescriptions:
|
|
1422
|
-
UiDialog:
|
|
1423
|
-
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,
|
|
1424
1436
|
UiSeries: $,
|
|
1425
|
-
UiBar:
|
|
1426
|
-
},
|
|
1427
|
-
|
|
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);
|
|
1428
1469
|
} };
|
|
1429
1470
|
//#endregion
|
|
1430
|
-
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 };
|