china-mobile-international-custom-components 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ApplicationIcon.mjs +30 -28
- package/es/PageContainer.mjs +178 -149
- package/es/assets/PageContainer.css +1 -1
- package/es/index.mjs +2 -2
- package/lib/ApplicationIcon.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/index.js +2 -2
- package/package.json +4 -4
- package/es/assets/AvailableRangePreview.css +0 -1
- package/es/assets/AvailableRangeSetting.css +0 -1
- package/es/assets/CustomSidebar.css +0 -1
- package/es/chunks/AvailableRangePreview.D4mZe1lQ.js +0 -217
- package/es/chunks/AvailableRangeSetting.BkSLnQ6N.js +0 -215
- package/es/chunks/CustomSidebar.BWGoPtLi.js +0 -506
- package/es/chunks/CustomTitle.BLZ7evms.js +0 -5
- package/es/chunks/CustomToggle.CP3M2_f3.js +0 -165
- package/es/chunks/PageContainer.D-G32lvP.js +0 -329
- package/es/chunks/_plugin-vue_export-helper.CVVE_0_F.js +0 -13
- package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +0 -6
- package/es/chunks/index.39AUVSwV.js +0 -288
- package/es/chunks/index.AHEDCg43.js +0 -160
- package/es/chunks/index.B67AnSJI.js +0 -154
- package/es/chunks/index.B9F4VYQK.js +0 -118
- package/es/chunks/index.BPxF6Amx.js +0 -157
- package/es/chunks/index.C2gKjqoA.js +0 -209
- package/es/chunks/index.DTtNnKDH.js +0 -288
- package/es/chunks/index.DtBeJlu6.js +0 -142
- package/es/chunks/index.kR57MtNP.js +0 -211
- package/es/chunks/index.wQj5YKPy.js +0 -288
- package/es/chunks/layout.BE8_kCeR.js +0 -619
- package/es/chunks/layout.BNqqXOrs.js +0 -639
- package/es/chunks/layout.C6AMos7n.js +0 -17
- package/es/chunks/layout.CWFXohJu.js +0 -622
- package/es/chunks/layout.ClkgLsEw.js +0 -640
- package/es/chunks/layout.R5FQNRjS.js +0 -619
- package/es/chunks/layout.nKB_kc-U.js +0 -26
- package/es/chunks/utils.BhlZXNZ6.js +0 -19
- package/lib/assets/AvailableRangePreview.css +0 -1
- package/lib/assets/AvailableRangeSetting.css +0 -1
- package/lib/assets/CustomSidebar.css +0 -1
- package/lib/chunks/AvailableRangePreview.CkgZsXP0.js +0 -1
- package/lib/chunks/AvailableRangeSetting.CF-jHm4x.js +0 -1
- package/lib/chunks/CustomSidebar.CMYJFb2P.js +0 -1
- package/lib/chunks/CustomTitle.BkFZ-ZIq.js +0 -1
- package/lib/chunks/CustomToggle.C0PpzKPP.js +0 -1
- package/lib/chunks/PageContainer.GH56wASV.js +0 -1
- package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +0 -1
- package/lib/chunks/_plugin-vue_export-helper.DAGvX2Jf.js +0 -1
- package/lib/chunks/index.BfHfKST0.js +0 -1
- package/lib/chunks/index.BlXappa4.js +0 -1
- package/lib/chunks/index.CCxHaoi4.js +0 -1
- package/lib/chunks/index.CSYGhK9M.js +0 -1
- package/lib/chunks/index.C_IlZrzE.js +0 -1
- package/lib/chunks/index.DUGtabLJ.js +0 -1
- package/lib/chunks/index.Dakz8S3g.js +0 -1
- package/lib/chunks/index.DsmgWFv8.js +0 -1
- package/lib/chunks/index.DydPD8Lc.js +0 -1
- package/lib/chunks/index.k_hSuA6i.js +0 -1
- package/lib/chunks/layout.BEW4Cgni.js +0 -1
- package/lib/chunks/layout.BJjU9nKW.js +0 -1
- package/lib/chunks/layout.BQigNrr5.js +0 -1
- package/lib/chunks/layout.ClFtiz-t.js +0 -1
- package/lib/chunks/layout.CmDwUHZo.js +0 -1
- package/lib/chunks/layout.CqbDoD_v.js +0 -1
- package/lib/chunks/layout.CwJgDGuR.js +0 -1
- package/lib/chunks/layout.D0zeFdw9.js +0 -1
- package/lib/chunks/utils.BT5Uuz2Q.js +0 -1
package/es/ApplicationIcon.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { computed as
|
|
3
|
-
import { WorkflowIcon3 as
|
|
1
|
+
import { w as y } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { computed as p, createElementBlock as I, openBlock as n, createBlock as c, unref as i, normalizeStyle as E, withCtx as a, createVNode as T, resolveDynamicComponent as s } from "vue";
|
|
3
|
+
import { WorkflowIcon3 as g, WorkflowIcon1 as w, Model as z, McpIcon as M, Plugin as O, Workflow as P } from "color-message-aibox-vue";
|
|
4
|
+
import { ElImage as k, ElIcon as u } from "element-plus";
|
|
4
5
|
const e = {
|
|
5
6
|
AGENT: "3",
|
|
6
7
|
// 智能体
|
|
@@ -16,7 +17,9 @@ const e = {
|
|
|
16
17
|
all: "all",
|
|
17
18
|
autonomous: 1,
|
|
18
19
|
dialogue: 3
|
|
19
|
-
},
|
|
20
|
+
}, N = /* @__PURE__ */ Object.assign({
|
|
21
|
+
name: "ApplicationIcon"
|
|
22
|
+
}, {
|
|
20
23
|
__name: "layout",
|
|
21
24
|
props: {
|
|
22
25
|
row: {
|
|
@@ -38,48 +41,47 @@ const e = {
|
|
|
38
41
|
}
|
|
39
42
|
},
|
|
40
43
|
setup(o) {
|
|
41
|
-
const t = o,
|
|
42
|
-
[m.autonomous]:
|
|
43
|
-
[m.dialogue]:
|
|
44
|
+
const t = o, l = p(() => t.row?.[t.iconField]), r = p(() => t.applicationType === e.AGENT ? {
|
|
45
|
+
[m.autonomous]: w,
|
|
46
|
+
[m.dialogue]: g
|
|
44
47
|
}[t.row?.type] : {
|
|
45
|
-
[e.WORKFLOW]:
|
|
46
|
-
[e.PLUGIN]:
|
|
47
|
-
[e.MCP]:
|
|
48
|
-
[e.MODEL]:
|
|
48
|
+
[e.WORKFLOW]: P,
|
|
49
|
+
[e.PLUGIN]: O,
|
|
50
|
+
[e.MCP]: M,
|
|
51
|
+
[e.MODEL]: z
|
|
49
52
|
}[t.applicationType]);
|
|
50
|
-
return (d,
|
|
51
|
-
|
|
52
|
-
return a.value ? (c(), n(f, {
|
|
53
|
+
return (d, f) => (n(), I("div", null, [
|
|
54
|
+
l.value ? (n(), c(i(k), {
|
|
53
55
|
key: 0,
|
|
54
|
-
style:
|
|
55
|
-
src:
|
|
56
|
+
style: E({ width: o.size + "px", height: o.size + "px" }),
|
|
57
|
+
src: l.value,
|
|
56
58
|
fit: "cover",
|
|
57
59
|
class: "radius-8"
|
|
58
60
|
}, {
|
|
59
|
-
error:
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
(
|
|
61
|
+
error: a(() => [
|
|
62
|
+
T(i(u), { size: o.size }, {
|
|
63
|
+
default: a(() => [
|
|
64
|
+
(n(), c(s(r.value)))
|
|
63
65
|
]),
|
|
64
66
|
_: 1
|
|
65
67
|
}, 8, ["size"])
|
|
66
68
|
]),
|
|
67
69
|
_: 1
|
|
68
|
-
}, 8, ["style", "src"])) : (
|
|
70
|
+
}, 8, ["style", "src"])) : (n(), c(i(u), {
|
|
69
71
|
key: 1,
|
|
70
72
|
size: o.size
|
|
71
73
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
(
|
|
74
|
+
default: a(() => [
|
|
75
|
+
(n(), c(s(r.value)))
|
|
74
76
|
]),
|
|
75
77
|
_: 1
|
|
76
|
-
}, 8, ["size"]))
|
|
77
|
-
|
|
78
|
+
}, 8, ["size"]))
|
|
79
|
+
]));
|
|
78
80
|
}
|
|
79
|
-
},
|
|
81
|
+
}), W = y(N);
|
|
80
82
|
export {
|
|
81
83
|
m as APPLICATION_TYPE,
|
|
82
|
-
|
|
84
|
+
W as ApplicationIcon,
|
|
83
85
|
e as SOURCE_TYPE,
|
|
84
|
-
|
|
86
|
+
W as default
|
|
85
87
|
};
|
package/es/PageContainer.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { ref as c, useSlots as
|
|
3
|
-
import { C as
|
|
4
|
-
import { SearchBar as
|
|
5
|
-
import { IconZuo as
|
|
6
|
-
import { emitsMap as d, paginationConfig as O, pageParams as E, operationConfigMap as
|
|
7
|
-
import { ElIcon as
|
|
8
|
-
import { useRouter as
|
|
9
|
-
import { _ as
|
|
10
|
-
import './assets/PageContainer.css';const
|
|
1
|
+
import { w as me } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as c, useSlots as ve, computed as A, watch as M, onMounted as ye, createElementBlock as p, openBlock as i, createCommentVNode as S, createElementVNode as I, renderSlot as z, createVNode as y, unref as u, withCtx as s, createBlock as h, resolveDynamicComponent as he, toDisplayString as N, normalizeClass as q, mergeProps as Y, toHandlers as be, createSlots as Z, Fragment as D, renderList as P, createTextVNode as G, normalizeProps as ke, guardReactiveProps as Se } from "vue";
|
|
3
|
+
import { C as J } from "./chunks/layout.CWL6NVjA.js";
|
|
4
|
+
import { SearchBar as Ce } from "color-star-custom-components";
|
|
5
|
+
import { IconZuo as we, IconMore as ze } from "color-message-aibox-vue";
|
|
6
|
+
import { emitsMap as d, paginationConfig as O, pageParams as E, operationConfigMap as Q } from "color-star-custom-methods";
|
|
7
|
+
import { ElIcon as X, ElTable as Ee, ElTableColumn as _, ElButton as xe, ElDropdown as Ae, ElDropdownMenu as Ie, ElDropdownItem as Pe, ElScrollbar as Ne, ElPagination as De } from "element-plus";
|
|
8
|
+
import { useRouter as Oe } from "vue-router";
|
|
9
|
+
import { _ as Re } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import './assets/PageContainer.css';const ee = {
|
|
11
11
|
ACTION: "action"
|
|
12
|
-
},
|
|
12
|
+
}, x = {
|
|
13
13
|
TABLE: "table",
|
|
14
14
|
CARD_INFINITE: "card-infinite"
|
|
15
|
-
}, Te = { class: "page-container flex flex-col overflow-hidden h-full" },
|
|
15
|
+
}, Te = { class: "page-container flex flex-col overflow-hidden h-full" }, Be = { class: "text-1f2329 pd-l-4" }, Ve = { class: "action-buttons flex items-center" }, je = { class: "card-list" }, Fe = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "pagination-section pd-t-16 flex justify-center"
|
|
18
|
-
},
|
|
18
|
+
}, $e = /* @__PURE__ */ Object.assign({
|
|
19
19
|
name: "PageContainer"
|
|
20
20
|
}, {
|
|
21
21
|
__name: "layout",
|
|
@@ -120,8 +120,18 @@ import './assets/PageContainer.css';const J = {
|
|
|
120
120
|
// 显示模式:MODES.TABLE(表格) | MODES.CARD_INFINITE(无限滚动卡片)
|
|
121
121
|
mode: {
|
|
122
122
|
type: String,
|
|
123
|
-
default:
|
|
124
|
-
validator: (r) => Object.values(
|
|
123
|
+
default: x.TABLE,
|
|
124
|
+
validator: (r) => Object.values(x).includes(r)
|
|
125
|
+
},
|
|
126
|
+
// 是否显示复选框
|
|
127
|
+
showSelection: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !1
|
|
130
|
+
},
|
|
131
|
+
// 选中的行数据
|
|
132
|
+
selection: {
|
|
133
|
+
type: Array,
|
|
134
|
+
default: () => []
|
|
125
135
|
}
|
|
126
136
|
},
|
|
127
137
|
emits: [
|
|
@@ -132,110 +142,123 @@ import './assets/PageContainer.css';const J = {
|
|
|
132
142
|
d.sizeChange,
|
|
133
143
|
d.dataLoaded,
|
|
134
144
|
d.dataError,
|
|
135
|
-
d.updateModelValue
|
|
145
|
+
d.updateModelValue,
|
|
146
|
+
"selection-change"
|
|
136
147
|
// 'card-click',
|
|
137
148
|
],
|
|
138
|
-
setup(r, { expose:
|
|
139
|
-
const
|
|
149
|
+
setup(r, { expose: te, emit: ae }) {
|
|
150
|
+
const le = Oe(), o = r, b = ae, ne = c(null), R = c(null), re = c(null), oe = ve(), T = c(!1), g = c([]), m = c({
|
|
140
151
|
page: E.pageNum,
|
|
141
152
|
size: E.pageSize,
|
|
142
153
|
total: 0,
|
|
143
154
|
pageSizes: O.pageSizes,
|
|
144
155
|
layout: O.layout
|
|
145
|
-
}),
|
|
146
|
-
() => o.api ?
|
|
147
|
-
), f =
|
|
156
|
+
}), v = c({ ...o.modelValue }), C = c(!1), w = c(!0), B = c([...o.selection]), V = A(
|
|
157
|
+
() => o.api ? g.value : o.tableData
|
|
158
|
+
), f = A(
|
|
148
159
|
() => o.api ? m.value : o.pagination
|
|
149
|
-
),
|
|
160
|
+
), j = A(
|
|
150
161
|
() => o.api ? T.value || C.value : o.tableProps.loading || C.value || !1
|
|
151
|
-
),
|
|
152
|
-
if (e.type ===
|
|
162
|
+
), F = A(() => o.mode === x.CARD_INFINITE), L = A(() => o.columns?.map((e) => {
|
|
163
|
+
if (e.type === ee.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
|
|
153
164
|
return {
|
|
154
165
|
...e,
|
|
155
166
|
align: "center",
|
|
156
167
|
fixed: "right"
|
|
157
168
|
};
|
|
158
|
-
const { width:
|
|
169
|
+
const { width: a, ...t } = e;
|
|
159
170
|
return {
|
|
160
|
-
...
|
|
161
|
-
minWidth:
|
|
171
|
+
...t,
|
|
172
|
+
minWidth: a
|
|
162
173
|
};
|
|
163
|
-
})),
|
|
164
|
-
!
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
},
|
|
174
|
+
})), ie = (e) => {
|
|
175
|
+
!F.value || !w.value || j.value || k({}, !0);
|
|
176
|
+
}, ue = (e, a) => e.id || e.bnid || e.key || `item-${a}`, se = () => {
|
|
177
|
+
le.back();
|
|
178
|
+
}, de = (e, a) => a.formatter ? a.formatter(e[a.prop], e, a) : e[a.prop], fe = (e) => oe[e] !== void 0, $ = (e, a) => typeof e.actions == "function" ? e.actions(a) || [] : e.actions || [], ce = (e) => e.length < 3 ? e : e.slice(0, 1), W = (e) => e.length < 3 ? [] : e.slice(1), k = (e = {}, a = !1) => {
|
|
168
179
|
if (!o.api) return;
|
|
169
|
-
if (
|
|
170
|
-
if (!
|
|
180
|
+
if (a) {
|
|
181
|
+
if (!w.value || C.value) return;
|
|
171
182
|
C.value = !0;
|
|
172
183
|
} else
|
|
173
|
-
T.value = !0,
|
|
174
|
-
const
|
|
184
|
+
T.value = !0, F.value && (w.value = !0, C.value = !1);
|
|
185
|
+
const t = {
|
|
175
186
|
...e,
|
|
176
187
|
// 搜索参数等
|
|
177
188
|
...o.apiParams,
|
|
178
|
-
...
|
|
189
|
+
...v.value
|
|
179
190
|
};
|
|
180
|
-
o.showPagination && (
|
|
191
|
+
o.showPagination && (a ? t.page = f.value.page + 1 : t.page = f.value.page, t.size = f.value.size), o.api(t).then((l) => {
|
|
181
192
|
const n = l?.data?.memberSo?.data || l?.data?.data || l?.data || [];
|
|
182
|
-
if (
|
|
193
|
+
if (a) {
|
|
183
194
|
if (!n || n.length === 0) {
|
|
184
|
-
|
|
195
|
+
w.value = !1;
|
|
185
196
|
return;
|
|
186
197
|
}
|
|
187
|
-
|
|
198
|
+
g.value = [...g.value, ...n], m.value.page = t.page, m.value.total = l?.data?.totalNum || l?.data?.total || g.value.length, n.length < f.value.size && (w.value = !1);
|
|
188
199
|
} else
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
data:
|
|
200
|
+
g.value = n, m.value.total = l?.data?.totalNum || l?.data?.total || 0;
|
|
201
|
+
b(d.dataLoaded, {
|
|
202
|
+
data: g.value,
|
|
192
203
|
pagination: m.value,
|
|
193
|
-
params:
|
|
204
|
+
params: t,
|
|
194
205
|
response: l?.data,
|
|
195
|
-
isLoadMore:
|
|
206
|
+
isLoadMore: a
|
|
196
207
|
});
|
|
197
208
|
}).catch((l) => {
|
|
198
|
-
|
|
209
|
+
a ? w.value = !1 : (g.value = [], m.value.total = 0), b(d.dataError, l);
|
|
199
210
|
}).finally(() => {
|
|
200
|
-
|
|
211
|
+
a ? C.value = !1 : T.value = !1;
|
|
201
212
|
});
|
|
202
|
-
},
|
|
203
|
-
o.api ? (m.value.page = E.pageNum,
|
|
204
|
-
},
|
|
213
|
+
}, U = () => {
|
|
214
|
+
o.api ? (m.value.page = E.pageNum, k()) : b(d.search, v.value);
|
|
215
|
+
}, H = () => {
|
|
205
216
|
const e = {};
|
|
206
|
-
Object.keys(
|
|
207
|
-
e[
|
|
208
|
-
}),
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
217
|
+
Object.keys(v.value).forEach((a) => {
|
|
218
|
+
e[a] = void 0;
|
|
219
|
+
}), v.value = e, o.api ? (m.value.page = E.pageNum, k()) : b(d.reset);
|
|
220
|
+
}, K = (e, a, t) => {
|
|
221
|
+
b(d.actionClick, { action: e, row: a, index: t });
|
|
222
|
+
}, pe = (e) => {
|
|
223
|
+
B.value = e, b("selection-change", e);
|
|
224
|
+
}, ge = (e, a) => {
|
|
225
|
+
switch (o.mode === x.CARD_INFINITE && (g.value = []), e) {
|
|
226
|
+
case Q.search:
|
|
227
|
+
U();
|
|
215
228
|
break;
|
|
216
|
-
case
|
|
217
|
-
|
|
229
|
+
case Q.reset:
|
|
230
|
+
H();
|
|
218
231
|
break;
|
|
219
232
|
}
|
|
220
|
-
}, ce = (e, t) => {
|
|
221
233
|
};
|
|
222
|
-
return
|
|
234
|
+
return M(
|
|
223
235
|
() => o.modelValue,
|
|
224
236
|
(e) => {
|
|
225
|
-
|
|
237
|
+
v.value = { ...e };
|
|
238
|
+
},
|
|
239
|
+
{ deep: !0, immediate: !0 }
|
|
240
|
+
), M(
|
|
241
|
+
() => o.selection,
|
|
242
|
+
(e) => {
|
|
243
|
+
B.value = [...e];
|
|
226
244
|
},
|
|
227
245
|
{ deep: !0, immediate: !0 }
|
|
228
|
-
),
|
|
229
|
-
() =>
|
|
246
|
+
), M(
|
|
247
|
+
() => v.value,
|
|
230
248
|
(e) => {
|
|
231
|
-
|
|
249
|
+
b(d.updateModelValue, { ...e });
|
|
232
250
|
},
|
|
233
251
|
{ deep: !0 }
|
|
234
|
-
),
|
|
235
|
-
o.autoLoad && o.api &&
|
|
236
|
-
}),
|
|
237
|
-
loadData:
|
|
238
|
-
handleSearch:
|
|
252
|
+
), ye(() => {
|
|
253
|
+
o.autoLoad && o.api && k();
|
|
254
|
+
}), te({
|
|
255
|
+
loadData: k,
|
|
256
|
+
handleSearch: U,
|
|
257
|
+
handleReset: H,
|
|
258
|
+
// 复选框相关方法
|
|
259
|
+
clearSelection: () => R.value?.clearSelection?.(),
|
|
260
|
+
toggleAllSelection: () => R.value?.toggleAllSelection?.(),
|
|
261
|
+
getSelectionRows: () => B.value
|
|
239
262
|
// SearchBar相关方法
|
|
240
263
|
// validate: () => searchFormRef.value?.validate?.(),
|
|
241
264
|
// getFormData: () =>
|
|
@@ -247,80 +270,86 @@ import './assets/PageContainer.css';const J = {
|
|
|
247
270
|
// handleReset()
|
|
248
271
|
// }
|
|
249
272
|
// },
|
|
250
|
-
}), (e,
|
|
273
|
+
}), (e, a) => (i(), p("div", Te, [
|
|
251
274
|
r.breadcrumb.show ? (i(), p("div", {
|
|
252
275
|
key: 0,
|
|
253
276
|
class: "flex items-center fz-14 pd-b-20 pointer",
|
|
254
|
-
onClick:
|
|
277
|
+
onClick: se
|
|
255
278
|
}, [
|
|
256
|
-
|
|
279
|
+
y(u(X), { size: 16 }, {
|
|
257
280
|
default: s(() => [
|
|
258
|
-
(i(), h(
|
|
281
|
+
(i(), h(he(r.breadcrumb.icon || u(we))))
|
|
259
282
|
]),
|
|
260
283
|
_: 1
|
|
261
284
|
}),
|
|
262
|
-
|
|
263
|
-
])) :
|
|
264
|
-
r.searchFields
|
|
285
|
+
I("span", Be, N(r.breadcrumb.text), 1)
|
|
286
|
+
])) : S("", !0),
|
|
287
|
+
r.searchFields?.length ? (i(), p("div", {
|
|
265
288
|
key: 1,
|
|
266
|
-
class:
|
|
289
|
+
class: q({
|
|
267
290
|
"search-section pd-b-12 mg-b-12": !r.isSeparate,
|
|
268
291
|
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": r.isSeparate
|
|
269
292
|
})
|
|
270
293
|
}, [
|
|
271
|
-
|
|
272
|
-
|
|
294
|
+
y(J, { title: "查询" }),
|
|
295
|
+
y(u(Ce), {
|
|
273
296
|
ref_key: "searchFormRef",
|
|
274
|
-
ref:
|
|
297
|
+
ref: ne,
|
|
275
298
|
items: r.searchFields,
|
|
276
299
|
"filter-mode": !1,
|
|
277
300
|
minWidth: r.minWidth,
|
|
278
301
|
hideExpandButton: !1,
|
|
279
302
|
fixedWidth: !0,
|
|
280
303
|
maxHeight: 32,
|
|
281
|
-
modelValue:
|
|
282
|
-
"onUpdate:modelValue":
|
|
283
|
-
onOperation:
|
|
284
|
-
onChange: ce
|
|
304
|
+
modelValue: v.value,
|
|
305
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => v.value = t),
|
|
306
|
+
onOperation: ge
|
|
285
307
|
}, null, 8, ["items", "minWidth", "modelValue"])
|
|
286
|
-
], 2)) :
|
|
287
|
-
|
|
288
|
-
class:
|
|
308
|
+
], 2)) : S("", !0),
|
|
309
|
+
I("div", {
|
|
310
|
+
class: q(["data-section flex-1 overflow-hidden flex flex-col", {
|
|
289
311
|
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": r.isSeparate
|
|
290
312
|
}])
|
|
291
313
|
}, [
|
|
292
314
|
r.title ? z(e.$slots, "title", { key: 0 }, () => [
|
|
293
|
-
|
|
315
|
+
y(J, { title: r.title }, {
|
|
294
316
|
default: s(() => [
|
|
295
317
|
z(e.$slots, "title-actions", {}, void 0, !0)
|
|
296
318
|
]),
|
|
297
319
|
_: 3
|
|
298
320
|
}, 8, ["title"])
|
|
299
|
-
], !0) :
|
|
300
|
-
r.mode === u(
|
|
321
|
+
], !0) : S("", !0),
|
|
322
|
+
r.mode === u(x).TABLE ? (i(), h(u(Ee), Y({
|
|
301
323
|
key: 1,
|
|
302
324
|
ref_key: "tableRef",
|
|
303
|
-
ref:
|
|
304
|
-
data:
|
|
305
|
-
columns:
|
|
325
|
+
ref: R,
|
|
326
|
+
data: V.value,
|
|
327
|
+
columns: L.value,
|
|
306
328
|
"row-key": r.treeProps.rowKey,
|
|
307
329
|
"tree-props": r.treeProps,
|
|
308
330
|
"show-overflow-tooltip": !0
|
|
309
|
-
}, { ...r.tableProps, loading:
|
|
331
|
+
}, { ...r.tableProps, loading: j.value }, be(r.tableEvents), {
|
|
310
332
|
class: "flex-1 admin-dashboard-table",
|
|
311
|
-
border: ""
|
|
312
|
-
|
|
333
|
+
border: "",
|
|
334
|
+
onSelectionChange: pe
|
|
335
|
+
}), Z({
|
|
313
336
|
default: s(() => [
|
|
314
|
-
|
|
315
|
-
key:
|
|
316
|
-
|
|
317
|
-
|
|
337
|
+
r.showSelection ? (i(), h(u(_), {
|
|
338
|
+
key: 0,
|
|
339
|
+
type: "selection",
|
|
340
|
+
width: "55",
|
|
341
|
+
fixed: "left"
|
|
342
|
+
})) : S("", !0),
|
|
343
|
+
(i(!0), p(D, null, P(L.value, (t) => (i(), h(u(_), Y({
|
|
344
|
+
key: t.prop
|
|
345
|
+
}, { ref_for: !0 }, t), Z({ _: 2 }, [
|
|
346
|
+
t.type === u(ee).ACTION ? {
|
|
318
347
|
name: "default",
|
|
319
348
|
fn: s((l) => [
|
|
320
|
-
|
|
321
|
-
(i(!0), p(D, null,
|
|
322
|
-
|
|
323
|
-
), (n) => (i(), h(u(
|
|
349
|
+
I("div", Ve, [
|
|
350
|
+
(i(!0), p(D, null, P(ce(
|
|
351
|
+
$(t, l.row)
|
|
352
|
+
), (n) => (i(), h(u(xe), {
|
|
324
353
|
key: n.key || n.label,
|
|
325
354
|
type: n.type || "primary",
|
|
326
355
|
size: n.size || "small",
|
|
@@ -329,30 +358,30 @@ import './assets/PageContainer.css';const J = {
|
|
|
329
358
|
text: n.text,
|
|
330
359
|
link: n.link,
|
|
331
360
|
icon: n.icon,
|
|
332
|
-
onClick: (
|
|
361
|
+
onClick: (Le) => K(n, l.row, l.$index)
|
|
333
362
|
}, {
|
|
334
363
|
default: s(() => [
|
|
335
|
-
|
|
364
|
+
G(N(n.label), 1)
|
|
336
365
|
]),
|
|
337
366
|
_: 2
|
|
338
367
|
}, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
|
|
339
|
-
$(
|
|
368
|
+
W($(t, l.row)).length > 0 ? (i(), h(u(Ae), {
|
|
340
369
|
key: 0,
|
|
341
|
-
onCommand: (n) =>
|
|
370
|
+
onCommand: (n) => K(n, l.row, l.$index),
|
|
342
371
|
trigger: "click"
|
|
343
372
|
}, {
|
|
344
373
|
dropdown: s(() => [
|
|
345
|
-
|
|
374
|
+
y(u(Ie), null, {
|
|
346
375
|
default: s(() => [
|
|
347
|
-
(i(!0), p(D, null,
|
|
348
|
-
|
|
349
|
-
), (n) => (i(), h(u(
|
|
376
|
+
(i(!0), p(D, null, P(W(
|
|
377
|
+
$(t, l.row)
|
|
378
|
+
), (n) => (i(), h(u(Pe), {
|
|
350
379
|
key: n.key || n.label,
|
|
351
380
|
command: n,
|
|
352
381
|
disabled: n.disabled
|
|
353
382
|
}, {
|
|
354
383
|
default: s(() => [
|
|
355
|
-
|
|
384
|
+
G(N(n.label), 1)
|
|
356
385
|
]),
|
|
357
386
|
_: 2
|
|
358
387
|
}, 1032, ["command", "disabled"]))), 128))
|
|
@@ -361,32 +390,32 @@ import './assets/PageContainer.css';const J = {
|
|
|
361
390
|
}, 1024)
|
|
362
391
|
]),
|
|
363
392
|
default: s(() => [
|
|
364
|
-
|
|
393
|
+
y(u(X), null, {
|
|
365
394
|
default: s(() => [
|
|
366
|
-
|
|
395
|
+
y(u(ze))
|
|
367
396
|
]),
|
|
368
397
|
_: 1
|
|
369
398
|
})
|
|
370
399
|
]),
|
|
371
400
|
_: 2
|
|
372
|
-
}, 1032, ["onCommand"])) :
|
|
401
|
+
}, 1032, ["onCommand"])) : S("", !0)
|
|
373
402
|
])
|
|
374
403
|
]),
|
|
375
404
|
key: "0"
|
|
376
|
-
} :
|
|
405
|
+
} : fe(t.prop) ? {
|
|
377
406
|
name: "default",
|
|
378
407
|
fn: s((l) => [
|
|
379
|
-
z(e.$slots,
|
|
408
|
+
z(e.$slots, t.prop, {
|
|
380
409
|
row: l.row,
|
|
381
410
|
index: l.$index,
|
|
382
|
-
column:
|
|
411
|
+
column: t
|
|
383
412
|
}, void 0, !0)
|
|
384
413
|
]),
|
|
385
414
|
key: "1"
|
|
386
415
|
} : {
|
|
387
416
|
name: "default",
|
|
388
417
|
fn: s((l) => [
|
|
389
|
-
|
|
418
|
+
I("span", null, N(de(l.row, t)), 1)
|
|
390
419
|
]),
|
|
391
420
|
key: "2"
|
|
392
421
|
}
|
|
@@ -394,57 +423,57 @@ import './assets/PageContainer.css';const J = {
|
|
|
394
423
|
]),
|
|
395
424
|
_: 2
|
|
396
425
|
}, [
|
|
397
|
-
|
|
398
|
-
name:
|
|
426
|
+
P(r.customSlots, (t) => ({
|
|
427
|
+
name: t,
|
|
399
428
|
fn: s((l) => [
|
|
400
|
-
z(e.$slots,
|
|
429
|
+
z(e.$slots, t, ke(Se(l)), void 0, !0)
|
|
401
430
|
])
|
|
402
431
|
}))
|
|
403
|
-
]), 1040, ["data", "columns", "row-key", "tree-props"])) : r.mode === u(
|
|
432
|
+
]), 1040, ["data", "columns", "row-key", "tree-props"])) : r.mode === u(x).CARD_INFINITE ? (i(), h(u(Ne), {
|
|
404
433
|
key: 2,
|
|
405
434
|
ref_key: "scrollbarRef",
|
|
406
|
-
ref:
|
|
435
|
+
ref: re,
|
|
407
436
|
class: "card-container flex-1",
|
|
408
|
-
onEndReached:
|
|
437
|
+
onEndReached: ie
|
|
409
438
|
}, {
|
|
410
439
|
default: s(() => [
|
|
411
|
-
|
|
412
|
-
(i(!0), p(D, null,
|
|
413
|
-
key:
|
|
440
|
+
I("div", je, [
|
|
441
|
+
(i(!0), p(D, null, P(V.value, (t, l) => (i(), p("div", {
|
|
442
|
+
key: ue(t, l),
|
|
414
443
|
class: "card-item"
|
|
415
444
|
}, [
|
|
416
445
|
z(e.$slots, "card", {
|
|
417
|
-
item:
|
|
446
|
+
item: t,
|
|
418
447
|
index: l,
|
|
419
|
-
data:
|
|
420
|
-
loading:
|
|
448
|
+
data: V.value,
|
|
449
|
+
loading: j.value
|
|
421
450
|
}, void 0, !0)
|
|
422
451
|
]))), 128))
|
|
423
452
|
])
|
|
424
453
|
]),
|
|
425
454
|
_: 3
|
|
426
|
-
}, 512)) :
|
|
427
|
-
r.showPagination && !
|
|
428
|
-
|
|
455
|
+
}, 512)) : S("", !0),
|
|
456
|
+
r.showPagination && !F.value ? (i(), p("div", Fe, [
|
|
457
|
+
y(u(De), {
|
|
429
458
|
"current-page": f.value.page,
|
|
430
|
-
"onUpdate:currentPage":
|
|
459
|
+
"onUpdate:currentPage": a[1] || (a[1] = (t) => f.value.page = t),
|
|
431
460
|
"page-size": f.value.size,
|
|
432
|
-
"onUpdate:pageSize":
|
|
461
|
+
"onUpdate:pageSize": a[2] || (a[2] = (t) => f.value.size = t),
|
|
433
462
|
"page-sizes": f.value.pageSizes,
|
|
434
463
|
total: f.value.total,
|
|
435
464
|
layout: f.value.layout,
|
|
436
|
-
onSizeChange:
|
|
437
|
-
onCurrentChange:
|
|
465
|
+
onSizeChange: k,
|
|
466
|
+
onCurrentChange: k
|
|
438
467
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
|
|
439
|
-
])) :
|
|
468
|
+
])) : S("", !0)
|
|
440
469
|
], 2),
|
|
441
470
|
z(e.$slots, "default", {}, void 0, !0)
|
|
442
471
|
]));
|
|
443
472
|
}
|
|
444
|
-
}),
|
|
473
|
+
}), Me = /* @__PURE__ */ Re($e, [["__scopeId", "data-v-de37bf4c"]]), Qe = me(Me);
|
|
445
474
|
export {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
475
|
+
ee as COLUMN_TYPES,
|
|
476
|
+
x as MODES,
|
|
477
|
+
Qe as PageContainer,
|
|
478
|
+
Qe as default
|
|
450
479
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.search-section[data-v-
|
|
1
|
+
.search-section[data-v-de37bf4c]{border-bottom:1px solid var(--border-color)}.action-buttons[data-v-de37bf4c]{gap:8px;flex-wrap:wrap}.bg-fff[data-v-de37bf4c]{background-color:var(--background-color-2);border:1px solid var(--border-color)}.card-list[data-v-de37bf4c]{display:grid;grid-template-columns:repeat(auto-fill,minmax(306px,1fr));gap:16px}
|
package/es/index.mjs
CHANGED
|
@@ -1675,7 +1675,7 @@ const Z = {
|
|
|
1675
1675
|
function Le(e, ...t) {
|
|
1676
1676
|
return ze(Fs[e], ...t);
|
|
1677
1677
|
}
|
|
1678
|
-
const ys = "11.2.
|
|
1678
|
+
const ys = "11.2.8", tt = -1, Be = "en-US", Ze = "", _n = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1679
1679
|
function Rs() {
|
|
1680
1680
|
return {
|
|
1681
1681
|
upper: (e, t) => t === "text" && O(e) ? e.toUpperCase() : t === "vnode" && k(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -2272,7 +2272,7 @@ function io(e, t) {
|
|
|
2272
2272
|
}), o && t(o.proxiedTarget);
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
|
-
const uo = "11.2.
|
|
2275
|
+
const uo = "11.2.8";
|
|
2276
2276
|
function co() {
|
|
2277
2277
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2278
2278
|
}
|