@lingshugroup/web-plus 2.1.2 → 2.1.3

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,5 +1,5 @@
1
- var Pe = Object.defineProperty;
2
- var o = (R, $) => Pe(R, "name", { value: $, configurable: !0 });
1
+ var Fe = Object.defineProperty;
2
+ var i = (R, $) => Fe(R, "name", { value: $, configurable: !0 });
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
@@ -10,148 +10,154 @@ var o = (R, $) => Pe(R, "name", { value: $, configurable: !0 });
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { defineComponent as le, useSlots as Ce, ref as h, computed as S, watch as z, h as Re, createElementBlock as B, createBlock as f, unref as i, openBlock as n, createCommentVNode as u, createVNode as v, mergeProps as T, createSlots as X, withCtx as s, renderSlot as b, normalizeProps as O, guardReactiveProps as K, renderList as Y, Fragment as Z, createElementVNode as _, normalizeClass as $e, createTextVNode as k, toDisplayString as P, isRef as ee, toHandlers as Fe } from "vue";
13
+ import { defineComponent as ae, useSlots as Re, ref as g, computed as v, watch as O, h as $e, createElementBlock as x, createBlock as u, unref as n, openBlock as s, createCommentVNode as b, createVNode as k, mergeProps as d, createSlots as Y, withCtx as r, renderSlot as c, normalizeProps as K, guardReactiveProps as H, renderList as Z, Fragment as _, createElementVNode as ee, normalizeClass as Ae, createTextVNode as P, toDisplayString as C, isRef as te, toHandlers as Be } from "vue";
14
14
  import Le from "../../_hooks/useTableListHook/index.js";
