china-mobile-international-custom-components 0.0.31 → 0.0.33
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 +39 -48
- package/es/ApplicationTypeTag.mjs +7 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +39 -38
- package/es/PageContainer.mjs +242 -211
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/index3.css +1 -0
- package/es/chunks/config.DE5PZU2F.js +20 -0
- package/es/chunks/index.CEulrjCM.js +4062 -0
- package/es/chunks/{index.Dh5IGfxO.js → index.ClqvUq64.js} +70 -58
- package/es/chunks/index.CyqKJ7zE.js +4062 -0
- package/es/index.mjs +106 -4101
- package/lib/ApplicationIcon.js +1 -1
- package/lib/ApplicationTypeTag.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/index3.css +1 -0
- package/lib/chunks/config.4W9n_uQg.js +1 -0
- package/lib/chunks/index.C-BOSJfQ.js +6 -0
- package/lib/chunks/index.CSLWrMRE.js +1 -0
- package/lib/chunks/index.mVFuSNRS.js +6 -0
- package/lib/index.js +1 -6
- package/package.json +5 -4
- package/lib/chunks/index.Bk55us0s.js +0 -1
package/es/PageContainer.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { C as
|
|
1
|
+
import { w as ve } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as g, useSlots as ye, computed as A, watch as L, onMounted as he, createElementBlock as m, openBlock as o, createCommentVNode as v, createElementVNode as C, renderSlot as x, createVNode as k, unref as r, withCtx as u, createBlock as c, resolveDynamicComponent as be, toDisplayString as D, normalizeClass as G, mergeProps as J, toHandlers as ke, createSlots as Q, Fragment as R, renderList as N, createTextVNode as X, normalizeProps as Se, guardReactiveProps as we } from "vue";
|
|
3
|
+
import { C as _ } from "./chunks/layout.CWL6NVjA.js";
|
|
4
4
|
import { SearchBar as Ce } from "color-star-custom-components";
|
|
5
|
-
import { IconZuo as
|
|
6
|
-
import { emitsMap as
|
|
7
|
-
import { ElIcon as
|
|
8
|
-
import { useRouter as
|
|
9
|
-
import { _ as
|
|
10
|
-
import './assets/PageContainer.css';const
|
|
5
|
+
import { IconZuo as xe, IconMore as Ee, IconZuoCopy as ze, IconYou as Ie } from "color-message-aibox-vue";
|
|
6
|
+
import { emitsMap as f, paginationConfig as O, pageParams as I, operationConfigMap as ee } from "color-star-custom-methods";
|
|
7
|
+
import { ElIcon as W, ElTable as Pe, ElTableColumn as U, ElButton as Ae, ElDropdown as Ne, ElDropdownMenu as De, ElDropdownItem as Re, ElScrollbar as Oe, ElPagination as Te } from "element-plus";
|
|
8
|
+
import { useRouter as Be } from "vue-router";
|
|
9
|
+
import { _ as Ve } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import './assets/PageContainer.css';const te = {
|
|
11
11
|
ACTION: "action"
|
|
12
|
-
},
|
|
12
|
+
}, P = {
|
|
13
13
|
TABLE: "table",
|
|
14
14
|
CARD_INFINITE: "card-infinite"
|
|
15
|
-
},
|
|
15
|
+
}, $e = { class: "page-container flex flex-col overflow-hidden h-full" }, je = { class: "text-1f2329 pd-l-4" }, Fe = { class: "action-buttons flex items-center" }, Me = { class: "flex items-center w-full" }, Le = { class: "flex-1" }, We = { class: "card-list" }, Ue = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "pagination-section pd-t-16 flex justify-center"
|
|
18
|
-
},
|
|
18
|
+
}, Ke = /* @__PURE__ */ Object.assign({
|
|
19
19
|
name: "PageContainer"
|
|
20
20
|
}, {
|
|
21
21
|
__name: "layout",
|
|
@@ -81,8 +81,8 @@ import './assets/PageContainer.css';const ee = {
|
|
|
81
81
|
pagination: {
|
|
82
82
|
type: Object,
|
|
83
83
|
default: () => ({
|
|
84
|
-
page:
|
|
85
|
-
size:
|
|
84
|
+
page: I.pageNum,
|
|
85
|
+
size: I.pageSize,
|
|
86
86
|
total: 0,
|
|
87
87
|
pageSizes: O.pageSizes,
|
|
88
88
|
layout: O.layout
|
|
@@ -120,8 +120,8 @@ import './assets/PageContainer.css';const ee = {
|
|
|
120
120
|
// 显示模式:MODES.TABLE(表格) | MODES.CARD_INFINITE(无限滚动卡片)
|
|
121
121
|
mode: {
|
|
122
122
|
type: String,
|
|
123
|
-
default:
|
|
124
|
-
validator: (
|
|
123
|
+
default: P.TABLE,
|
|
124
|
+
validator: (l) => Object.values(P).includes(l)
|
|
125
125
|
},
|
|
126
126
|
// 是否显示复选框
|
|
127
127
|
showSelection: {
|
|
@@ -132,35 +132,39 @@ import './assets/PageContainer.css';const ee = {
|
|
|
132
132
|
selection: {
|
|
133
133
|
type: Array,
|
|
134
134
|
default: () => []
|
|
135
|
+
},
|
|
136
|
+
// 是否有展开
|
|
137
|
+
hasExpand: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: !1
|
|
135
140
|
}
|
|
136
141
|
},
|
|
137
142
|
emits: [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
f.search,
|
|
144
|
+
f.reset,
|
|
145
|
+
f.actionClick,
|
|
146
|
+
f.paginationChange,
|
|
147
|
+
f.sizeChange,
|
|
148
|
+
f.dataLoaded,
|
|
149
|
+
f.dataError,
|
|
150
|
+
f.updateModelValue,
|
|
146
151
|
"selection-change"
|
|
147
|
-
// 'card-click',
|
|
148
152
|
],
|
|
149
|
-
setup(
|
|
150
|
-
const
|
|
151
|
-
page:
|
|
152
|
-
size:
|
|
153
|
+
setup(l, { expose: ae, emit: le }) {
|
|
154
|
+
const ne = Be(), n = l, S = le, oe = g(null), T = g(null), re = g(null), ie = ye(), B = g(!1), y = g([]), h = g({
|
|
155
|
+
page: I.pageNum,
|
|
156
|
+
size: I.pageSize,
|
|
153
157
|
total: 0,
|
|
154
158
|
pageSizes: O.pageSizes,
|
|
155
159
|
layout: O.layout
|
|
156
|
-
}),
|
|
157
|
-
() =>
|
|
158
|
-
),
|
|
159
|
-
() =>
|
|
160
|
+
}), b = g({ ...n.modelValue }), E = g(!1), z = g(!0), V = g([...n.selection]), $ = A(
|
|
161
|
+
() => n.api ? y.value : n.tableData
|
|
162
|
+
), p = A(
|
|
163
|
+
() => n.api ? h.value : n.pagination
|
|
160
164
|
), j = A(
|
|
161
|
-
() =>
|
|
162
|
-
), F = A(() =>
|
|
163
|
-
if (e.type ===
|
|
165
|
+
() => n.api ? B.value || E.value : n.tableProps.loading || E.value || !1
|
|
166
|
+
), F = A(() => n.mode === P.CARD_INFINITE), K = A(() => n.columns?.map((e) => {
|
|
167
|
+
if (e.type === te.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
|
|
164
168
|
return {
|
|
165
169
|
...e,
|
|
166
170
|
align: "center",
|
|
@@ -171,94 +175,94 @@ import './assets/PageContainer.css';const ee = {
|
|
|
171
175
|
...t,
|
|
172
176
|
minWidth: a
|
|
173
177
|
};
|
|
174
|
-
})),
|
|
175
|
-
!F.value || !
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
if (!
|
|
178
|
+
})), se = (e) => {
|
|
179
|
+
!F.value || !z.value || j.value || w({}, !0);
|
|
180
|
+
}, de = (e, a) => e.id || e.bnid || e.key || `item-${a}`, ue = () => {
|
|
181
|
+
ne.back();
|
|
182
|
+
}, fe = (e, a) => a.formatter ? a.formatter(e[a.prop], e, a) : e[a.prop], ce = (e) => ie[e] !== void 0, M = (e, a) => typeof e.actions == "function" ? e.actions(a) || [] : e.actions || [], pe = (e) => e.length < 3 ? e : e.slice(0, 1), H = (e) => e.length < 3 ? [] : e.slice(1), w = (e = {}, a = !1) => {
|
|
183
|
+
if (!n.api) return;
|
|
180
184
|
if (a) {
|
|
181
|
-
if (!
|
|
182
|
-
|
|
185
|
+
if (!z.value || E.value) return;
|
|
186
|
+
E.value = !0;
|
|
183
187
|
} else
|
|
184
|
-
|
|
188
|
+
B.value = !0, F.value && (z.value = !0, E.value = !1);
|
|
185
189
|
const t = {
|
|
186
190
|
...e,
|
|
187
191
|
// 搜索参数等
|
|
188
|
-
...
|
|
189
|
-
...
|
|
192
|
+
...n.apiParams,
|
|
193
|
+
...b.value
|
|
190
194
|
};
|
|
191
|
-
|
|
192
|
-
const
|
|
195
|
+
n.showPagination && (a ? t.page = p.value.page + 1 : t.page = p.value.page, t.size = p.value.size), n.api(t).then((d) => {
|
|
196
|
+
const i = d?.data?.memberSo?.data || d?.data?.data || d?.data || [];
|
|
193
197
|
if (a) {
|
|
194
|
-
if (!
|
|
195
|
-
|
|
198
|
+
if (!i || i.length === 0) {
|
|
199
|
+
z.value = !1;
|
|
196
200
|
return;
|
|
197
201
|
}
|
|
198
|
-
|
|
202
|
+
y.value = [...y.value, ...i], h.value.page = t.page, h.value.total = d?.data?.memberSo?.total || d?.data?.total || y.value.length, i.length < p.value.size && (z.value = !1);
|
|
199
203
|
} else
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
data:
|
|
203
|
-
pagination:
|
|
204
|
+
y.value = i, h.value.total = d?.data?.memberSo?.total || d?.data?.total || 0;
|
|
205
|
+
S(f.dataLoaded, {
|
|
206
|
+
data: y.value,
|
|
207
|
+
pagination: h.value,
|
|
204
208
|
params: t,
|
|
205
|
-
response:
|
|
209
|
+
response: d?.data,
|
|
206
210
|
isLoadMore: a
|
|
207
211
|
});
|
|
208
|
-
}).catch((
|
|
209
|
-
a ?
|
|
212
|
+
}).catch((d) => {
|
|
213
|
+
a ? z.value = !1 : (y.value = [], h.value.total = 0), S(f.dataError, d);
|
|
210
214
|
}).finally(() => {
|
|
211
|
-
a ?
|
|
215
|
+
a ? E.value = !1 : B.value = !1;
|
|
212
216
|
});
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
},
|
|
217
|
+
}, Y = () => {
|
|
218
|
+
n.api ? (h.value.page = I.pageNum, w()) : S(f.search, b.value);
|
|
219
|
+
}, Z = () => {
|
|
216
220
|
const e = {};
|
|
217
|
-
Object.keys(
|
|
221
|
+
Object.keys(b.value).forEach((a) => {
|
|
218
222
|
e[a] = void 0;
|
|
219
|
-
}),
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
},
|
|
225
|
-
switch (
|
|
226
|
-
case
|
|
227
|
-
|
|
223
|
+
}), b.value = e, n.api ? (h.value.page = I.pageNum, w()) : S(f.reset);
|
|
224
|
+
}, q = (e, a, t) => {
|
|
225
|
+
S(f.actionClick, { action: e, row: a, index: t });
|
|
226
|
+
}, ge = (e) => {
|
|
227
|
+
V.value = e, S("selection-change", e);
|
|
228
|
+
}, me = (e, a) => {
|
|
229
|
+
switch (n.mode === P.CARD_INFINITE && (y.value = []), e) {
|
|
230
|
+
case ee.search:
|
|
231
|
+
Y();
|
|
228
232
|
break;
|
|
229
|
-
case
|
|
230
|
-
|
|
233
|
+
case ee.reset:
|
|
234
|
+
Z();
|
|
231
235
|
break;
|
|
232
236
|
}
|
|
233
237
|
};
|
|
234
|
-
return
|
|
235
|
-
() =>
|
|
238
|
+
return L(
|
|
239
|
+
() => n.modelValue,
|
|
236
240
|
(e) => {
|
|
237
|
-
|
|
241
|
+
b.value = { ...e };
|
|
238
242
|
},
|
|
239
243
|
{ deep: !0, immediate: !0 }
|
|
240
|
-
),
|
|
241
|
-
() =>
|
|
244
|
+
), L(
|
|
245
|
+
() => n.selection,
|
|
242
246
|
(e) => {
|
|
243
|
-
|
|
247
|
+
V.value = [...e];
|
|
244
248
|
},
|
|
245
249
|
{ deep: !0, immediate: !0 }
|
|
246
|
-
),
|
|
247
|
-
() =>
|
|
250
|
+
), L(
|
|
251
|
+
() => b.value,
|
|
248
252
|
(e) => {
|
|
249
|
-
|
|
253
|
+
S(f.updateModelValue, { ...e });
|
|
250
254
|
},
|
|
251
255
|
{ deep: !0 }
|
|
252
|
-
),
|
|
253
|
-
|
|
254
|
-
}),
|
|
255
|
-
loadData:
|
|
256
|
-
handleSearch:
|
|
257
|
-
handleReset:
|
|
256
|
+
), he(() => {
|
|
257
|
+
n.autoLoad && n.api && w();
|
|
258
|
+
}), ae({
|
|
259
|
+
loadData: w,
|
|
260
|
+
handleSearch: Y,
|
|
261
|
+
handleReset: Z,
|
|
258
262
|
// 复选框相关方法
|
|
259
|
-
clearSelection: () =>
|
|
260
|
-
toggleAllSelection: () =>
|
|
261
|
-
getSelectionRows: () =>
|
|
263
|
+
clearSelection: () => T.value?.clearSelection?.(),
|
|
264
|
+
toggleAllSelection: () => T.value?.toggleAllSelection?.(),
|
|
265
|
+
getSelectionRows: () => V.value
|
|
262
266
|
// SearchBar相关方法
|
|
263
267
|
// validate: () => searchFormRef.value?.validate?.(),
|
|
264
268
|
// getFormData: () =>
|
|
@@ -270,118 +274,130 @@ import './assets/PageContainer.css';const ee = {
|
|
|
270
274
|
// handleReset()
|
|
271
275
|
// }
|
|
272
276
|
// },
|
|
273
|
-
}), (e, a) => (
|
|
274
|
-
|
|
277
|
+
}), (e, a) => (o(), m("div", $e, [
|
|
278
|
+
l.breadcrumb.show ? (o(), m("div", {
|
|
275
279
|
key: 0,
|
|
276
280
|
class: "flex items-center fz-14 pd-b-20 pointer",
|
|
277
|
-
onClick:
|
|
281
|
+
onClick: ue
|
|
278
282
|
}, [
|
|
279
|
-
|
|
280
|
-
default:
|
|
281
|
-
(
|
|
283
|
+
k(r(W), { size: 16 }, {
|
|
284
|
+
default: u(() => [
|
|
285
|
+
(o(), c(be(l.breadcrumb.icon || r(xe))))
|
|
282
286
|
]),
|
|
283
287
|
_: 1
|
|
284
288
|
}),
|
|
285
|
-
|
|
286
|
-
])) :
|
|
287
|
-
|
|
289
|
+
C("span", je, D(l.breadcrumb.text), 1)
|
|
290
|
+
])) : v("", !0),
|
|
291
|
+
l.searchFields?.length ? (o(), m("div", {
|
|
288
292
|
key: 1,
|
|
289
|
-
class:
|
|
290
|
-
"search-section pd-b-12 mg-b-12": !
|
|
291
|
-
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16":
|
|
293
|
+
class: G({
|
|
294
|
+
"search-section pd-b-12 mg-b-12": !l.isSeparate,
|
|
295
|
+
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": l.isSeparate
|
|
292
296
|
})
|
|
293
297
|
}, [
|
|
294
|
-
|
|
295
|
-
|
|
298
|
+
k(_, { title: "查询" }),
|
|
299
|
+
k(r(Ce), {
|
|
296
300
|
ref_key: "searchFormRef",
|
|
297
|
-
ref:
|
|
298
|
-
items:
|
|
301
|
+
ref: oe,
|
|
302
|
+
items: l.searchFields,
|
|
299
303
|
"filter-mode": !1,
|
|
300
|
-
minWidth:
|
|
304
|
+
minWidth: l.minWidth,
|
|
301
305
|
hideExpandButton: !1,
|
|
302
306
|
fixedWidth: !0,
|
|
303
307
|
maxHeight: 32,
|
|
304
|
-
modelValue:
|
|
305
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) =>
|
|
306
|
-
onOperation:
|
|
308
|
+
modelValue: b.value,
|
|
309
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => b.value = t),
|
|
310
|
+
onOperation: me
|
|
307
311
|
}, null, 8, ["items", "minWidth", "modelValue"])
|
|
308
|
-
], 2)) :
|
|
309
|
-
|
|
310
|
-
class:
|
|
311
|
-
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16":
|
|
312
|
+
], 2)) : v("", !0),
|
|
313
|
+
C("div", {
|
|
314
|
+
class: G(["data-section flex-1 overflow-hidden flex flex-col", {
|
|
315
|
+
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": l.isSeparate
|
|
312
316
|
}])
|
|
313
317
|
}, [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
default:
|
|
317
|
-
|
|
318
|
+
l.title ? x(e.$slots, "title", { key: 0 }, () => [
|
|
319
|
+
k(_, { title: l.title }, {
|
|
320
|
+
default: u(() => [
|
|
321
|
+
x(e.$slots, "title-actions", {}, void 0, !0)
|
|
318
322
|
]),
|
|
319
323
|
_: 3
|
|
320
324
|
}, 8, ["title"])
|
|
321
|
-
], !0) :
|
|
322
|
-
|
|
325
|
+
], !0) : v("", !0),
|
|
326
|
+
l.mode === r(P).TABLE ? (o(), c(r(Pe), J({
|
|
323
327
|
key: 1,
|
|
324
328
|
ref_key: "tableRef",
|
|
325
|
-
ref:
|
|
326
|
-
data:
|
|
327
|
-
columns:
|
|
328
|
-
"
|
|
329
|
-
"tree-props": r.treeProps,
|
|
329
|
+
ref: T,
|
|
330
|
+
data: $.value,
|
|
331
|
+
columns: K.value,
|
|
332
|
+
"tree-props": l.treeProps,
|
|
330
333
|
"show-overflow-tooltip": !0
|
|
331
|
-
}, { ...
|
|
334
|
+
}, { ...l.tableProps, loading: j.value }, ke(l.tableEvents), {
|
|
332
335
|
class: "flex-1 admin-dashboard-table",
|
|
333
336
|
border: "",
|
|
334
|
-
onSelectionChange:
|
|
335
|
-
}),
|
|
336
|
-
default:
|
|
337
|
-
|
|
337
|
+
onSelectionChange: ge
|
|
338
|
+
}), Q({
|
|
339
|
+
default: u(() => [
|
|
340
|
+
l.showSelection ? (o(), c(r(U), {
|
|
338
341
|
key: 0,
|
|
339
342
|
type: "selection",
|
|
340
343
|
width: "55",
|
|
341
344
|
fixed: "left"
|
|
342
|
-
})) :
|
|
343
|
-
|
|
345
|
+
})) : v("", !0),
|
|
346
|
+
l.hasExpand ? (o(), c(r(U), {
|
|
347
|
+
key: 1,
|
|
348
|
+
width: "1",
|
|
349
|
+
type: "expand",
|
|
350
|
+
fixed: "left"
|
|
351
|
+
}, {
|
|
352
|
+
default: u((t) => [
|
|
353
|
+
x(e.$slots, "expand", {
|
|
354
|
+
row: t.row
|
|
355
|
+
}, void 0, !0)
|
|
356
|
+
]),
|
|
357
|
+
_: 3
|
|
358
|
+
})) : v("", !0),
|
|
359
|
+
(o(!0), m(R, null, N(K.value, (t, d) => (o(), c(r(U), J({
|
|
344
360
|
key: t.prop
|
|
345
|
-
}, { ref_for: !0 }, t),
|
|
346
|
-
t.type ===
|
|
361
|
+
}, { ref_for: !0 }, t), Q({ _: 2 }, [
|
|
362
|
+
t.type === r(te).ACTION ? {
|
|
347
363
|
name: "default",
|
|
348
|
-
fn:
|
|
349
|
-
|
|
350
|
-
(
|
|
351
|
-
|
|
352
|
-
), (
|
|
353
|
-
key:
|
|
354
|
-
type:
|
|
355
|
-
size:
|
|
356
|
-
disabled:
|
|
357
|
-
loading:
|
|
358
|
-
text:
|
|
359
|
-
link:
|
|
360
|
-
icon:
|
|
361
|
-
onClick: (
|
|
364
|
+
fn: u((i) => [
|
|
365
|
+
C("div", Fe, [
|
|
366
|
+
(o(!0), m(R, null, N(pe(
|
|
367
|
+
M(t, i.row)
|
|
368
|
+
), (s) => (o(), c(r(Ae), {
|
|
369
|
+
key: s.key || s.label,
|
|
370
|
+
type: s.type || "primary",
|
|
371
|
+
size: s.size || "small",
|
|
372
|
+
disabled: s.disabled,
|
|
373
|
+
loading: s.loading,
|
|
374
|
+
text: s.text,
|
|
375
|
+
link: s.link,
|
|
376
|
+
icon: s.icon,
|
|
377
|
+
onClick: (Ye) => q(s, i.row, i.$index)
|
|
362
378
|
}, {
|
|
363
|
-
default:
|
|
364
|
-
|
|
379
|
+
default: u(() => [
|
|
380
|
+
X(D(s.label), 1)
|
|
365
381
|
]),
|
|
366
382
|
_: 2
|
|
367
383
|
}, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
|
|
368
|
-
|
|
384
|
+
H(M(t, i.row)).length > 0 ? (o(), c(r(Ne), {
|
|
369
385
|
key: 0,
|
|
370
|
-
onCommand: (
|
|
386
|
+
onCommand: (s) => q(s, i.row, i.$index),
|
|
371
387
|
trigger: "click"
|
|
372
388
|
}, {
|
|
373
|
-
dropdown:
|
|
374
|
-
|
|
375
|
-
default:
|
|
376
|
-
(
|
|
377
|
-
|
|
378
|
-
), (
|
|
379
|
-
key:
|
|
380
|
-
command:
|
|
381
|
-
disabled:
|
|
389
|
+
dropdown: u(() => [
|
|
390
|
+
k(r(De), null, {
|
|
391
|
+
default: u(() => [
|
|
392
|
+
(o(!0), m(R, null, N(H(
|
|
393
|
+
M(t, i.row)
|
|
394
|
+
), (s) => (o(), c(r(Re), {
|
|
395
|
+
key: s.key || s.label,
|
|
396
|
+
command: s,
|
|
397
|
+
disabled: s.disabled
|
|
382
398
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
|
|
399
|
+
default: u(() => [
|
|
400
|
+
X(D(s.label), 1)
|
|
385
401
|
]),
|
|
386
402
|
_: 2
|
|
387
403
|
}, 1032, ["command", "disabled"]))), 128))
|
|
@@ -389,33 +405,48 @@ import './assets/PageContainer.css';const ee = {
|
|
|
389
405
|
_: 2
|
|
390
406
|
}, 1024)
|
|
391
407
|
]),
|
|
392
|
-
default:
|
|
393
|
-
|
|
394
|
-
default:
|
|
395
|
-
|
|
408
|
+
default: u(() => [
|
|
409
|
+
k(r(W), null, {
|
|
410
|
+
default: u(() => [
|
|
411
|
+
k(r(Ee))
|
|
396
412
|
]),
|
|
397
413
|
_: 1
|
|
398
414
|
})
|
|
399
415
|
]),
|
|
400
416
|
_: 2
|
|
401
|
-
}, 1032, ["onCommand"])) :
|
|
417
|
+
}, 1032, ["onCommand"])) : v("", !0)
|
|
402
418
|
])
|
|
403
419
|
]),
|
|
404
420
|
key: "0"
|
|
405
|
-
} :
|
|
421
|
+
} : ce(t.prop) ? {
|
|
406
422
|
name: "default",
|
|
407
|
-
fn:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
423
|
+
fn: u((i) => [
|
|
424
|
+
C("div", Me, [
|
|
425
|
+
d === 0 && l.hasExpand ? (o(), c(r(W), {
|
|
426
|
+
key: 0,
|
|
427
|
+
class: "mg-r-10"
|
|
428
|
+
}, {
|
|
429
|
+
default: u(() => [
|
|
430
|
+
l.tableProps?.expandRowKeys?.includes(
|
|
431
|
+
i.row[l.tableProps.rowKey]
|
|
432
|
+
) ? (o(), c(r(ze), { key: 0 })) : (o(), c(r(Ie), { key: 1 }))
|
|
433
|
+
]),
|
|
434
|
+
_: 2
|
|
435
|
+
}, 1024)) : v("", !0),
|
|
436
|
+
C("div", Le, [
|
|
437
|
+
x(e.$slots, t.prop, {
|
|
438
|
+
row: i.row,
|
|
439
|
+
index: i.$index,
|
|
440
|
+
column: t
|
|
441
|
+
}, void 0, !0)
|
|
442
|
+
])
|
|
443
|
+
])
|
|
413
444
|
]),
|
|
414
445
|
key: "1"
|
|
415
446
|
} : {
|
|
416
447
|
name: "default",
|
|
417
|
-
fn:
|
|
418
|
-
|
|
448
|
+
fn: u((i) => [
|
|
449
|
+
C("span", null, D(fe(i.row, t)), 1)
|
|
419
450
|
]),
|
|
420
451
|
key: "2"
|
|
421
452
|
}
|
|
@@ -423,57 +454,57 @@ import './assets/PageContainer.css';const ee = {
|
|
|
423
454
|
]),
|
|
424
455
|
_: 2
|
|
425
456
|
}, [
|
|
426
|
-
|
|
457
|
+
N(l.customSlots, (t) => ({
|
|
427
458
|
name: t,
|
|
428
|
-
fn:
|
|
429
|
-
|
|
459
|
+
fn: u((d) => [
|
|
460
|
+
x(e.$slots, t, Se(we(d)), void 0, !0)
|
|
430
461
|
])
|
|
431
462
|
}))
|
|
432
|
-
]), 1040, ["data", "columns", "
|
|
463
|
+
]), 1040, ["data", "columns", "tree-props"])) : l.mode === r(P).CARD_INFINITE ? (o(), c(r(Oe), {
|
|
433
464
|
key: 2,
|
|
434
465
|
ref_key: "scrollbarRef",
|
|
435
466
|
ref: re,
|
|
436
467
|
class: "card-container flex-1",
|
|
437
|
-
onEndReached:
|
|
468
|
+
onEndReached: se
|
|
438
469
|
}, {
|
|
439
|
-
default:
|
|
440
|
-
|
|
441
|
-
(
|
|
442
|
-
key:
|
|
470
|
+
default: u(() => [
|
|
471
|
+
C("div", We, [
|
|
472
|
+
(o(!0), m(R, null, N($.value, (t, d) => (o(), m("div", {
|
|
473
|
+
key: de(t, d),
|
|
443
474
|
class: "card-item"
|
|
444
475
|
}, [
|
|
445
|
-
|
|
476
|
+
x(e.$slots, "card", {
|
|
446
477
|
item: t,
|
|
447
|
-
index:
|
|
448
|
-
data:
|
|
478
|
+
index: d,
|
|
479
|
+
data: $.value,
|
|
449
480
|
loading: j.value
|
|
450
481
|
}, void 0, !0)
|
|
451
482
|
]))), 128))
|
|
452
483
|
])
|
|
453
484
|
]),
|
|
454
485
|
_: 3
|
|
455
|
-
}, 512)) :
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
"current-page":
|
|
459
|
-
"onUpdate:currentPage": a[1] || (a[1] = (t) =>
|
|
460
|
-
"page-size":
|
|
461
|
-
"onUpdate:pageSize": a[2] || (a[2] = (t) =>
|
|
462
|
-
"page-sizes":
|
|
463
|
-
total:
|
|
464
|
-
layout:
|
|
465
|
-
onSizeChange:
|
|
466
|
-
onCurrentChange:
|
|
486
|
+
}, 512)) : v("", !0),
|
|
487
|
+
l.showPagination && !F.value ? (o(), m("div", Ue, [
|
|
488
|
+
k(r(Te), {
|
|
489
|
+
"current-page": p.value.page,
|
|
490
|
+
"onUpdate:currentPage": a[1] || (a[1] = (t) => p.value.page = t),
|
|
491
|
+
"page-size": p.value.size,
|
|
492
|
+
"onUpdate:pageSize": a[2] || (a[2] = (t) => p.value.size = t),
|
|
493
|
+
"page-sizes": p.value.pageSizes,
|
|
494
|
+
total: p.value.total,
|
|
495
|
+
layout: p.value.layout,
|
|
496
|
+
onSizeChange: w,
|
|
497
|
+
onCurrentChange: w
|
|
467
498
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
|
|
468
|
-
])) :
|
|
499
|
+
])) : v("", !0)
|
|
469
500
|
], 2),
|
|
470
|
-
|
|
501
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
471
502
|
]));
|
|
472
503
|
}
|
|
473
|
-
}),
|
|
504
|
+
}), He = /* @__PURE__ */ Ve(Ke, [["__scopeId", "data-v-2ed02877"]]), at = ve(He);
|
|
474
505
|
export {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
506
|
+
te as COLUMN_TYPES,
|
|
507
|
+
P as MODES,
|
|
508
|
+
at as PageContainer,
|
|
509
|
+
at as default
|
|
479
510
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.search-section[data-v-
|
|
1
|
+
.search-section[data-v-2ed02877]{border-bottom:1px solid var(--border-color)}.action-buttons[data-v-2ed02877]{gap:8px;flex-wrap:wrap}.bg-fff[data-v-2ed02877]{background-color:var(--background-color-2);border:1px solid var(--border-color)}.card-list[data-v-2ed02877]{display:grid;grid-template-columns:repeat(auto-fill,minmax(306px,1fr));gap:16px}[data-v-2ed02877] .el-table__expand-column .el-icon{display:none}[data-v-2ed02877] .el-table__cell.el-table__expanded-cell{padding:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dialogue[data-v-6ba8ff75],.autonomously[data-v-6ba8ff75]{height:22px;line-height:22px;border-radius:4px;text-align:center;font-weight:400;font-size:12px}.dialogue[data-v-6ba8ff75]{width:52px;background:#f4ffee;border:1px solid #aeed96;color:#389e0d}.autonomously[data-v-6ba8ff75]{background:#e5ebff;border:1px solid #99b0ff;width:64px;color:var(--el-color-primary)}
|