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.
Files changed (62) hide show
  1. package/es/ApplicationTypeTag.mjs +1 -1
  2. package/es/AvailableRangePreview.mjs +1 -1
  3. package/es/AvailableRangeSetting.mjs +2 -2
  4. package/es/CommonTagsList.mjs +3 -3
  5. package/es/CustomSidebar.mjs +1 -1
  6. package/es/FileUploader.mjs +1 -1
  7. package/es/PageContainer.mjs +195 -173
  8. package/es/ParameterTable.mjs +1 -1
  9. package/es/SourcePublish.mjs +120 -122
  10. package/es/Table.mjs +2 -2
  11. package/es/assets/PageContainer.css +1 -1
  12. package/es/assets/SourcePublish.css +1 -1
  13. package/es/assets/index3.css +1 -0
  14. package/es/assets/layout2.css +1 -1
  15. package/es/chunks/{BackBar.DY42HcZy.js → BackBar.9Pp2SYB-.js} +1 -1
  16. package/es/chunks/{BackBar.eaUb1JvV.js → BackBar.DwhmSL-a.js} +98 -98
  17. package/es/chunks/{config.CyAT4SUn.js → config.DVEvXGIL.js} +11 -11
  18. package/es/chunks/{i18n.CfMhDOdX.js → i18n.BNeBD4gR.js} +6 -6
  19. package/es/chunks/{i18n.Bd7hh14j.js → i18n.DMVLcyDY.js} +2 -2
  20. package/es/chunks/i18n.DUrvNBQz.js +4028 -0
  21. package/es/chunks/index.BcLVH95_.js +4058 -0
  22. package/es/chunks/index.CSPp4g5C.js +303 -0
  23. package/es/chunks/{index.CHlFhI6c.js → index.CZTB65ge.js} +1 -1
  24. package/es/chunks/index.ClqvUq64.js +302 -0
  25. package/es/chunks/index.Dh5IGfxO.js +290 -0
  26. package/es/chunks/index.Doax01RQ.js +254 -0
  27. package/es/chunks/{layout.B1qqvrXz.js → layout.BSXfM0rC.js} +144 -130
  28. package/es/index.mjs +5 -5
  29. package/lib/ApplicationTypeTag.js +1 -1
  30. package/lib/AvailableRangePreview.js +1 -1
  31. package/lib/AvailableRangeSetting.js +1 -1
  32. package/lib/CommonTagsList.js +1 -1
  33. package/lib/CustomSidebar.js +1 -1
  34. package/lib/FileUploader.js +1 -1
  35. package/lib/PageContainer.js +1 -1
  36. package/lib/ParameterTable.js +1 -1
  37. package/lib/SourcePublish.js +1 -1
  38. package/lib/Table.js +1 -1
  39. package/lib/assets/PageContainer.css +1 -1
  40. package/lib/assets/SourcePublish.css +1 -1
  41. package/lib/assets/index3.css +1 -0
  42. package/lib/assets/layout2.css +1 -1
  43. package/lib/chunks/BackBar.CYThcqhK.js +1 -0
  44. package/lib/chunks/{BackBar.CaaASGvb.js → BackBar.DFDSVp2a.js} +1 -1
  45. package/lib/chunks/{config.BInpXFGZ.js → config.Dwnp4fRZ.js} +1 -1
  46. package/lib/chunks/{i18n.D3L1FBDI.js → i18n.Bzvn6t8H.js} +2 -2
  47. package/lib/chunks/i18n.D-d0yyXi.js +6 -0
  48. package/lib/chunks/index.6X8xsqRJ.js +1 -0
  49. package/lib/chunks/index.Bk55us0s.js +1 -0
  50. package/lib/chunks/index.CP9rhXZ5.js +1 -0
  51. package/lib/chunks/index.CSLWrMRE.js +1 -0
  52. package/lib/chunks/index.CV29Us4A.js +6 -0
  53. package/lib/chunks/{index.D-pFPuUr.js → index.DO3h_zf2.js} +1 -1
  54. package/lib/chunks/layout.DL-8uhpw.js +1 -0
  55. package/lib/index.js +1 -1
  56. package/package.json +3 -3
  57. package/es/chunks/config.JrGX09T5.js +0 -435
  58. package/es/chunks/index.DjDvyGXt.js +0 -313
  59. package/lib/chunks/BackBar.By7ouDgL.js +0 -1
  60. package/lib/chunks/config.CL0cmPQ6.js +0 -1
  61. package/lib/chunks/index.zQ1SfvBa.js +0 -1
  62. package/lib/chunks/layout.Cen7E9tF.js +0 -1
