china-mobile-international-custom-components 0.0.43 → 0.0.45
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/ApplicationTypeTag.mjs +1 -1
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +2 -2
- package/es/CommonTagsList.mjs +3 -3
- package/es/CustomSidebar.mjs +1 -1
- package/es/FileUploader.mjs +1 -1
- package/es/PageContainer.mjs +195 -173
- package/es/ParameterTable.mjs +1 -1
- package/es/SourcePublish.mjs +120 -122
- package/es/Table.mjs +2 -2
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/index3.css +1 -0
- package/es/assets/layout2.css +1 -1
- package/es/chunks/{BackBar.DY42HcZy.js → BackBar.9Pp2SYB-.js} +1 -1
- package/es/chunks/{BackBar.eaUb1JvV.js → BackBar.DwhmSL-a.js} +98 -98
- package/es/chunks/{config.CyAT4SUn.js → config.DVEvXGIL.js} +11 -11
- package/es/chunks/{i18n.CfMhDOdX.js → i18n.BNeBD4gR.js} +6 -6
- package/es/chunks/{i18n.Bd7hh14j.js → i18n.DMVLcyDY.js} +2 -2
- package/es/chunks/i18n.DUrvNBQz.js +4028 -0
- package/es/chunks/index.BcLVH95_.js +4058 -0
- package/es/chunks/index.CSPp4g5C.js +303 -0
- package/es/chunks/{index.CHlFhI6c.js → index.CZTB65ge.js} +1 -1
- package/es/chunks/index.ClqvUq64.js +302 -0
- package/es/chunks/index.Dh5IGfxO.js +290 -0
- package/es/chunks/index.Doax01RQ.js +254 -0
- package/es/chunks/{layout.B1qqvrXz.js → layout.BSXfM0rC.js} +144 -130
- package/es/index.mjs +5 -5
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CommonTagsList.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/FileUploader.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/index3.css +1 -0
- package/lib/assets/layout2.css +1 -1
- package/lib/chunks/BackBar.CYThcqhK.js +1 -0
- package/lib/chunks/{BackBar.CaaASGvb.js → BackBar.DFDSVp2a.js} +1 -1
- package/lib/chunks/{config.BInpXFGZ.js → config.Dwnp4fRZ.js} +1 -1
- package/lib/chunks/{i18n.D3L1FBDI.js → i18n.Bzvn6t8H.js} +2 -2
- package/lib/chunks/i18n.D-d0yyXi.js +6 -0
- package/lib/chunks/index.6X8xsqRJ.js +1 -0
- package/lib/chunks/index.Bk55us0s.js +1 -0
- package/lib/chunks/index.CP9rhXZ5.js +1 -0
- package/lib/chunks/index.CSLWrMRE.js +1 -0
- package/lib/chunks/index.CV29Us4A.js +6 -0
- package/lib/chunks/{index.D-pFPuUr.js → index.DO3h_zf2.js} +1 -1
- package/lib/chunks/layout.DL-8uhpw.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/es/chunks/config.JrGX09T5.js +0 -435
- package/es/chunks/index.DjDvyGXt.js +0 -313
- package/lib/chunks/BackBar.By7ouDgL.js +0 -1
- package/lib/chunks/config.CL0cmPQ6.js +0 -1
- package/lib/chunks/index.zQ1SfvBa.js +0 -1
- package/lib/chunks/layout.Cen7E9tF.js +0 -1
package/es/PageContainer.mjs
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { C as
|
|
4
|
-
import { SearchBar as
|
|
5
|
-
import { IconZuo as
|
|
6
|
-
import { emitsMap as u, paginationConfig as
|
|
7
|
-
import { ElIcon as
|
|
8
|
-
import { useRouter as
|
|
9
|
-
import { _ as
|
|
10
|
-
import './assets/PageContainer.css';const
|
|
1
|
+
import { w as be } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as v, useSlots as ke, computed as D, watch as K, onMounted as we, createElementBlock as y, openBlock as o, createCommentVNode as h, createElementVNode as b, renderSlot as z, createVNode as g, unref as n, withCtx as d, createBlock as c, resolveDynamicComponent as Se, toDisplayString as O, normalizeClass as X, mergeProps as _, toHandlers as Ce, createSlots as ee, normalizeStyle as xe, Fragment as T, renderList as N, withModifiers as U, createTextVNode as te, normalizeProps as Ee, guardReactiveProps as ze } from "vue";
|
|
3
|
+
import { C as ae } from "./chunks/layout.CWL6NVjA.js";
|
|
4
|
+
import { SearchBar as Pe } from "color-star-custom-components";
|
|
5
|
+
import { IconZuo as Ie, IconMore as Ae, IconZuoCopy as De, IconYou as Ne, Loading as Re } from "color-message-aibox-vue";
|
|
6
|
+
import { emitsMap as u, paginationConfig as B, pageParams as I, operationConfigMap as le } from "color-star-custom-methods";
|
|
7
|
+
import { ElIcon as V, ElAutoResizer as Oe, ElTable as Te, ElTableColumn as H, ElButton as Be, ElDropdown as Ve, ElDropdownMenu as je, ElDropdownItem as $e, ElScrollbar as Fe, ElPagination as Me } from "element-plus";
|
|
8
|
+
import { useRouter as Le } from "vue-router";
|
|
9
|
+
import { _ as We } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import './assets/PageContainer.css';const ne = {
|
|
11
11
|
ACTION: "action"
|
|
12
12
|
}, A = {
|
|
13
13
|
TABLE: "table",
|
|
14
14
|
CARD_INFINITE: "card-infinite"
|
|
15
|
-
},
|
|
15
|
+
}, Ke = { class: "page-container flex flex-col overflow-hidden h-full" }, Ue = { class: "text-1f2329 pd-l-4" }, He = { class: "action-buttons flex items-center" }, Ye = { class: "flex items-center w-full" }, Ze = { class: "flex-1" }, qe = { class: "card-list" }, Ge = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "loading-indicator flex items-center justify-center pd-t-20 pd-b-20"
|
|
18
|
+
}, Je = {
|
|
16
19
|
key: 3,
|
|
17
20
|
class: "pagination-section pd-t-16 flex justify-center"
|
|
18
|
-
},
|
|
21
|
+
}, Qe = /* @__PURE__ */ Object.assign({
|
|
19
22
|
name: "PageContainer"
|
|
20
23
|
}, {
|
|
21
24
|
__name: "layout",
|
|
@@ -84,8 +87,8 @@ import './assets/PageContainer.css';const ae = {
|
|
|
84
87
|
page: I.pageNum,
|
|
85
88
|
size: I.pageSize,
|
|
86
89
|
total: 0,
|
|
87
|
-
pageSizes:
|
|
88
|
-
layout:
|
|
90
|
+
pageSizes: B.pageSizes,
|
|
91
|
+
layout: B.layout
|
|
89
92
|
})
|
|
90
93
|
},
|
|
91
94
|
// 自定义插槽名称列表
|
|
@@ -150,119 +153,121 @@ import './assets/PageContainer.css';const ae = {
|
|
|
150
153
|
u.updateModelValue,
|
|
151
154
|
"selection-change"
|
|
152
155
|
],
|
|
153
|
-
setup(l, { expose:
|
|
154
|
-
const
|
|
156
|
+
setup(l, { expose: oe, emit: re }) {
|
|
157
|
+
const ie = Le(), r = l, C = re, se = v(null), j = v(null), de = v(null), ue = ke(), $ = v(!1), k = v([]), w = v({
|
|
155
158
|
page: I.pageNum,
|
|
156
159
|
size: I.pageSize,
|
|
157
160
|
total: 0,
|
|
158
|
-
pageSizes:
|
|
159
|
-
layout:
|
|
160
|
-
}),
|
|
161
|
-
() =>
|
|
162
|
-
), p =
|
|
163
|
-
() =>
|
|
164
|
-
),
|
|
165
|
-
() =>
|
|
166
|
-
),
|
|
167
|
-
if (e.type ===
|
|
161
|
+
pageSizes: B.pageSizes,
|
|
162
|
+
layout: B.layout
|
|
163
|
+
}), S = v({ ...r.modelValue }), x = v(!1), P = v(!0), F = v([...r.selection]), M = D(
|
|
164
|
+
() => r.api ? k.value : r.tableData
|
|
165
|
+
), p = D(
|
|
166
|
+
() => r.api ? w.value : r.pagination
|
|
167
|
+
), L = D(
|
|
168
|
+
() => r.api ? $.value || x.value : r.tableProps.loading || x.value || !1
|
|
169
|
+
), R = D(() => r.mode === A.CARD_INFINITE), Y = D(() => r.columns?.map((e) => {
|
|
170
|
+
if (e.type === ne.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
|
|
168
171
|
return {
|
|
169
172
|
...e,
|
|
170
173
|
align: "center",
|
|
171
174
|
fixed: "right"
|
|
172
175
|
};
|
|
173
|
-
const { width: t, ...
|
|
176
|
+
const { width: t, ...i } = e;
|
|
174
177
|
return {
|
|
175
|
-
...
|
|
178
|
+
...i,
|
|
176
179
|
minWidth: t
|
|
177
180
|
};
|
|
178
|
-
})),
|
|
179
|
-
!
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
if (!
|
|
181
|
+
})), fe = (e) => {
|
|
182
|
+
e === "bottom" && (!R.value || !P.value || L.value || E({}, !0));
|
|
183
|
+
}, ce = (e, t) => e.id || e.bnid || e.key || `item-${t}`, pe = () => {
|
|
184
|
+
ie.back();
|
|
185
|
+
}, ge = (e, t) => t.formatter ? t.formatter(e[t.prop], e, t) : e[t.prop], me = (e) => ue[e] !== void 0, W = (e, t) => typeof e.actions == "function" ? e.actions(t) || [] : e.actions || [], ve = (e) => e.length < 3 ? e : e.slice(0, 1), Z = (e) => e.length < 3 ? [] : e.slice(1), E = (e = {}, t = !1) => {
|
|
186
|
+
if (!r.api) return;
|
|
184
187
|
if (t) {
|
|
185
|
-
if (!P.value ||
|
|
186
|
-
|
|
188
|
+
if (!P.value || x.value) return;
|
|
189
|
+
x.value = !0;
|
|
187
190
|
} else
|
|
188
|
-
|
|
189
|
-
const
|
|
191
|
+
$.value = !0, R.value && (P.value = !0, x.value = !1);
|
|
192
|
+
const i = {
|
|
190
193
|
...e,
|
|
191
194
|
// 搜索参数等
|
|
192
|
-
...
|
|
193
|
-
...
|
|
195
|
+
...r.apiParams,
|
|
196
|
+
...S.value
|
|
194
197
|
};
|
|
195
|
-
|
|
196
|
-
const
|
|
198
|
+
r.showPagination && (t ? i.page = p.value.page + 1 : i.page = p.value.page, i.size = p.value.size), r.api(i).then((a) => {
|
|
199
|
+
const m = a?.data?.memberSo?.data || a?.data?.data || a?.data || [];
|
|
197
200
|
if (t) {
|
|
198
|
-
if (!
|
|
201
|
+
if (!m || m.length === 0) {
|
|
199
202
|
P.value = !1;
|
|
200
203
|
return;
|
|
201
204
|
}
|
|
202
|
-
|
|
205
|
+
k.value = [...k.value, ...m], w.value.page = i.page, w.value.total = a?.data?.memberSo?.total || a?.data?.total || k.value.length, m.length < p.value.size && (P.value = !1);
|
|
203
206
|
} else
|
|
204
|
-
console.log("newData",
|
|
207
|
+
console.log("newData", m), k.value = m, w.value.total = a?.data?.memberSo?.total || a?.data?.total || 0;
|
|
205
208
|
C(u.dataLoaded, {
|
|
206
|
-
data:
|
|
207
|
-
pagination:
|
|
208
|
-
params:
|
|
209
|
+
data: k.value,
|
|
210
|
+
pagination: w.value,
|
|
211
|
+
params: i,
|
|
209
212
|
response: a?.data,
|
|
210
213
|
isLoadMore: t
|
|
211
214
|
});
|
|
212
215
|
}).catch((a) => {
|
|
213
|
-
t ? P.value = !1 : (
|
|
216
|
+
t ? P.value = !1 : (k.value = [], w.value.total = 0), C(u.dataError, a);
|
|
214
217
|
}).finally(() => {
|
|
215
|
-
t ?
|
|
218
|
+
t ? x.value = !1 : $.value = !1;
|
|
216
219
|
});
|
|
217
|
-
}, Z = () => {
|
|
218
|
-
o.api ? (k.value.page = I.pageNum, x()) : C(u.search, w.value);
|
|
219
220
|
}, q = () => {
|
|
221
|
+
r.mode === A.CARD_INFINITE && (k.value = []);
|
|
222
|
+
}, G = () => {
|
|
223
|
+
r.api ? (q(), w.value.page = I.pageNum, E()) : C(u.search, S.value);
|
|
224
|
+
}, J = () => {
|
|
220
225
|
const e = {};
|
|
221
|
-
Object.keys(
|
|
226
|
+
Object.keys(S.value).forEach((t) => {
|
|
222
227
|
e[t] = void 0;
|
|
223
|
-
}),
|
|
224
|
-
},
|
|
225
|
-
C(u.actionClick, { action: e, row: t, index:
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
switch (
|
|
230
|
-
case
|
|
231
|
-
|
|
228
|
+
}), S.value = e, r.api ? (q(), w.value.page = I.pageNum, E()) : C(u.reset);
|
|
229
|
+
}, Q = (e, t, i) => {
|
|
230
|
+
C(u.actionClick, { action: e, row: t, index: i });
|
|
231
|
+
}, ye = (e) => {
|
|
232
|
+
F.value = e, C("selection-change", e);
|
|
233
|
+
}, he = (e, t) => {
|
|
234
|
+
switch (e) {
|
|
235
|
+
case le.search:
|
|
236
|
+
G();
|
|
232
237
|
break;
|
|
233
|
-
case
|
|
234
|
-
|
|
238
|
+
case le.reset:
|
|
239
|
+
J();
|
|
235
240
|
break;
|
|
236
241
|
}
|
|
237
242
|
};
|
|
238
|
-
return
|
|
239
|
-
() =>
|
|
243
|
+
return K(
|
|
244
|
+
() => r.modelValue,
|
|
240
245
|
(e) => {
|
|
241
|
-
|
|
246
|
+
S.value = { ...e };
|
|
242
247
|
},
|
|
243
248
|
{ deep: !0, immediate: !0 }
|
|
244
|
-
),
|
|
245
|
-
() =>
|
|
249
|
+
), K(
|
|
250
|
+
() => r.selection,
|
|
246
251
|
(e) => {
|
|
247
|
-
|
|
252
|
+
F.value = [...e];
|
|
248
253
|
},
|
|
249
254
|
{ deep: !0, immediate: !0 }
|
|
250
|
-
),
|
|
251
|
-
() =>
|
|
255
|
+
), K(
|
|
256
|
+
() => S.value,
|
|
252
257
|
(e) => {
|
|
253
258
|
C(u.updateModelValue, { ...e });
|
|
254
259
|
},
|
|
255
260
|
{ deep: !0 }
|
|
256
|
-
),
|
|
257
|
-
|
|
258
|
-
}),
|
|
259
|
-
loadData:
|
|
260
|
-
handleSearch:
|
|
261
|
-
handleReset:
|
|
261
|
+
), we(() => {
|
|
262
|
+
r.autoLoad && r.api && E();
|
|
263
|
+
}), oe({
|
|
264
|
+
loadData: E,
|
|
265
|
+
handleSearch: G,
|
|
266
|
+
handleReset: J,
|
|
262
267
|
// 复选框相关方法
|
|
263
|
-
clearSelection: () =>
|
|
264
|
-
toggleAllSelection: () =>
|
|
265
|
-
getSelectionRows: () =>
|
|
268
|
+
clearSelection: () => j.value?.clearSelection?.(),
|
|
269
|
+
toggleAllSelection: () => j.value?.toggleAllSelection?.(),
|
|
270
|
+
getSelectionRows: () => F.value
|
|
266
271
|
// SearchBar相关方法
|
|
267
272
|
// validate: () => searchFormRef.value?.validate?.(),
|
|
268
273
|
// getFormData: () =>
|
|
@@ -274,108 +279,108 @@ import './assets/PageContainer.css';const ae = {
|
|
|
274
279
|
// handleReset()
|
|
275
280
|
// }
|
|
276
281
|
// },
|
|
277
|
-
}), (e, t) => (
|
|
278
|
-
l.breadcrumb.show ? (
|
|
282
|
+
}), (e, t) => (o(), y("div", Ke, [
|
|
283
|
+
l.breadcrumb.show ? (o(), y("div", {
|
|
279
284
|
key: 0,
|
|
280
285
|
class: "flex items-center fz-14 pd-b-20 pointer",
|
|
281
|
-
onClick:
|
|
286
|
+
onClick: pe
|
|
282
287
|
}, [
|
|
283
|
-
|
|
288
|
+
g(n(V), { size: 16 }, {
|
|
284
289
|
default: d(() => [
|
|
285
|
-
(
|
|
290
|
+
(o(), c(Se(l.breadcrumb.icon || n(Ie))))
|
|
286
291
|
]),
|
|
287
292
|
_: 1
|
|
288
293
|
}),
|
|
289
|
-
|
|
290
|
-
])) :
|
|
291
|
-
l.searchFields?.length ? (
|
|
294
|
+
b("span", Ue, O(l.breadcrumb.text), 1)
|
|
295
|
+
])) : h("", !0),
|
|
296
|
+
l.searchFields?.length ? (o(), y("div", {
|
|
292
297
|
key: 1,
|
|
293
|
-
class:
|
|
298
|
+
class: X({
|
|
294
299
|
"search-section pd-b-12 mg-b-12": !l.isSeparate,
|
|
295
300
|
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": l.isSeparate
|
|
296
301
|
})
|
|
297
302
|
}, [
|
|
298
|
-
|
|
299
|
-
|
|
303
|
+
g(ae, { title: "查询" }),
|
|
304
|
+
g(n(Pe), {
|
|
300
305
|
ref_key: "searchFormRef",
|
|
301
|
-
ref:
|
|
306
|
+
ref: se,
|
|
302
307
|
items: l.searchFields,
|
|
303
308
|
"filter-mode": !1,
|
|
304
309
|
minWidth: l.minWidth,
|
|
305
310
|
hideExpandButton: !1,
|
|
306
311
|
fixedWidth: !0,
|
|
307
312
|
maxHeight: 32,
|
|
308
|
-
modelValue:
|
|
309
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
310
|
-
onOperation:
|
|
313
|
+
modelValue: S.value,
|
|
314
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => S.value = i),
|
|
315
|
+
onOperation: he
|
|
311
316
|
}, null, 8, ["items", "minWidth", "modelValue"])
|
|
312
|
-
], 2)) :
|
|
313
|
-
|
|
314
|
-
class:
|
|
317
|
+
], 2)) : h("", !0),
|
|
318
|
+
b("div", {
|
|
319
|
+
class: X(["data-section flex-1 overflow-hidden flex flex-col", {
|
|
315
320
|
"bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": l.isSeparate
|
|
316
321
|
}])
|
|
317
322
|
}, [
|
|
318
|
-
l.title ?
|
|
319
|
-
|
|
323
|
+
l.title ? z(e.$slots, "title", { key: 0 }, () => [
|
|
324
|
+
g(ae, { title: l.title }, {
|
|
320
325
|
default: d(() => [
|
|
321
|
-
|
|
326
|
+
z(e.$slots, "title-actions", {}, void 0, !0)
|
|
322
327
|
]),
|
|
323
328
|
_: 3
|
|
324
329
|
}, 8, ["title"])
|
|
325
|
-
], !0) :
|
|
326
|
-
l.mode === n(A).TABLE ? (
|
|
330
|
+
], !0) : h("", !0),
|
|
331
|
+
l.mode === n(A).TABLE ? (o(), c(n(Oe), {
|
|
327
332
|
key: 1,
|
|
328
333
|
class: "flex-1 overflow-hidden"
|
|
329
334
|
}, {
|
|
330
|
-
default: d(({ width:
|
|
331
|
-
|
|
335
|
+
default: d(({ width: i }) => [
|
|
336
|
+
g(n(Te), _({
|
|
332
337
|
ref_key: "tableRef",
|
|
333
|
-
ref:
|
|
334
|
-
data:
|
|
335
|
-
columns:
|
|
338
|
+
ref: j,
|
|
339
|
+
data: M.value,
|
|
340
|
+
columns: Y.value,
|
|
336
341
|
"tree-props": l.treeProps,
|
|
337
342
|
"show-overflow-tooltip": !0,
|
|
338
343
|
"row-key": l.treeProps.value || l.tableProps.rowKey
|
|
339
|
-
}, { ...l.tableProps, loading:
|
|
344
|
+
}, { ...l.tableProps, loading: L.value }, Ce(l.tableEvents), {
|
|
340
345
|
class: "w-full h-full admin-dashboard-table",
|
|
341
346
|
border: "",
|
|
342
|
-
onSelectionChange:
|
|
343
|
-
}),
|
|
347
|
+
onSelectionChange: ye
|
|
348
|
+
}), ee({
|
|
344
349
|
default: d(() => [
|
|
345
|
-
l.showSelection ? (
|
|
350
|
+
l.showSelection ? (o(), c(n(H), {
|
|
346
351
|
key: 0,
|
|
347
352
|
type: "selection",
|
|
348
353
|
width: "55",
|
|
349
354
|
fixed: "left"
|
|
350
|
-
})) :
|
|
351
|
-
l.hasExpand ? (
|
|
355
|
+
})) : h("", !0),
|
|
356
|
+
l.hasExpand ? (o(), c(n(H), {
|
|
352
357
|
key: 1,
|
|
353
358
|
width: "1",
|
|
354
359
|
type: "expand",
|
|
355
360
|
fixed: "left"
|
|
356
361
|
}, {
|
|
357
362
|
default: d((a) => [
|
|
358
|
-
|
|
363
|
+
b("div", {
|
|
359
364
|
class: "sticky-left",
|
|
360
|
-
style:
|
|
365
|
+
style: xe({ width: i + "px" })
|
|
361
366
|
}, [
|
|
362
|
-
|
|
367
|
+
z(e.$slots, "expand", {
|
|
363
368
|
row: a.row
|
|
364
369
|
}, void 0, !0)
|
|
365
370
|
], 4)
|
|
366
371
|
]),
|
|
367
372
|
_: 2
|
|
368
|
-
}, 1024)) :
|
|
369
|
-
(
|
|
373
|
+
}, 1024)) : h("", !0),
|
|
374
|
+
(o(!0), y(T, null, N(Y.value, (a, m) => (o(), c(n(H), _({
|
|
370
375
|
key: a.prop
|
|
371
|
-
}, { ref_for: !0 }, a),
|
|
372
|
-
a.type === n(
|
|
376
|
+
}, { ref_for: !0 }, a), ee({ _: 2 }, [
|
|
377
|
+
a.type === n(ne).ACTION ? {
|
|
373
378
|
name: "default",
|
|
374
379
|
fn: d((f) => [
|
|
375
|
-
|
|
376
|
-
(
|
|
377
|
-
|
|
378
|
-
), (s) => (
|
|
380
|
+
b("div", He, [
|
|
381
|
+
(o(!0), y(T, null, N(ve(
|
|
382
|
+
W(a, f.row)
|
|
383
|
+
), (s) => (o(), c(n(Be), {
|
|
379
384
|
key: s.key || s.label,
|
|
380
385
|
type: s.type || "primary",
|
|
381
386
|
size: s.size || "small",
|
|
@@ -384,30 +389,35 @@ import './assets/PageContainer.css';const ae = {
|
|
|
384
389
|
text: s.text,
|
|
385
390
|
link: s.link,
|
|
386
391
|
icon: s.icon,
|
|
387
|
-
onClick: (
|
|
392
|
+
onClick: U((_e) => Q(s, f.row, f.$index), ["stop"])
|
|
388
393
|
}, {
|
|
389
394
|
default: d(() => [
|
|
390
|
-
|
|
395
|
+
te(O(s.label), 1)
|
|
391
396
|
]),
|
|
392
397
|
_: 2
|
|
393
398
|
}, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
|
|
394
|
-
|
|
399
|
+
Z(W(a, f.row)).length > 0 ? (o(), c(n(Ve), {
|
|
395
400
|
key: 0,
|
|
396
|
-
onCommand: (
|
|
401
|
+
onCommand: U(
|
|
402
|
+
(s) => Q(s, f.row, f.$index),
|
|
403
|
+
["stop"]
|
|
404
|
+
),
|
|
405
|
+
onClick: t[1] || (t[1] = U(() => {
|
|
406
|
+
}, ["stop"])),
|
|
397
407
|
trigger: "click"
|
|
398
408
|
}, {
|
|
399
409
|
dropdown: d(() => [
|
|
400
|
-
|
|
410
|
+
g(n(je), null, {
|
|
401
411
|
default: d(() => [
|
|
402
|
-
(
|
|
403
|
-
|
|
404
|
-
), (s) => (
|
|
412
|
+
(o(!0), y(T, null, N(Z(
|
|
413
|
+
W(a, f.row)
|
|
414
|
+
), (s) => (o(), c(n($e), {
|
|
405
415
|
key: s.key || s.label,
|
|
406
416
|
command: s,
|
|
407
417
|
disabled: s.disabled
|
|
408
418
|
}, {
|
|
409
419
|
default: d(() => [
|
|
410
|
-
|
|
420
|
+
te(O(s.label), 1)
|
|
411
421
|
]),
|
|
412
422
|
_: 2
|
|
413
423
|
}, 1032, ["command", "disabled"]))), 128))
|
|
@@ -416,35 +426,35 @@ import './assets/PageContainer.css';const ae = {
|
|
|
416
426
|
}, 1024)
|
|
417
427
|
]),
|
|
418
428
|
default: d(() => [
|
|
419
|
-
|
|
429
|
+
g(n(V), null, {
|
|
420
430
|
default: d(() => [
|
|
421
|
-
|
|
431
|
+
g(n(Ae))
|
|
422
432
|
]),
|
|
423
433
|
_: 1
|
|
424
434
|
})
|
|
425
435
|
]),
|
|
426
436
|
_: 2
|
|
427
|
-
}, 1032, ["onCommand"])) :
|
|
437
|
+
}, 1032, ["onCommand"])) : h("", !0)
|
|
428
438
|
])
|
|
429
439
|
]),
|
|
430
440
|
key: "0"
|
|
431
|
-
} :
|
|
441
|
+
} : me(a.prop) ? {
|
|
432
442
|
name: "default",
|
|
433
443
|
fn: d((f) => [
|
|
434
|
-
|
|
435
|
-
|
|
444
|
+
b("div", Ye, [
|
|
445
|
+
m === 0 && l.hasExpand ? (o(), c(n(V), {
|
|
436
446
|
key: 0,
|
|
437
447
|
class: "mg-r-10"
|
|
438
448
|
}, {
|
|
439
449
|
default: d(() => [
|
|
440
450
|
l.tableProps?.expandRowKeys?.includes(
|
|
441
451
|
f.row[l.tableProps.rowKey]
|
|
442
|
-
) ? (
|
|
452
|
+
) ? (o(), c(n(De), { key: 0 })) : (o(), c(n(Ne), { key: 1 }))
|
|
443
453
|
]),
|
|
444
454
|
_: 2
|
|
445
|
-
}, 1024)) :
|
|
446
|
-
|
|
447
|
-
|
|
455
|
+
}, 1024)) : h("", !0),
|
|
456
|
+
b("div", Ze, [
|
|
457
|
+
z(e.$slots, a.prop, {
|
|
448
458
|
row: f.row,
|
|
449
459
|
index: f.$index,
|
|
450
460
|
column: a
|
|
@@ -456,7 +466,7 @@ import './assets/PageContainer.css';const ae = {
|
|
|
456
466
|
} : {
|
|
457
467
|
name: "default",
|
|
458
468
|
fn: d((f) => [
|
|
459
|
-
|
|
469
|
+
b("span", null, O(ge(f.row, a)), 1)
|
|
460
470
|
]),
|
|
461
471
|
key: "2"
|
|
462
472
|
}
|
|
@@ -464,60 +474,72 @@ import './assets/PageContainer.css';const ae = {
|
|
|
464
474
|
]),
|
|
465
475
|
_: 2
|
|
466
476
|
}, [
|
|
467
|
-
|
|
477
|
+
N(l.customSlots, (a) => ({
|
|
468
478
|
name: a,
|
|
469
|
-
fn: d((
|
|
470
|
-
|
|
479
|
+
fn: d((m) => [
|
|
480
|
+
z(e.$slots, a, Ee(ze(m)), void 0, !0)
|
|
471
481
|
])
|
|
472
482
|
}))
|
|
473
483
|
]), 1040, ["data", "columns", "tree-props", "row-key"])
|
|
474
484
|
]),
|
|
475
485
|
_: 3
|
|
476
|
-
})) : l.mode === n(A).CARD_INFINITE ? (
|
|
486
|
+
})) : l.mode === n(A).CARD_INFINITE ? (o(), c(n(Fe), {
|
|
477
487
|
key: 2,
|
|
478
488
|
ref_key: "scrollbarRef",
|
|
479
|
-
ref:
|
|
489
|
+
ref: de,
|
|
480
490
|
class: "card-container flex-1",
|
|
481
|
-
onEndReached:
|
|
491
|
+
onEndReached: fe
|
|
482
492
|
}, {
|
|
483
493
|
default: d(() => [
|
|
484
|
-
|
|
485
|
-
(
|
|
486
|
-
key:
|
|
494
|
+
b("div", qe, [
|
|
495
|
+
(o(!0), y(T, null, N(M.value, (i, a) => (o(), y("div", {
|
|
496
|
+
key: ce(i, a),
|
|
487
497
|
class: "card-item"
|
|
488
498
|
}, [
|
|
489
|
-
|
|
490
|
-
item:
|
|
499
|
+
z(e.$slots, "card", {
|
|
500
|
+
item: i,
|
|
491
501
|
index: a,
|
|
492
|
-
data:
|
|
493
|
-
loading:
|
|
502
|
+
data: M.value,
|
|
503
|
+
loading: L.value
|
|
494
504
|
}, void 0, !0)
|
|
495
505
|
]))), 128))
|
|
496
|
-
])
|
|
506
|
+
]),
|
|
507
|
+
R.value && x.value ? (o(), y("div", Ge, [
|
|
508
|
+
g(n(V), {
|
|
509
|
+
class: "is-loading",
|
|
510
|
+
color: "var(--primary-color-1)"
|
|
511
|
+
}, {
|
|
512
|
+
default: d(() => [
|
|
513
|
+
g(n(Re))
|
|
514
|
+
]),
|
|
515
|
+
_: 1
|
|
516
|
+
}),
|
|
517
|
+
t[4] || (t[4] = b("span", { class: "fz-14 text-3271fe pd-l-8" }, "加载中...", -1))
|
|
518
|
+
])) : h("", !0)
|
|
497
519
|
]),
|
|
498
520
|
_: 3
|
|
499
|
-
}, 512)) :
|
|
500
|
-
l.showPagination && !
|
|
501
|
-
|
|
521
|
+
}, 512)) : h("", !0),
|
|
522
|
+
l.showPagination && !R.value ? (o(), y("div", Je, [
|
|
523
|
+
g(n(Me), {
|
|
502
524
|
"current-page": p.value.page,
|
|
503
|
-
"onUpdate:currentPage": t[
|
|
525
|
+
"onUpdate:currentPage": t[2] || (t[2] = (i) => p.value.page = i),
|
|
504
526
|
"page-size": p.value.size,
|
|
505
|
-
"onUpdate:pageSize": t[
|
|
527
|
+
"onUpdate:pageSize": t[3] || (t[3] = (i) => p.value.size = i),
|
|
506
528
|
"page-sizes": p.value.pageSizes,
|
|
507
529
|
total: p.value.total,
|
|
508
530
|
layout: p.value.layout,
|
|
509
|
-
onSizeChange:
|
|
510
|
-
onCurrentChange:
|
|
531
|
+
onSizeChange: E,
|
|
532
|
+
onCurrentChange: E
|
|
511
533
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
|
|
512
|
-
])) :
|
|
534
|
+
])) : h("", !0)
|
|
513
535
|
], 2),
|
|
514
|
-
|
|
536
|
+
z(e.$slots, "default", {}, void 0, !0)
|
|
515
537
|
]));
|
|
516
538
|
}
|
|
517
|
-
}),
|
|
539
|
+
}), Xe = /* @__PURE__ */ We(Qe, [["__scopeId", "data-v-c71661d5"]]), dt = be(Xe);
|
|
518
540
|
export {
|
|
519
|
-
|
|
541
|
+
ne as COLUMN_TYPES,
|
|
520
542
|
A as MODES,
|
|
521
|
-
|
|
522
|
-
|
|
543
|
+
dt as PageContainer,
|
|
544
|
+
dt as default
|
|
523
545
|
};
|
package/es/ParameterTable.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { ElIcon as Y, ElInput as Z, ElButton as oe, ElTooltip as Oe, ElSelect as
|
|
|
4
4
|
import { IconUpload2 as he, Error as ge, IconScene as rt, IconAdd2 as ot, IconZuoCopyCopy as Se, IconZuoCopy as Be, IconDelete2 as it, IconAdd as st, IconTip as be } from "color-message-aibox-vue";
|
|
5
5
|
import { useDialog as ut, DialogContainer as dt } from "./DialogContainer.mjs";
|
|
6
6
|
import { AiboxTable as ke } from "./Table.mjs";
|
|
7
|
-
import { u as ne, g as X } from "./chunks/i18n.
|
|
7
|
+
import { u as ne, g as X } from "./chunks/i18n.DMVLcyDY.js";
|
|
8
8
|
import { _ as ue } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
9
|
import { FileUploader as Le, getWarnTips as Ne, getAcceptType as Ce, UploadTypesEnum as Re } from "./FileUploader.mjs";
|
|
10
10
|
import { AutoShowTooltip as Pe } from "./AutoShowTooltip.mjs";
|