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.
@@ -1,21 +1,21 @@
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 k, createElementVNode as I, renderSlot as z, createVNode as y, unref as u, withCtx as s, createBlock as b, resolveDynamicComponent as be, toDisplayString as N, normalizeClass as q, mergeProps as Y, toHandlers as he, createSlots as Z, Fragment as D, renderList as P, createTextVNode as G, normalizeProps as Se, guardReactiveProps as ke } from "vue";
3
- import { C as J } from "./chunks/layout.CWL6NVjA.js";
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 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 = {
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
- }, x = {
12
+ }, P = {
13
13
  TABLE: "table",
14
14
  CARD_INFINITE: "card-infinite"
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 = {
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
- }, $e = /* @__PURE__ */ Object.assign({
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: E.pageNum,
85
- size: E.pageSize,
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: x.TABLE,
124
- validator: (r) => Object.values(x).includes(r)
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
- d.search,
139
- d.reset,
140
- d.actionClick,
141
- d.paginationChange,
142
- d.sizeChange,
143
- d.dataLoaded,
144
- d.dataError,
145
- d.updateModelValue,
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(r, { expose: te, emit: ae }) {
150
- const le = Oe(), o = r, h = ae, ne = c(null), R = c(null), re = c(null), oe = ve(), T = c(!1), g = c([]), m = c({
151
- page: E.pageNum,
152
- size: E.pageSize,
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
- }), 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(
159
- () => o.api ? m.value : o.pagination
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
- () => o.api ? T.value || C.value : o.tableProps.loading || C.value || !1
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"))
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
- })), ie = (e) => {
175
- !F.value || !w.value || j.value || S({}, !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), S = (e = {}, a = !1) => {
179
- if (!o.api) return;
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 (!w.value || C.value) return;
182
- C.value = !0;
185
+ if (!z.value || E.value) return;
186
+ E.value = !0;
183
187
  } else
184
- T.value = !0, F.value && (w.value = !0, C.value = !1);
188
+ B.value = !0, F.value && (z.value = !0, E.value = !1);
185
189
  const t = {
186
190
  ...e,
187
191
  // 搜索参数等
188
- ...o.apiParams,
189
- ...v.value
192
+ ...n.apiParams,
193
+ ...b.value
190
194
  };
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) => {
192
- const n = l?.data?.memberSo?.data || l?.data?.data || l?.data || [];
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 (!n || n.length === 0) {
195
- w.value = !1;
198
+ if (!i || i.length === 0) {
199
+ z.value = !1;
196
200
  return;
197
201
  }
198
- g.value = [...g.value, ...n], m.value.page = t.page, m.value.total = l?.data?.memberSo?.total || l?.data?.total || g.value.length, n.length < f.value.size && (w.value = !1);
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
- g.value = n, m.value.total = l?.data?.memberSo?.total || l?.data?.total || 0;
201
- h(d.dataLoaded, {
202
- data: g.value,
203
- pagination: m.value,
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: l?.data,
209
+ response: d?.data,
206
210
  isLoadMore: a
207
211
  });
208
- }).catch((l) => {
209
- a ? w.value = !1 : (g.value = [], m.value.total = 0), h(d.dataError, l);
212
+ }).catch((d) => {
213
+ a ? z.value = !1 : (y.value = [], h.value.total = 0), S(f.dataError, d);
210
214
  }).finally(() => {
211
- a ? C.value = !1 : T.value = !1;
215
+ a ? E.value = !1 : B.value = !1;
212
216
  });
213
- }, U = () => {
214
- o.api ? (m.value.page = E.pageNum, S()) : h(d.search, v.value);
215
- }, H = () => {
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(v.value).forEach((a) => {
221
+ Object.keys(b.value).forEach((a) => {
218
222
  e[a] = void 0;
219
- }), v.value = e, o.api ? (m.value.page = E.pageNum, S()) : h(d.reset);
220
- }, K = (e, a, t) => {
221
- h(d.actionClick, { action: e, row: a, index: t });
222
- }, pe = (e) => {
223
- B.value = e, h("selection-change", e);
224
- }, ge = (e, a) => {
225
- switch (o.mode === x.CARD_INFINITE && (g.value = []), e) {
226
- case Q.search:
227
- U();
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 Q.reset:
230
- H();
233
+ case ee.reset:
234
+ Z();
231
235
  break;
232
236
  }
233
237
  };
234
- return M(
235
- () => o.modelValue,
238
+ return L(
239
+ () => n.modelValue,
236
240
  (e) => {
237
- v.value = { ...e };
241
+ b.value = { ...e };
238
242
  },
239
243
  { deep: !0, immediate: !0 }
240
- ), M(
241
- () => o.selection,
244
+ ), L(
245
+ () => n.selection,
242
246
  (e) => {
243
- B.value = [...e];
247
+ V.value = [...e];
244
248
  },
245
249
  { deep: !0, immediate: !0 }
246
- ), M(
247
- () => v.value,
250
+ ), L(
251
+ () => b.value,
248
252
  (e) => {
249
- h(d.updateModelValue, { ...e });
253
+ S(f.updateModelValue, { ...e });
250
254
  },
251
255
  { deep: !0 }
252
- ), ye(() => {
253
- o.autoLoad && o.api && S();
254
- }), te({
255
- loadData: S,
256
- handleSearch: U,
257
- handleReset: H,
256
+ ), he(() => {
257
+ n.autoLoad && n.api && w();
258
+ }), ae({
259
+ loadData: w,
260
+ handleSearch: Y,
261
+ handleReset: Z,
258
262
  // 复选框相关方法
259
- clearSelection: () => R.value?.clearSelection?.(),
260
- toggleAllSelection: () => R.value?.toggleAllSelection?.(),
261
- getSelectionRows: () => B.value
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) => (i(), p("div", Te, [
274
- r.breadcrumb.show ? (i(), p("div", {
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: se
281
+ onClick: ue
278
282
  }, [
279
- y(u(X), { size: 16 }, {
280
- default: s(() => [
281
- (i(), b(be(r.breadcrumb.icon || u(we))))
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
- I("span", Be, N(r.breadcrumb.text), 1)
286
- ])) : k("", !0),
287
- r.searchFields?.length ? (i(), p("div", {
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: q({
290
- "search-section pd-b-12 mg-b-12": !r.isSeparate,
291
- "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": r.isSeparate
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
- y(J, { title: "查询" }),
295
- y(u(Ce), {
298
+ k(_, { title: "查询" }),
299
+ k(r(Ce), {
296
300
  ref_key: "searchFormRef",
297
- ref: ne,
298
- items: r.searchFields,
301
+ ref: oe,
302
+ items: l.searchFields,
299
303
  "filter-mode": !1,
300
- minWidth: r.minWidth,
304
+ minWidth: l.minWidth,
301
305
  hideExpandButton: !1,
302
306
  fixedWidth: !0,
303
307
  maxHeight: 32,
304
- modelValue: v.value,
305
- "onUpdate:modelValue": a[0] || (a[0] = (t) => v.value = t),
306
- onOperation: ge
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)) : k("", !0),
309
- I("div", {
310
- class: q(["data-section flex-1 overflow-hidden flex flex-col", {
311
- "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": r.isSeparate
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
- r.title ? z(e.$slots, "title", { key: 0 }, () => [
315
- y(J, { title: r.title }, {
316
- default: s(() => [
317
- z(e.$slots, "title-actions", {}, void 0, !0)
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) : k("", !0),
322
- r.mode === u(x).TABLE ? (i(), b(u(Ee), Y({
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: R,
326
- data: V.value,
327
- columns: L.value,
328
- "row-key": r.treeProps.rowKey,
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
- }, { ...r.tableProps, loading: j.value }, he(r.tableEvents), {
334
+ }, { ...l.tableProps, loading: j.value }, ke(l.tableEvents), {
332
335
  class: "flex-1 admin-dashboard-table",
333
336
  border: "",
334
- onSelectionChange: pe
335
- }), Z({
336
- default: s(() => [
337
- r.showSelection ? (i(), b(u(_), {
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
- })) : k("", !0),
343
- (i(!0), p(D, null, P(L.value, (t) => (i(), b(u(_), Y({
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), Z({ _: 2 }, [
346
- t.type === u(ee).ACTION ? {
361
+ }, { ref_for: !0 }, t), Q({ _: 2 }, [
362
+ t.type === r(te).ACTION ? {
347
363
  name: "default",
348
- fn: s((l) => [
349
- I("div", Ve, [
350
- (i(!0), p(D, null, P(ce(
351
- $(t, l.row)
352
- ), (n) => (i(), b(u(xe), {
353
- key: n.key || n.label,
354
- type: n.type || "primary",
355
- size: n.size || "small",
356
- disabled: n.disabled,
357
- loading: n.loading,
358
- text: n.text,
359
- link: n.link,
360
- icon: n.icon,
361
- onClick: (Le) => K(n, l.row, l.$index)
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: s(() => [
364
- G(N(n.label), 1)
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
- W($(t, l.row)).length > 0 ? (i(), b(u(Ae), {
384
+ H(M(t, i.row)).length > 0 ? (o(), c(r(Ne), {
369
385
  key: 0,
370
- onCommand: (n) => K(n, l.row, l.$index),
386
+ onCommand: (s) => q(s, i.row, i.$index),
371
387
  trigger: "click"
372
388
  }, {
373
- dropdown: s(() => [
374
- y(u(Ie), null, {
375
- default: s(() => [
376
- (i(!0), p(D, null, P(W(
377
- $(t, l.row)
378
- ), (n) => (i(), b(u(Pe), {
379
- key: n.key || n.label,
380
- command: n,
381
- disabled: n.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: s(() => [
384
- G(N(n.label), 1)
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: s(() => [
393
- y(u(X), null, {
394
- default: s(() => [
395
- y(u(ze))
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"])) : k("", !0)
417
+ }, 1032, ["onCommand"])) : v("", !0)
402
418
  ])
403
419
  ]),
404
420
  key: "0"
405
- } : fe(t.prop) ? {
421
+ } : ce(t.prop) ? {
406
422
  name: "default",
407
- fn: s((l) => [
408
- z(e.$slots, t.prop, {
409
- row: l.row,
410
- index: l.$index,
411
- column: t
412
- }, void 0, !0)
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: s((l) => [
418
- I("span", null, N(de(l.row, t)), 1)
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
- P(r.customSlots, (t) => ({
457
+ N(l.customSlots, (t) => ({
427
458
  name: t,
428
- fn: s((l) => [
429
- z(e.$slots, t, Se(ke(l)), void 0, !0)
459
+ fn: u((d) => [
460
+ x(e.$slots, t, Se(we(d)), void 0, !0)
430
461
  ])
431
462
  }))
432
- ]), 1040, ["data", "columns", "row-key", "tree-props"])) : r.mode === u(x).CARD_INFINITE ? (i(), b(u(Ne), {
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: ie
468
+ onEndReached: se
438
469
  }, {
439
- default: s(() => [
440
- I("div", je, [
441
- (i(!0), p(D, null, P(V.value, (t, l) => (i(), p("div", {
442
- key: ue(t, l),
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
- z(e.$slots, "card", {
476
+ x(e.$slots, "card", {
446
477
  item: t,
447
- index: l,
448
- data: V.value,
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)) : k("", !0),
456
- r.showPagination && !F.value ? (i(), p("div", Fe, [
457
- y(u(De), {
458
- "current-page": f.value.page,
459
- "onUpdate:currentPage": a[1] || (a[1] = (t) => f.value.page = t),
460
- "page-size": f.value.size,
461
- "onUpdate:pageSize": a[2] || (a[2] = (t) => f.value.size = t),
462
- "page-sizes": f.value.pageSizes,
463
- total: f.value.total,
464
- layout: f.value.layout,
465
- onSizeChange: S,
466
- onCurrentChange: S
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
- ])) : k("", !0)
499
+ ])) : v("", !0)
469
500
  ], 2),
470
- z(e.$slots, "default", {}, void 0, !0)
501
+ x(e.$slots, "default", {}, void 0, !0)
471
502
  ]));
472
503
  }
473
- }), Me = /* @__PURE__ */ Re($e, [["__scopeId", "data-v-7c2b9395"]]), Qe = me(Me);
504
+ }), He = /* @__PURE__ */ Ve(Ke, [["__scopeId", "data-v-2ed02877"]]), at = ve(He);
474
505
  export {
475
- ee as COLUMN_TYPES,
476
- x as MODES,
477
- Qe as PageContainer,
478
- Qe as default
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-7c2b9395]{border-bottom:1px solid var(--border-color)}.action-buttons[data-v-7c2b9395]{gap:8px;flex-wrap:wrap}.bg-fff[data-v-7c2b9395]{background-color:var(--background-color-2);border:1px solid var(--border-color)}.card-list[data-v-7c2b9395]{display:grid;grid-template-columns:repeat(auto-fill,minmax(306px,1fr));gap:16px}
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)}