@@ -1,21 +1,24 @@
1
- import { w as ye } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as m, useSlots as he, computed as N, watch as W, onMounted as be, createElementBlock as v, openBlock as i, createCommentVNode as y, createElementVNode as S, renderSlot as E, createVNode as h, unref as n, withCtx as d, createBlock as c, resolveDynamicComponent as ke, toDisplayString as R, normalizeClass as J, mergeProps as Q, toHandlers as we, createSlots as X, normalizeStyle as Se, Fragment as O, renderList as D, createTextVNode as _, normalizeProps as Ce, guardReactiveProps as xe } from "vue";
3
- import { C as ee } from "./chunks/layout.CWL6NVjA.js";
4
- import { SearchBar as Ee } from "color-star-custom-components";
5
- import { IconZuo as ze, IconMore as Pe, IconZuoCopy as Ie, IconYou as Ae } from "color-message-aibox-vue";
6
- import { emitsMap as u, paginationConfig as T, pageParams as I, operationConfigMap as te } from "color-star-custom-methods";
7
- import { ElIcon as K, ElAutoResizer as Ne, ElTable as De, ElTableColumn as U, ElButton as Re, ElDropdown as Oe, ElDropdownMenu as Te, ElDropdownItem as Be, ElScrollbar as Ve, ElPagination as $e } from "element-plus";
8
- import { useRouter as je } from "vue-router";
9
- import { _ as Fe } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
10
- import './assets/PageContainer.css';const ae = {
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
- }, Me = { class: "page-container flex flex-col overflow-hidden h-full" }, Le = { class: "text-1f2329 pd-l-4" }, We = { class: "action-buttons flex items-center" }, Ke = { class: "flex items-center w-full" }, Ue = { class: "flex-1" }, He = { class: "card-list" }, Ye = {
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
- }, Ze = /* @__PURE__ */ Object.assign({
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: T.pageSizes,
88
- layout: T.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: le, emit: ne }) {
154
- const oe = je(), o = l, C = ne, re = m(null), B = m(null), ie = m(null), se = he(), V = m(!1), b = m([]), k = m({
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: T.pageSizes,
159
- layout: T.layout
160
- }), w = m({ ...o.modelValue }), z = m(!1), P = m(!0), $ = m([...o.selection]), j = N(
161
- () => o.api ? b.value : o.tableData
162
- ), p = N(
163
- () => o.api ? k.value : o.pagination
164
- ), F = N(
165
- () => o.api ? V.value || z.value : o.tableProps.loading || z.value || !1
166
- ), M = N(() => o.mode === A.CARD_INFINITE), H = N(() => o.columns?.map((e) => {
167
- if (e.type === ae.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
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, ...r } = e;
176
+ const { width: t, ...i } = e;
174
177
  return {
175
- ...r,
178
+ ...i,
176
179
  minWidth: t
177
180
  };
178
- })), de = (e) => {
179
- !M.value || !P.value || F.value || x({}, !0);
180
- }, ue = (e, t) => e.id || e.bnid || e.key || `item-${t}`, fe = () => {
181
- oe.back();
182
- }, ce = (e, t) => t.formatter ? t.formatter(e[t.prop], e, t) : e[t.prop], pe = (e) => se[e] !== void 0, L = (e, t) => typeof e.actions == "function" ? e.actions(t) || [] : e.actions || [], ge = (e) => e.length < 3 ? e : e.slice(0, 1), Y = (e) => e.length < 3 ? [] : e.slice(1), x = (e = {}, t = !1) => {
183
- if (!o.api) return;
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 || z.value) return;
186
- z.value = !0;
188
+ if (!P.value || x.value) return;
189
+ x.value = !0;
187
190
  } else