15
- import { ElDivider as te, ElButton as C, ElSwitch as Ae, ElSpace as xe, ElMessageBox as ze, ElMessage as Be } from "element-plus";
16
- import { lsListProps as Oe } from "../types/index.js";
17
- import Ke from "../../form/Form.vue/index.js";
18
- import He from "../../table/Table.vue/index.js";
19
- import Ie from "../../_hooks/useRouterHook/index.js";
20
- import { ElTableColumn as Ve } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/table/index/index.js";
21
- import { ElPopconfirm as Me } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/popconfirm/index/index.js";
22
- import { ElSkeleton as Ue } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/skeleton/index/index.js";
23
- const qe = {
15
+ import { ElDivider as le, ElButton as F, ElSwitch as ze, ElSpace as Me, ElMessageBox as Oe, ElMessage as xe } from "element-plus";
16
+ import { lsListProps as Ke } from "../types/index.js";
17
+ import He from "../../form/Form.vue/index.js";
18
+ import Ie from "../../table/Table.vue/index.js";
19
+ import Ve from "../../_hooks/useRouterHook/index.js";
20
+ import { ElTableColumn as Ue } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/table/index/index.js";
21
+ import { ElPopconfirm as qe } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/popconfirm/index/index.js";
22
+ import { ElSkeleton as We } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/skeleton/index/index.js";
23
+ const je = {
24
24
  key: 0,
25
25
  class: "animate_fadeIn transition-all-300 ls-list-wrap"
26
- }, We = { class: "flex items-center" }, je = le({
26
+ }, Ge = { class: "flex items-center" }, Je = ae({
27
27
  name: "LSList"
28
- }), mt = /* @__PURE__ */ le({
29
- ...je,
30
- props: Oe,
31
- emits: ["submitForm", "resetForm", "handleLoading", "handleCurrentPage", "handlePageSize"],
32
- setup(R, { expose: $, emit: ae }) {
33
- const { jumpRouteCom: F, currentRouter: H } = Ie(), e = R, p = ae, I = Ce(), V = h(), M = h(), ie = S(() => Object.keys(I).filter((t) => t.toString().endsWith("-form-slot"))), oe = S(() => Object.keys(I).filter((t) => t.toString().endsWith("-table-slot")));
34
- function U(t, a = !1) {
28
+ }), ht = /* @__PURE__ */ ae({
29
+ ...Je,
30
+ props: Ke,
31
+ emits: ["submitForm", "resetForm", "delSuccess", "switchSuccess", "handleLoading", "handleCurrentPage", "handlePageSize"],
32
+ setup(R, { expose: $, emit: ie }) {
33
+ const { jumpRouteCom: A, currentRouter: I } = Ve(), e = R, h = ie, V = Re(), U = g(), q = g(), ne = v(() => Object.keys(V).filter((t) => t.toString().endsWith("-form-slot"))), oe = v(() => Object.keys(V).filter((t) => t.toString().endsWith("-table-slot")));
34
+ function W(t, a = !1) {
35
35
  if (t) {
36
- const r = t.toString().lastIndexOf(`${a ? "-form-slot" : "-table-slot"}`);
37
- return r !== -1 ? t.toString().slice(0, r) : t;
36
+ const o = t.toString().lastIndexOf(`${a ? "-form-slot" : "-table-slot"}`);
37
+ return o !== -1 ? t.toString().slice(0, o) : t;
38
38
  }
39
39
  return "";
40
40
  }
41
- o(U, "getSlotName");
41
+ i(W, "getSlotName");
42
42
  const {
43
- isFirst: q,
44
- loading: y,
45
- tableData: W,
46
- total: j,
47
- pageSize: g,
48
- currentPage: D,
49
- handleReset: G,
50
- loadData: E,
51
- handleCurrentPageChange: J,
52
- handleSizeChange: ne
43
+ isFirst: j,
44
+ loading: p,
45
+ tableData: G,
46
+ total: J,
47
+ pageSize: D,
48
+ currentPage: S,
49
+ handleReset: N,
50
+ loadData: w,
51
+ handleCurrentPageChange: Q,
52
+ handleSizeChange: se
53
53
  } = Le(e.listApi, e.formData, {
54
54
  dealData: e == null ? void 0 : e.dealData,
55
55
  dealParams: e == null ? void 0 : e.dealParams,
56
56
  ...e == null ? void 0 : e.listHookConfig
57
57
  });
58
- z(y, (t) => {
59
- p("handleLoading", t);
60
- }), z(D, (t) => {
61
- p("handleCurrentPage", t);
62
- }), z(g, (t) => {
63
- p("handlePageSize", t);
58
+ O(p, (t) => {
59
+ h("handleLoading", t);
60
+ }), O(S, (t) => {
61
+ h("handleCurrentPage", t);
62
+ }), O(D, (t) => {
63
+ h("handlePageSize", t);
64
64
  });
65
- function se(t) {
66
- J(1, !1), p("submitForm", t), e != null && e.queryFn ? e.queryFn(t) : E();
67
- }
68
- o(se, "submitForm");
69
65
  function re(t) {
70
- console.warn("resetForm", t), p("resetForm", t), G();
66
+ Q(1, !1), h("submitForm", t), e != null && e.queryFn ? e.queryFn(t) : w();
67
+ }
68
+ i(re, "submitForm");
69
+ function de(t) {
70
+ console.warn("resetForm", t), h("resetForm", t), e != null && e.resetFn ? e.resetFn(t) : N();
71
71
  }
72
- o(re, "resetForm");
73
- const L = S(() => H ? H.value.path : "");
74
- function de() {
75
- e != null && e.addFn ? e.addFn() : F(
72
+ i(de, "resetForm");
73
+ const E = v(() => I ? I.value.path : "");
74
+ function fe() {
75
+ e != null && e.addFn ? e.addFn() : A(
76
76
  {
77
- path: e != null && e.addRoutePath ? e.addRoutePath : `${L.value}/add`
77
+ path: e != null && e.addRoutePath ? e.addRoutePath : `${E.value}/add`
78
78
  },
79
79
  1
80
80
  );
81
81
  }
82
- o(de, "onAdd");
83
- function fe(t, a) {
84
- e != null && e.tableDetailFn ? e.tableDetailFn(a) : F(
82
+ i(fe, "onAdd");
83
+ function ue(t, a) {
84
+ e != null && e.tableDetailFn ? e.tableDetailFn(a) : A(
85
85
  {
86
- path: `${e != null && e.detailRoutePath ? e.detailRoutePath : `${L.value}/detail`}/${t}`
86
+ path: `${e != null && e.detailRoutePath ? e.detailRoutePath : `${E.value}/detail`}/${t}`
87
87
  },
88
88
  1
89
89
  );
90
90
  }
91
- o(fe, "onDetail");
92
- function ue(t, a) {
93
- e != null && e.tableEditFn ? e.tableEditFn(a) : F(
91
+ i(ue, "onDetail");
92
+ function be(t, a) {
93
+ e != null && e.tableEditFn ? e.tableEditFn(a) : A(
94
94
  {
95
- path: `${e != null && e.editRoutePath ? e.editRoutePath : `${L.value}/edit`}/${t}`
95
+ path: `${e != null && e.editRoutePath ? e.editRoutePath : `${E.value}/edit`}/${t}`
96
96
  },
97
97
  1
98
98
  );
99
99
  }
100
- o(ue, "onEdit");
101
- const A = h(void 0), w = h(!1);
102
- function be(t, a) {
103
- if (e.delApi) {
104
- A.value = t, w.value = !0;
105
- let r = t;
106
- e != null && e.dealDelParams && (r = e.dealDelParams(a)), e.delApi(r).then(() => {
107
- Be.success("删除成功"), E();
100
+ i(be, "onEdit");
101
+ const B = g(void 0), T = g(!1);
102
+ function ce(t, a) {
103
+ if (B.value = t, e != null && e.tableDelFn)
104
+ e.tableDelFn(a, (o) => {
105
+ T.value = o;
106
+ });
107
+ else if (e.delApi) {
108
+ T.value = !0;
109
+ let o = t;
110
+ e != null && e.dealDelParams && (o = e.dealDelParams(a)), e.delApi(o).then(() => {
111
+ const m = we(a) || `${z(a)}成功`;
112
+ xe.success(m), w(), h("delSuccess", a, !0);
108
113
  }).catch((m) => {
109
114
  console.warn(m);
110
115
  }).finally(() => {
111
- w.value = !1;
116
+ T.value = !1;
112
117
  });
113
118
  }
114
119
  }
115
- o(be, "onDel");
116
- const N = h(), x = h(!1);
117
- function me(t, a, r) {
118
- N.value = t;
119
- const m = /* @__PURE__ */ o((c, l) => {
120
+ i(ce, "onDel");
121
+ const X = g(), L = g(!1);
122
+ function me(t, a, o) {
123
+ X.value = t;
124
+ const m = /* @__PURE__ */ i((y, l) => {
120
125
  if (e.switchApi) {
121
- x.value = !0;
122
- let d = t;
123
- e != null && e.dealSwitchParams && (d = e.dealSwitchParams(r)), e.switchApi(d).then(() => {
124
- E(!1), c(!0);
126
+ L.value = !0;
127
+ let f = t;
128
+ e != null && e.dealSwitchParams && (f = e.dealSwitchParams(o)), e.switchApi(f).then(() => {
129
+ w(!1), y(!0), h("switchSuccess", o, a);
125
130
  }).catch(() => {
126
131
  l(new Error("Error"));
127
132
  }).finally(() => {
128
- x.value = !1;
133
+ L.value = !1;
129
134
  });
130
135
  } else
131
136
  l(new Error("Error"));
132
137
  }, "onSwitch");
133
- return new Promise((c, l) => {
134
- a ? ze.confirm('<strong class="text-14px">请问是否关闭?</strong>', {
138
+ return new Promise((y, l) => {
139
+ a ? Oe.confirm(`<strong class="text-14px">${e.tableSwitchPopTxt || "请问是否关闭?"}</strong>`, {
135
140
  confirmButtonText: "确定",
136
141
  cancelButtonText: "取消",
137
142
  dangerouslyUseHTMLString: !0,
138
143
  customStyle: {
139
144
  width: "240px"
140
- }
145
+ },
146
+ ...e.tableSwitchPopAttrs
141
147
  }).then(() => {
142
- m(c, l);
148
+ m(y, l);
143
149
  }).catch(() => {
144
150
  l(new Error("Error"));
145
- }) : m(c, l);
151
+ }) : m(y, l);
146
152
  });
147
153
  }
148
- o(me, "switchBeforeChange");
149
- function ce(t) {
154
+ i(me, "switchBeforeChange");
155
+ function he(t) {
150
156
  let a = !1;
151
157
  return e != null && e.disabledTableSwitch && (typeof e.disabledTableSwitch == "boolean" ? a = e.disabledTableSwitch : typeof e.disabledTableSwitch == "function" && (a = e.disabledTableSwitch(t))), !!a;
152
158
  }
153
- o(ce, "disabledTableSwitch");
154
- function he(t) {
159
+ i(he, "disabledTableSwitch");
160
+ function Te(t) {
155
161
  if (e != null && e.tableDetailText) {
156
162
  if (typeof e.tableDetailText == "string")
157
163
  return e.tableDetailText;
@@ -160,18 +166,18 @@ const qe = {
160
166
  }
161
167
  return "查看";
162
168
  }
163
- o(he, "getTableDetailText");
164
- function Te(t) {
169
+ i(Te, "getTableDetailText");
170
+ function ye(t) {
165
171
  let a = !1;
166
172
  return e != null && e.showTableDetail && (typeof e.showTableDetail == "boolean" ? a = e.showTableDetail : typeof e.showTableDetail == "function" && (a = e.showTableDetail(t))), !!a;
167
173
  }
168
- o(Te, "showTableDetail");
169
- function pe(t) {
174
+ i(ye, "showTableDetail");
175
+ function ge(t) {
170
176
  let a = !1;
171
177
  return e != null && e.disabledTableDetail && (typeof e.disabledTableDetail == "boolean" ? a = e.disabledTableDetail : typeof e.disabledTableDetail == "function" && (a = e.disabledTableDetail(t))), !!a;
172
178
  }
173
- o(pe, "disabledTableDetail");
174
- function ye(t) {
179
+ i(ge, "disabledTableDetail");
180
+ function pe(t) {
175
181
  if (e != null && e.tableEditText) {
176
182
  if (typeof e.tableEditText == "string")
177
183
  return e.tableEditText;
@@ -180,18 +186,18 @@ const qe = {
180
186
  }
181
187
  return "编辑";
182
188
  }
183
- o(ye, "getTableEditText");
184
- function ge(t) {
189
+ i(pe, "getTableEditText");
190
+ function De(t) {
185
191
  let a = !1;
186
192
  return e != null && e.showTableEdit && (typeof e.showTableEdit == "boolean" ? a = e.showTableEdit : typeof e.showTableEdit == "function" && (a = e.showTableEdit(t))), !!a;
187
193
  }
188
- o(ge, "showTableEdit");
189
- function De(t) {
194
+ i(De, "showTableEdit");
195
+ function Se(t) {
190
196
  let a = !1;
191
197
  return e != null && e.disabledTableEdit && (typeof e.disabledTableEdit == "boolean" ? a = e.disabledTableEdit : typeof e.disabledTableEdit == "function" && (a = e.disabledTableEdit(t))), !!a;
192
198
  }
193
- o(De, "disabledTableEdit");
194
- function Q(t) {
199
+ i(Se, "disabledTableEdit");
200
+ function z(t) {
195
201
  if (e != null && e.tableDelText) {
196
202
  if (typeof e.tableDelText == "string")
197
203
  return e.tableDelText;
@@ -200,47 +206,69 @@ const qe = {
200
206
  }
201
207
  return "删除";
202
208
  }
203
- o(Q, "getTableDelText");
209
+ i(z, "getTableDelText");
204
210
  function we(t) {
211
+ if (e != null && e.delMessage) {
212
+ if (typeof e.delMessage == "string")
213
+ return e.delMessage;
214
+ if (typeof e.delMessage == "function")
215
+ return e.delMessage(t);
216
+ }
217
+ return "";
218
+ }
219
+ i(we, "getTableDelMessage");
220
+ function Ee(t) {
205
221
  let a = !1;
206
222
  return e != null && e.showTableDel && (typeof e.showTableDel == "boolean" ? a = e.showTableDel : typeof e.showTableDel == "function" && (a = e.showTableDel(t))), !!a;
207
223
  }
208
- o(we, "showTableDel");
209
- function Ee(t) {
224
+ i(Ee, "showTableDel");
225
+ function ve(t) {
210
226
  let a = !1;
211
227
  return e != null && e.disabledTableDel && (typeof e.disabledTableDel == "boolean" ? a = e.disabledTableDel : typeof e.disabledTableDel == "function" && (a = e.disabledTableDel(t))), !!a;
212
228
  }
213
- o(Ee, "disabledTableDel");
214
- function Se(t) {
229
+ i(ve, "disabledTableDel");
230
+ function ke(t) {
215
231
  if (e != null && e.popconfirmTxt) {
216
232
  if (typeof e.popconfirmTxt == "string")
217
233
  return e.popconfirmTxt;
218
234
  if (typeof e.popconfirmTxt == "function")
219
235
  return e.popconfirmTxt(t);
220
236
  }
221
- return `是否${Q(t)}当前行数据?`;
237
+ return `是否${z(t)}当前行数据?`;
238
+ }
239
+ i(ke, "getPopconfirmTxt");
240
+ function M(t, a) {
241
+ const o = e[t];
242
+ if (o) {
243
+ if (typeof o == "string")
244
+ return o;
245
+ if (typeof o == "function")
246
+ return o(a);
247
+ }
248
+ return "";
222
249
  }
223
- o(Se, "getPopconfirmTxt");
224
- const ve = Re(te, { direction: "vertical" }), ke = S(() => e.showSkeleton ? !q.value : !0);
250
+ i(M, "getTableBtnType");
251
+ const Pe = $e(le, { direction: "vertical" }), Ce = v(() => e.showSkeleton ? !j.value : !0);
225
252
  return $({
226
- loadData: E,
227
- handleReset: G,
228
- setCurrentPage: J,
229
- setPageSize: ne,
230
- isFirst: q,
231
- loading: y,
232
- currentPage: D,
233
- pageSize: g,
234
- total: j,
235
- FormRef: V,
236
- TableRef: M
253
+ loadData: w,
254
+ handleReset: N,
255
+ setCurrentPage: Q,
256
+ setPageSize: se,
257
+ isFirst: j,
258
+ loading: p,
259
+ routePath: E,
260
+ currentPage: S,
261
+ pageSize: D,
262
+ total: J,
263
+ FormRef: U,
264
+ TableRef: q
237
265
  }), (t, a) => {
238
- const r = Ve, m = Me, c = Ue;
239
- return i(ke) ? (n(), B("div", qe, [
240
- t.showForm ? (n(), f(Ke, T({
266
+ const o = Ue, m = qe, y = We;
267
+ return n(Ce) ? (s(), x("div", je, [
268
+ t.showForm ? (s(), u(He, d({
241
269
  key: 0,
242
270
  ref_key: "FormRef",
243
- ref: V,
271
+ ref: U,
244
272
  class: ["mb-6px ls-form-cpo", t.formClass],
245
273
  "label-position": "top",
246
274
  "show-btn-loading": !1,
@@ -248,166 +276,166 @@ const qe = {
248
276
  inline: !0,
249
277
  "form-data": t.formData,
250
278
  "form-items": t.formItems,
251
- loading: i(y),
279
+ loading: n(p),
252
280
  "confirm-text": "查询"
253
281
  }, t.formAttrs, {
254
- onSubmit: se,
255
- onReset: re
256
- }), X({
257
- default: s((l) => [
258
- b(t.$slots, "form-append", O(K(l)), void 0, !0)
282
+ onSubmit: re,
283
+ onReset: de
284
+ }), Y({
285
+ default: r((l) => [
286
+ c(t.$slots, "form-append", K(H(l)), void 0, !0)
259
287
  ]),
260
288
  _: 2
261
289
  }, [
262
- Y(i(ie), (l) => ({
263
- name: U(l, !0),
264
- fn: s((d) => [
265
- b(t.$slots, l, O(K(d)), void 0, !0)
290
+ Z(n(ne), (l) => ({
291
+ name: W(l, !0),
292
+ fn: r((f) => [
293
+ c(t.$slots, l, K(H(f)), void 0, !0)
266
294
  ])
267
295
  }))
268
- ]), 1040, ["class", "form-data", "form-items", "loading"])) : u("", !0),
269
- t.showOperate ? (n(), B(Z, { key: 1 }, [
270
- t.$slots.operate ? b(t.$slots, "operate", { key: 0 }, void 0, !0) : (n(), B(Z, { key: 1 }, [
271
- t.showOperateDivider ? (n(), f(i(te), {
296
+ ]), 1040, ["class", "form-data", "form-items", "loading"])) : b("", !0),
297
+ t.showOperate ? (s(), x(_, { key: 1 }, [
298
+ t.$slots.operate ? c(t.$slots, "operate", { key: 0 }, void 0, !0) : (s(), x(_, { key: 1 }, [
299
+ t.showOperateDivider ? (s(), u(n(le), {
272
300
  key: 0,
273
301
  "border-style": "dashed"
274
- })) : u("", !0),
275
- _("div", {
276
- class: $e(["mt-24px flex items-center justify-start", t.operateClass])
302
+ })) : b("", !0),
303
+ ee("div", {
304
+ class: Ae(["mt-24px flex items-center justify-start", t.operateClass])
277
305
  }, [
278
- b(t.$slots, "operate-prepend", {}, void 0, !0),
279
- t.showAdd ? (n(), f(i(C), T({
306
+ c(t.$slots, "operate-prepend", {}, void 0, !0),
307
+ t.showAdd ? (s(), u(n(F), d({
280
308
  key: 0,
281
309
  type: "primary",
282
- disabled: i(y) || t.disabledAddBtn
283
- }, t.addBtnAttrs, { onClick: de }), {
284
- default: s(() => [
285
- k(P(t.addBtnText), 1)
310
+ disabled: n(p) || t.disabledAddBtn
311
+ }, t.addBtnAttrs, { onClick: fe }), {
312
+ default: r(() => [
313
+ P(C(t.addBtnText), 1)
286
314
  ]),
287
315
  _: 1
288
- }, 16, ["disabled"])) : u("", !0),
289
- b(t.$slots, "operate-append", {}, void 0, !0)
316
+ }, 16, ["disabled"])) : b("", !0),
317
+ c(t.$slots, "operate-append", {}, void 0, !0)
290
318
  ], 2)
291
319
  ], 64))
292
- ], 64)) : u("", !0),
293
- v(He, T({
320
+ ], 64)) : b("", !0),
321
+ k(Ie, d({
294
322
  ref_key: "TableRef",
295
- ref: M,
323
+ ref: q,
296
324
  class: ["ls-table-cpo", [t.showOperate ? "mt-16px" : "mt-24px"]],
297
325
  "show-overflow-tooltip": !0,
298
- loading: i(y),
299
- total: i(j),
300
- "table-data": i(W),
326
+ loading: n(p),
327
+ total: n(J),
328
+ "table-data": n(G),
301
329
  "table-column": t.tableColumn,
302
- "current-page": i(D),
303
- "onUpdate:currentPage": a[0] || (a[0] = (l) => ee(D) ? D.value = l : null),
304
- "page-size": i(g),
305
- "onUpdate:pageSize": a[1] || (a[1] = (l) => ee(g) ? g.value = l : null)
306
- }, t.tableAttrs, Fe(t.tableListeners || {})), X({
307
- default: s(() => [
308
- t.showTableSwitch ? (n(), f(r, T({
330
+ "current-page": n(S),
331
+ "onUpdate:currentPage": a[0] || (a[0] = (l) => te(S) ? S.value = l : null),
332
+ "page-size": n(D),
333
+ "onUpdate:pageSize": a[1] || (a[1] = (l) => te(D) ? D.value = l : null)
334
+ }, t.tableAttrs, Be(t.tableListeners || {})), Y({
335
+ default: r(() => [
336
+ t.showTableSwitch ? (s(), u(o, d({
309
337
  key: 0,
310
338
  prop: t.switchProp,
311
339
  label: "是否开启",
312
340
  width: "100"
313
341
  }, t.tableSwitchColumn), {
314
- default: s(({ row: l }) => [
315
- v(i(Ae), {
342
+ default: r(({ row: l }) => [
343
+ k(n(ze), d({
316
344
  class: "ls-list-table__switch",
317
345
  "model-value": l[t.switchProp] ? 1 : 0,
318
346
  "active-value": 1,
319
347
  "inactive-value": 0,
320
- loading: i(x) && l[t.tableRowKey] === i(N),
321
- "before-change": /* @__PURE__ */ o(() => me(l[t.tableRowKey], l[t.switchProp], l), "before-change"),
322
- disabled: ce(l)
323
- }, null, 8, ["model-value", "loading", "before-change", "disabled"])
348
+ loading: n(L) && l[t.tableRowKey] === n(X),
349
+ "before-change": /* @__PURE__ */ i(() => me(l[t.tableRowKey], l[t.switchProp], l), "before-change"),
350
+ disabled: he(l)
351
+ }, t.tableSwitchAttrs), null, 16, ["model-value", "loading", "before-change", "disabled"])
324
352
  ]),
325
353
  _: 1
326
- }, 16, ["prop"])) : u("", !0),
327
- t.showTableOperate ? (n(), f(r, T({
354
+ }, 16, ["prop"])) : b("", !0),
355
+ t.showTableOperate ? (s(), u(o, d({
328
356
  key: 1,
329
357
  fixed: "right",
330
358
  prop: "operate",
331
359
  label: "操作",
332
360
  "show-overflow-tooltip": !1
333
361
  }, t.tableOperateColumn), {
334
- default: s(({ row: l }) => [
335
- _("div", We, [
336
- v(i(xe), {
362
+ default: r(({ row: l }) => [
363
+ ee("div", Ge, [
364
+ k(n(Me), {
337
365
  size: 0,
338
- spacer: i(ve)
366
+ spacer: n(Pe)
339
367
  }, {
340
- default: s(() => [
341
- b(t.$slots, "table-operate-prepend", { row: l }, void 0, !0),
342
- Te(l) ? (n(), f(i(C), {
368
+ default: r(() => [
369
+ c(t.$slots, "table-operate-prepend", { row: l }, void 0, !0),
370
+ ye(l) ? (s(), u(n(F), d({
343
371
  key: 0,
344
- disabled: pe(l),
372
+ disabled: ge(l),
345
373
  link: "",
346
- type: "primary",
347
- onClick: /* @__PURE__ */ o((d) => fe(l[t.tableRowKey], l), "onClick")
348
- }, {
349
- default: s(() => [
350
- k(P(l.tableDetailText || he(l)), 1)
374
+ type: M("tableDetailType", l) || "primary",
375
+ onClick: /* @__PURE__ */ i((f) => ue(l[t.tableRowKey], l), "onClick")
376
+ }, t.tableDetailBtnAttrs), {
377
+ default: r(() => [
378
+ P(C(l.tableDetailText || Te(l)), 1)
351
379
  ]),
352
380
  _: 2
353
- }, 1032, ["disabled", "onClick"])) : u("", !0),
354
- ge(l) ? (n(), f(i(C), {
381
+ }, 1040, ["disabled", "type", "onClick"])) : b("", !0),
382
+ De(l) ? (s(), u(n(F), d({
355
383
  key: 1,
356
- disabled: De(l),
384
+ disabled: Se(l),
357
385
  link: "",
358
- type: "primary",
359
- onClick: /* @__PURE__ */ o((d) => ue(l[t.tableRowKey], l), "onClick")
360
- }, {
361
- default: s(() => [
362
- k(P(l.tableEditText || ye(l)), 1)
386
+ type: M("tableEditType", l) || "primary",
387
+ onClick: /* @__PURE__ */ i((f) => be(l[t.tableRowKey], l), "onClick")
388
+ }, t.tableEditBtnAttrs), {
389
+ default: r(() => [
390
+ P(C(l.tableEditText || pe(l)), 1)
363
391
  ]),
364
392
  _: 2
365
- }, 1032, ["disabled", "onClick"])) : u("", !0),
366
- we(l) ? (n(), f(m, {
393
+ }, 1040, ["disabled", "type", "onClick"])) : b("", !0),
394
+ Ee(l) ? (s(), u(m, d({
367
395
  key: 2,
368
396
  "hide-icon": "",
369
397
  placement: "top",
370
398
  width: "180",
371
399
  "confirm-button-text": "确认",
372
400
  "cancel-button-text": "取消",
373
- title: l.popconfirmTxt || Se(l),
374
- onConfirm: /* @__PURE__ */ o((d) => be(l[t.tableRowKey], l), "onConfirm")
375
- }, {
376
- reference: s(() => [
377
- v(i(C), {
401
+ title: l.popconfirmTxt || ke(l),
402
+ onConfirm: /* @__PURE__ */ i((f) => ce(l[t.tableRowKey], l), "onConfirm")
403
+ }, t.tableDelPopAttrs), {
404
+ reference: r(() => [
405
+ k(n(F), d({
378
406
  link: "",
379
- type: "danger",
380
- disabled: i(w) || Ee(l),
381
- loading: i(w) && i(A) === l[t.tableRowKey]
382
- }, {
383
- default: s(() => [
384
- k(P(i(w) && i(A) === l[t.tableRowKey] ? "" : l.tableDelText || Q(l)), 1)
407
+ type: M("tableDelType", l) || "danger",
408
+ disabled: n(T) || ve(l),
409
+ loading: n(T) && n(B) === l[t.tableRowKey]
410
+ }, t.tableDelBtnAttrs), {
411
+ default: r(() => [
412
+ P(C(n(T) && n(B) === l[t.tableRowKey] ? "" : l.tableDelText || z(l)), 1)
385
413
  ]),
386
414
  _: 2
387
- }, 1032, ["disabled", "loading"])
415
+ }, 1040, ["type", "disabled", "loading"])
388
416
  ]),
389
417
  _: 2
390
- }, 1032, ["title", "onConfirm"])) : u("", !0),
391
- b(t.$slots, "table-operate-append", { row: l }, void 0, !0)
418
+ }, 1040, ["title", "onConfirm"])) : b("", !0),
419
+ c(t.$slots, "table-operate-append", { row: l }, void 0, !0)
392
420
  ]),
393
421
  _: 2
394
422
  }, 1032, ["spacer"])
395
423
  ])
396
424
  ]),
397
425
  _: 3
398
- }, 16)) : u("", !0),
399
- b(t.$slots, "table-append", { tableData: i(W) }, void 0, !0)
426
+ }, 16)) : b("", !0),
427
+ c(t.$slots, "table-append", { tableData: n(G) }, void 0, !0)
400
428
  ]),
401
429
  _: 2
402
430
  }, [
403
- Y(i(oe), (l) => ({
404
- name: U(l, !1),
405
- fn: s((d) => [
406
- b(t.$slots, l, O(K(d)), void 0, !0)
431
+ Z(n(oe), (l) => ({
432
+ name: W(l, !1),
433
+ fn: r((f) => [
434
+ c(t.$slots, l, K(H(f)), void 0, !0)
407
435
  ])
408
436
  }))
409
437
  ]), 1040, ["class", "loading", "total", "table-data", "table-column", "current-page", "page-size"])
410
- ])) : (n(), f(c, T({
438
+ ])) : (s(), u(y, d({
411
439
  key: 1,
412
440
  rows: 5,
413
441
  animated: ""
@@ -416,5 +444,5 @@ const qe = {
416
444
  }
417
445
  });
418
446
  export {
419
- mt as default
447
+ ht as default
420
448
  };