188
- V.value = !0, M.value && (P.value = !0, z.value = !1);
189
- const r = {
191
+ $.value = !0, R.value && (P.value = !0, x.value = !1);
192
+ const i = {
190
193
  ...e,
191
194
  // 搜索参数等
192
- ...o.apiParams,
193
- ...w.value
195
+ ...r.apiParams,
196
+ ...S.value
194
197
  };
195
- o.showPagination && (t ? r.page = p.value.page + 1 : r.page = p.value.page, r.size = p.value.size), o.api(r).then((a) => {
196
- const g = a?.data?.memberSo?.data || a?.data?.data || a?.data || [];
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 (!g || g.length === 0) {
201
+ if (!m || m.length === 0) {
199
202
  P.value = !1;
200
203
  return;
201
204
  }
202
- b.value = [...b.value, ...g], k.value.page = r.page, k.value.total = a?.data?.memberSo?.total || a?.data?.total || b.value.length, g.length < p.value.size && (P.value = !1);
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", g), b.value = g, k.value.total = a?.data?.memberSo?.total || a?.data?.total || 0;
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: b.value,
207
- pagination: k.value,
208
- params: r,
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 : (b.value = [], k.value.total = 0), C(u.dataError, a);
216
+ t ? P.value = !1 : (k.value = [], w.value.total = 0), C(u.dataError, a);
214
217
  }).finally(() => {
215
- t ? z.value = !1 : V.value = !1;
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(w.value).forEach((t) => {
226
+ Object.keys(S.value).forEach((t) => {
222
227
  e[t] = void 0;
223
- }), w.value = e, o.api ? (k.value.page = I.pageNum, x()) : C(u.reset);
224
- }, G = (e, t, r) => {
225
- C(u.actionClick, { action: e, row: t, index: r });
226
- }, me = (e) => {
227
- $.value = e, C("selection-change", e);
228
- }, ve = (e, t) => {
229
- switch (o.mode === A.CARD_INFINITE && (b.value = []), e) {
230
- case te.search:
231
- Z();
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 te.reset:
234
- q();
238
+ case le.reset:
239
+ J();
235
240
  break;
236
241
  }
237
242
  };
238
- return W(
239
- () => o.modelValue,
243
+ return K(
244
+ () => r.modelValue,
240
245
  (e) => {
241
- w.value = { ...e };
246
+ S.value = { ...e };
242
247
  },
243
248
  { deep: !0, immediate: !0 }
244
- ), W(
245
- () => o.selection,
249
+ ), K(
250
+ () => r.selection,
246
251
  (e) => {
247
- $.value = [...e];
252
+ F.value = [...e];
248
253
  },
249
254
  { deep: !0, immediate: !0 }
250
- ), W(
251
- () => w.value,
255
+ ), K(
256
+ () => S.value,
252
257
  (e) => {
253
258
  C(u.updateModelValue, { ...e });
254
259
  },
255
260
  { deep: !0 }
256
- ), be(() => {
257
- o.autoLoad && o.api && x();
258
- }), le({
259
- loadData: x,
260
- handleSearch: Z,
261
- handleReset: q,
261
+ ), we(() => {
262
+ r.autoLoad && r.api && E();
263
+ }), oe({
264
+ loadData: E,
265
+ handleSearch: G,
266
+ handleReset: J,
262
267
  // 复选框相关方法
263
- clearSelection: () => B.value?.clearSelection?.(),
264
- toggleAllSelection: () => B.value?.toggleAllSelection?.(),
265
- getSelectionRows: () => $.value
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) => (i(), v("div", Me, [
278
- l.breadcrumb.show ? (i(), v("div", {
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: fe
286
+ onClick: pe
282
287
  }, [
283
- h(n(K), { size: 16 }, {
288
+ g(n(V), { size: 16 }, {
284
289
  default: d(() => [
285
- (i(), c(ke(l.breadcrumb.icon || n(ze))))
290
+ (o(), c(Se(l.breadcrumb.icon || n(Ie))))
286
291
  ]),
287
292
  _: 1
288
293
  }),
289
- S("span", Le, R(l.breadcrumb.text), 1)
290
- ])) : y("", !0),
291
- l.searchFields?.length ? (i(), v("div", {
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: J({
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
- h(ee, { title: "查询" }),
299
- h(n(Ee), {
303
+ g(ae, { title: "查询" }),
304
+ g(n(Pe), {
300
305
  ref_key: "searchFormRef",
301
- ref: re,
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: w.value,
309
- "onUpdate:modelValue": t[0] || (t[0] = (r) => w.value = r),
310
- onOperation: ve
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)) : y("", !0),
313
- S("div", {
314
- class: J(["data-section flex-1 overflow-hidden flex flex-col", {
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 ? E(e.$slots, "title", { key: 0 }, () => [
319
- h(ee, { title: l.title }, {
323
+ l.title ? z(e.$slots, "title", { key: 0 }, () => [
324
+ g(ae, { title: l.title }, {
320
325
  default: d(() => [
321
- E(e.$slots, "title-actions", {}, void 0, !0)
326
+ z(e.$slots, "title-actions", {}, void 0, !0)
322
327
  ]),
323
328
  _: 3
324
329
  }, 8, ["title"])
325
- ], !0) : y("", !0),
326
- l.mode === n(A).TABLE ? (i(), c(n(Ne), {
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: r }) => [
331
- h(n(De), Q({
335
+ default: d(({ width: i }) => [
336
+ g(n(Te), _({
332
337
  ref_key: "tableRef",
333
- ref: B,
334
- data: j.value,
335
- columns: H.value,
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: F.value }, we(l.tableEvents), {
344
+ }, { ...l.tableProps, loading: L.value }, Ce(l.tableEvents), {
340
345
  class: "w-full h-full admin-dashboard-table",
341
346
  border: "",
342
- onSelectionChange: me
343
- }), X({
347
+ onSelectionChange: ye
348
+ }), ee({
344
349
  default: d(() => [
345
- l.showSelection ? (i(), c(n(U), {
350
+ l.showSelection ? (o(), c(n(H), {
346
351
  key: 0,
347
352
  type: "selection",
348
353
  width: "55",
349
354
  fixed: "left"
350
- })) : y("", !0),
351
- l.hasExpand ? (i(), c(n(U), {
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
- S("div", {
363
+ b("div", {
359
364
  class: "sticky-left",
360
- style: Se({ width: r + "px" })
365
+ style: xe({ width: i + "px" })
361
366
  }, [
362
- E(e.$slots, "expand", {
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)) : y("", !0),
369
- (i(!0), v(O, null, D(H.value, (a, g) => (i(), c(n(U), Q({
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), X({ _: 2 }, [
372
- a.type === n(ae).ACTION ? {
376
+ }, { ref_for: !0 }, a), ee({ _: 2 }, [
377
+ a.type === n(ne).ACTION ? {
373
378
  name: "default",
374
379
  fn: d((f) => [
375
- S("div", We, [
376
- (i(!0), v(O, null, D(ge(
377
- L(a, f.row)
378
- ), (s) => (i(), c(n(Re), {
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: (Ge) => G(s, f.row, f.$index)
392
+ onClick: U((_e) => Q(s, f.row, f.$index), ["stop"])
388
393
  }, {
389
394
  default: d(() => [
390
- _(R(s.label), 1)
395
+ te(O(s.label), 1)
391
396
  ]),
392
397
  _: 2
393
398
  }, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
394
- Y(L(a, f.row)).length > 0 ? (i(), c(n(Oe), {
399
+ Z(W(a, f.row)).length > 0 ? (o(), c(n(Ve), {
395
400
  key: 0,
396
- onCommand: (s) => G(s, f.row, f.$index),
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
- h(n(Te), null, {
410
+ g(n(je), null, {
401
411
  default: d(() => [
402
- (i(!0), v(O, null, D(Y(
403
- L(a, f.row)
404
- ), (s) => (i(), c(n(Be), {
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
- _(R(s.label), 1)
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
- h(n(K), null, {
429
+ g(n(V), null, {
420
430
  default: d(() => [
421
- h(n(Pe))
431
+ g(n(Ae))
422
432
  ]),
423
433
  _: 1
424
434
  })
425
435
  ]),
426
436
  _: 2
427
- }, 1032, ["onCommand"])) : y("", !0)
437
+ }, 1032, ["onCommand"])) : h("", !0)
428
438
  ])
429
439
  ]),
430
440
  key: "0"
431
- } : pe(a.prop) ? {
441
+ } : me(a.prop) ? {
432
442
  name: "default",
433
443
  fn: d((f) => [
434
- S("div", Ke, [
435
- g === 0 && l.hasExpand ? (i(), c(n(K), {
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
- ) ? (i(), c(n(Ie), { key: 0 })) : (i(), c(n(Ae), { key: 1 }))
452
+ ) ? (o(), c(n(De), { key: 0 })) : (o(), c(n(Ne), { key: 1 }))
443
453
  ]),
444
454
  _: 2
445
- }, 1024)) : y("", !0),
446
- S("div", Ue, [
447
- E(e.$slots, a.prop, {
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
- S("span", null, R(ce(f.row, a)), 1)
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
- D(l.customSlots, (a) => ({
477
+ N(l.customSlots, (a) => ({
468
478
  name: a,
469
- fn: d((g) => [
470
- E(e.$slots, a, Ce(xe(g)), void 0, !0)
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 ? (i(), c(n(Ve), {
486
+ })) : l.mode === n(A).CARD_INFINITE ? (o(), c(n(Fe), {
477
487
  key: 2,
478
488
  ref_key: "scrollbarRef",
479
- ref: ie,
489
+ ref: de,
480
490
  class: "card-container flex-1",
481
- onEndReached: de
491
+ onEndReached: fe
482
492
  }, {
483
493
  default: d(() => [
484
- S("div", He, [
485
- (i(!0), v(O, null, D(j.value, (r, a) => (i(), v("div", {
486
- key: ue(r, a),
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
- E(e.$slots, "card", {
490
- item: r,
499
+ z(e.$slots, "card", {
500
+ item: i,
491
501
  index: a,
492
- data: j.value,
493
- loading: F.value
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)) : y("", !0),
500
- l.showPagination && !M.value ? (i(), v("div", Ye, [
501
- h(n($e), {
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[1] || (t[1] = (r) => p.value.page = r),
525
+ "onUpdate:currentPage": t[2] || (t[2] = (i) => p.value.page = i),
504
526
  "page-size": p.value.size,
505
- "onUpdate:pageSize": t[2] || (t[2] = (r) => p.value.size = r),
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: x,
510
- onCurrentChange: x
531
+ onSizeChange: E,
532
+ onCurrentChange: E
511
533
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
512
- ])) : y("", !0)
534
+ ])) : h("", !0)
513
535
  ], 2),
514
- E(e.$slots, "default", {}, void 0, !0)
536
+ z(e.$slots, "default", {}, void 0, !0)
515
537
  ]));
516
538
  }
517
- }), qe = /* @__PURE__ */ Fe(Ze, [["__scopeId", "data-v-d9594fc8"]]), ot = ye(qe);
539
+ }), Xe = /* @__PURE__ */ We(Qe, [["__scopeId", "data-v-c71661d5"]]), dt = be(Xe);
518
540
  export {
519
- ae as COLUMN_TYPES,
541
+ ne as COLUMN_TYPES,
520
542
  A as MODES,
521
- ot as PageContainer,
522
- ot as default
543
+ dt as PageContainer,
544
+ dt as default
523
545
  };
@@ -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.Bd7hh14j.js";
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";