@web-utils/form-ui 1.0.0-beta50 → 1.0.0-beta51

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 (47) hide show
  1. package/chunks/{zwXzk9ff2.mjs → BG8z3V9d2.mjs} +204 -129
  2. package/chunks/{kflKDW4T2.mjs → BQk3-Ppb2.mjs} +1 -1
  3. package/chunks/{hzaYr6Ud2.mjs → BQyL45PF2.mjs} +1 -1
  4. package/chunks/{Cln3RBAD.mjs → BWh6u1O0.mjs} +1 -1
  5. package/chunks/{Dkd5BC98.mjs → Bwbtu2cp.mjs} +0 -4
  6. package/chunks/{vXQf89tS.mjs → C7G-cAoI.mjs} +1 -1
  7. package/chunks/{BUGCiCnl.mjs → CXsoKP22.mjs} +4 -1
  8. package/chunks/{CqoVAnxC2.mjs → CqVd8D222.mjs} +0 -4
  9. package/chunks/{BA2KEptL.mjs → DKwp6AMl.mjs} +0 -4
  10. package/chunks/{D0Zg2CV0.mjs → D_Fs3bkZ.mjs} +1 -1
  11. package/chunks/{CxTg0r4n.mjs → Dt3lfDnL.mjs} +1 -1
  12. package/chunks/{cqIZWDHo.mjs → YFiU0ngn.mjs} +174 -166
  13. package/chunks/{B-zqRAXo.mjs → wDS9KBFw.mjs} +2 -4
  14. package/confirm-button/index.d.ts +9 -2
  15. package/confirm-button/index.mjs +1 -1
  16. package/confirmable/index.d.ts +9 -2
  17. package/confirmable/index.mjs +1 -1
  18. package/constants/index.d.ts +1 -0
  19. package/constants/index.mjs +2 -2
  20. package/editable-tree/index.mjs +1 -1
  21. package/form-button/index.d.ts +9 -2
  22. package/form-cascader/index.d.ts +8 -8
  23. package/form-cascader/index.mjs +1 -1
  24. package/form-input-cron-expression/index.mjs +1 -1
  25. package/form-input-time/index.d.ts +8 -8
  26. package/form-input-time/index.mjs +1 -1
  27. package/form-table-plus/index.mjs +1 -1
  28. package/form-time-select/index.d.ts +8 -8
  29. package/form-time-select/index.mjs +1 -1
  30. package/index.css +1 -1
  31. package/index.mjs +12 -12
  32. package/package.json +1 -1
  33. package/pageable-table/index.d.ts +2 -0
  34. package/pageable-table/index.mjs +1 -1
  35. package/pageable-table/style.css +1 -1
  36. package/sub-table/index.mjs +154 -89
  37. package/sub-table-plus/index.d.ts +4 -1
  38. package/sub-table-plus/index.mjs +1 -1
  39. package/table-column/index.mjs +1 -1
  40. package/table-view/index.d.ts +2 -1
  41. package/table-view/index.mjs +111 -108
  42. package/toolbar/index.mjs +1 -1
  43. package/toolbar-button/index.d.ts +2 -2
  44. package/toolbar-button/index.mjs +1 -1
  45. package/vue-cron/index.mjs +1 -1
  46. package/web-types.json +1 -1
  47. package/x-input-tag/index.mjs +1 -1
@@ -1,25 +1,25 @@
1
1
  import e from "../confirmable/index.mjs";
2
2
  import t from "../confirm-button/index.mjs";
3
3
  import { t as n } from "../chunks/DOZRzqlo.mjs";
4
- import { t as r } from "../chunks/CxTg0r4n.mjs";
4
+ import { t as r } from "../chunks/Dt3lfDnL.mjs";
5
5
  import { t as i } from "../chunks/CkOD-_VV.mjs";
6
6
  import { n as a } from "../chunks/D_qiRmiE.mjs";
7
- import { t as o } from "../chunks/Dkd5BC98.mjs";
7
+ import { t as o } from "../chunks/Bwbtu2cp.mjs";
8
8
  import { t as s } from "../chunks/CabldOLo.mjs";
9
9
  import { t as c } from "../chunks/V2p-PCpL.mjs";
10
10
  import { t as l } from "../chunks/B1IPSTA6.mjs";
11
11
  import { t as u } from "../chunks/BbSPWDDZ.mjs";
12
12
  import { t as d } from "../chunks/bFbPPcdq.mjs";
13
13
  import { t as f } from "../chunks/BtcjAHE6.mjs";
14
- import { t as p } from "../chunks/cqIZWDHo.mjs";
14
+ import { t as p } from "../chunks/YFiU0ngn.mjs";
15
15
  import m from "../table-column-def/index.mjs";
16
16
  import { t as h } from "../chunks/CuAoMR3n.mjs";
17
17
  import { findTreeChildren as g, isFunction as _ } from "@web-utils/core";
18
- import { Fragment as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as C, createTextVNode as w, createVNode as T, mergeProps as E, openBlock as D, renderList as O, renderSlot as k, toDisplayString as A, withCtx as j, withModifiers as M } from "vue";
19
- import { formContextKey as N, formItemContextKey as P } from "element-plus";
20
- import { cloneDeep as F } from "@web-utils/integrations/lodash";
18
+ import { Fragment as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as C, createTextVNode as w, createVNode as T, mergeProps as E, openBlock as D, renderList as O, renderSlot as k, resolveComponent as A, toDisplayString as j, withCtx as M, withModifiers as N } from "vue";
19
+ import { formContextKey as P, formItemContextKey as F } from "element-plus";
20
+ import { cloneDeep as I } from "@web-utils/integrations/lodash";
21
21
  //#region src/components/table/SubTable.vue
22
- var I = {
22
+ var L = {
23
23
  name: "SubTable",
24
24
  emits: {
25
25
  ...a,
@@ -27,11 +27,11 @@ var I = {
27
27
  },
28
28
  inject: {
29
29
  elForm: {
30
- from: N,
30
+ from: P,
31
31
  default: ""
32
32
  },
33
33
  elFormItem: {
34
- from: P,
34
+ from: F,
35
35
  default: ""
36
36
  }
37
37
  },
@@ -131,7 +131,7 @@ var I = {
131
131
  } catch {}
132
132
  },
133
133
  add(e, t) {
134
- let n = F(this.rowProps);
134
+ let n = I(this.rowProps);
135
135
  this.rows.splice(t + 1, 0, n);
136
136
  },
137
137
  addRow() {
@@ -168,40 +168,40 @@ var I = {
168
168
  return e[t.property];
169
169
  }
170
170
  }
171
- }, L = {
171
+ }, R = {
172
172
  key: 0,
173
173
  class: "table-header"
174
- }, R = {
174
+ }, z = {
175
175
  key: 0,
176
176
  style: { color: "#f56c6c" }
177
- }, z = ["onClick"];
178
- function B(i, a, g, _, N, P) {
179
- let F = r, I = t, B = s, V = d, H = f, U = l, W = o, G = c, K = u, q = h, J = n, Y = m, X = e, Z = p;
180
- return D(), y(Z, E({
177
+ }, B = ["onClick"];
178
+ function V(i, a, g, _, P, F) {
179
+ let I = r, L = t, V = s, H = d, U = A("FormInputUser"), W = A("FormInputDepartment"), G = f, K = l, q = o, J = c, Y = u, X = h, Z = n, Q = m, $ = e, ee = p;
180
+ return D(), y(ee, E({
181
181
  ref: "table",
182
182
  class: "sub-table",
183
183
  "auto-height": "",
184
- data: N.rows,
184
+ data: P.rows,
185
185
  api: g.fetchApi,
186
186
  "show-summary": g.showSummary,
187
187
  "selection-width": g.selectionWidth
188
188
  }, i.$attrs, {
189
189
  "hide-on-single-page": "",
190
- selection: P.enabled,
191
- onSelectionChange: P.onSelectionChange
190
+ selection: F.enabled,
191
+ onSelectionChange: F.onSelectionChange
192
192
  }), C({
193
- default: j(() => [
194
- k(i.$slots, "columns", { columns: g.columns }, () => [(D(!0), x(v, null, O(P.filteredColumns, (e) => (D(), y(Y, {
193
+ default: M(() => [
194
+ k(i.$slots, "columns", { columns: g.columns }, () => [(D(!0), x(v, null, O(F.filteredColumns, (e) => (D(), y(Q, {
195
195
  key: e.prop,
196
196
  label: e.label,
197
197
  width: e.width,
198
198
  align: e.align,
199
199
  prop: e.prop,
200
200
  options: e.options,
201
- "show-overflow-tooltip": !P.available && e.showOverflowTooltip
201
+ "show-overflow-tooltip": !F.available && e.showOverflowTooltip
202
202
  }, {
203
- header: j(() => [!g.disabled && e.required ? (D(), x("span", R, "*")) : b("v-if", !0), w(" " + A(e.label), 1)]),
204
- default: j(({ row: t, column: n, $index: r }) => [
203
+ header: M(() => [!g.disabled && e.required ? (D(), x("span", z, "*")) : b("v-if", !0), w(" " + j(e.label), 1)]),
204
+ default: M(({ row: t, column: n, $index: r }) => [
205
205
  b("tag 插槽"),
206
206
  k(i.$slots, "tag", {
207
207
  row: t,
@@ -215,40 +215,105 @@ function B(i, a, g, _, N, P) {
215
215
  index: r
216
216
  }, () => {
217
217
  var i;
218
- return [P.available && P.getCellType(t, e) === "input" ? (D(), y(B, E({
218
+ return [F.available && F.getCellType(t, e) === "input" ? (D(), y(V, E({
219
219
  key: 0,
220
220
  "model-value": t[n.property]
221
- }, { ref_for: !0 }, P.getInputAttr(t, e), {
222
- disabled: P.isInputDisabled(t, e),
221
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
222
+ disabled: F.isInputDisabled(t, e),
223
+ prop: `${g.prop}[${r}].${e.prop}`,
224
+ required: e.required,
225
+ onInput: (n) => F.onInput(t, n, e)
226
+ }), null, 16, [
227
+ "model-value",
228
+ "disabled",
229
+ "prop",
230
+ "required",
231
+ "onInput"
232
+ ])) : F.available && F.getCellType(t, e) === "inputPhoneNumber" ? (D(), y(H, E({
233
+ key: 1,
234
+ "model-value": t[n.property]
235
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
236
+ disabled: F.isInputDisabled(t, e),
223
237
  prop: `${g.prop}[${r}].${e.prop}`,
224
238
  required: e.required,
225
- onInput: (n) => P.onInput(t, n, e)
239
+ onInput: (n) => F.onInput(t, n, e)
226
240
  }), null, 16, [
227
241
  "model-value",
228
242
  "disabled",
229
243
  "prop",
230
244
  "required",
231
245
  "onInput"
232
- ])) : P.available && P.getCellType(t, e) === "inputPhoneNumber" ? (D(), y(V, E({
246
+ ])) : F.available && F.getCellType(t, e) === "user" ? (D(), x(v, { key: 2 }, [e.single ? (D(), y(U, E({
247
+ key: 0,
248
+ name: t[n.property],
249
+ "onUpdate:name": (e) => t[n.property] = e
250
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
251
+ disabled: F.isInputDisabled(t, e),
252
+ prop: `${g.prop}[${r}].${e.prop}`,
253
+ required: e.required,
254
+ onInput: (n) => F.onInput(t, n, e)
255
+ }), null, 16, [
256
+ "name",
257
+ "onUpdate:name",
258
+ "disabled",
259
+ "prop",
260
+ "required",
261
+ "onInput"
262
+ ])) : (D(), y(U, E({
233
263
  key: 1,
234
264
  "model-value": t[n.property]
235
- }, { ref_for: !0 }, P.getInputAttr(t, e), {
236
- disabled: P.isInputDisabled(t, e),
265
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
266
+ disabled: F.isInputDisabled(t, e),
237
267
  prop: `${g.prop}[${r}].${e.prop}`,
238
268
  required: e.required,
239
- onInput: (n) => P.onInput(t, n, e)
269
+ onInput: (n) => F.onInput(t, n, e)
240
270
  }), null, 16, [
241
271
  "model-value",
242
272
  "disabled",
243
273
  "prop",
244
274
  "required",
245
275
  "onInput"
246
- ])) : P.available && P.getCellType(t, e) === "select" ? (D(), x(v, { key: 2 }, [b(" <template v-else-if=\"available && getCellType(row, item) === 'user'\">\n <FormInputUser\n v-if=\"item.single\"\n v-model:name=\"row[column.property]\"\n v-bind=\"getInputAttr(row, item)\"\n :disabled=\"isInputDisabled(row, item)\"\n :prop=\"`${prop}[${$index}].${item.prop}`\"\n :required=\"item.required\"\n @input=\"val => onInput(row, val, item)\" />\n <FormInputUser\n v-else\n :model-value=\"row[column.property]\"\n v-bind=\"getInputAttr(row, item)\"\n :disabled=\"isInputDisabled(row, item)\"\n :prop=\"`${prop}[${$index}].${item.prop}`\"\n :required=\"item.required\"\n @input=\"val => onInput(row, val, item)\" />\n </template>\n <template v-else-if=\"available && getCellType(row, item) === 'department'\">\n <FormInputDepartment\n v-if=\"item.single\"\n v-model:name=\"row[column.property]\"\n :ou-type=\"item.ouType\"\n v-bind=\"getInputAttr(row, item)\"\n :disabled=\"isInputDisabled(row, item)\"\n :prop=\"`${prop}[${$index}].${item.prop}`\"\n :required=\"item.required\"\n @input=\"val => onInput(row, val, item)\" />\n <FormInputDepartment\n v-else\n :model-value=\"row[column.property]\"\n v-bind=\"getInputAttr(row, item)\"\n :disabled=\"isInputDisabled(row, item)\"\n :prop=\"`${prop}[${$index}].${item.prop}`\"\n :required=\"item.required\"\n @input=\"val => onInput(row, val, item)\" />\n </template>"), T(H, E({ "model-value": t[n.property] }, { ref_for: !0 }, P.getInputAttr(t, e), {
247
- disabled: P.isInputDisabled(t, e),
276
+ ]))], 64)) : F.available && F.getCellType(t, e) === "department" ? (D(), x(v, { key: 3 }, [e.single ? (D(), y(W, E({
277
+ key: 0,
278
+ name: t[n.property],
279
+ "onUpdate:name": (e) => t[n.property] = e,
280
+ "ou-type": e.ouType
281
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
282
+ disabled: F.isInputDisabled(t, e),
283
+ prop: `${g.prop}[${r}].${e.prop}`,
284
+ required: e.required,
285
+ onInput: (n) => F.onInput(t, n, e)
286
+ }), null, 16, [
287
+ "name",
288
+ "onUpdate:name",
289
+ "ou-type",
290
+ "disabled",
291
+ "prop",
292
+ "required",
293
+ "onInput"
294
+ ])) : (D(), y(W, E({
295
+ key: 1,
296
+ "model-value": t[n.property]
297
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
298
+ disabled: F.isInputDisabled(t, e),
299
+ prop: `${g.prop}[${r}].${e.prop}`,
300
+ required: e.required,
301
+ onInput: (n) => F.onInput(t, n, e)
302
+ }), null, 16, [
303
+ "model-value",
304
+ "disabled",
305
+ "prop",
306
+ "required",
307
+ "onInput"
308
+ ]))], 64)) : F.available && F.getCellType(t, e) === "select" ? (D(), y(G, E({
309
+ key: 4,
310
+ "model-value": t[n.property]
311
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
312
+ disabled: F.isInputDisabled(t, e),
248
313
  prop: `${g.prop}[${r}].${e.prop}`,
249
314
  options: e.options,
250
315
  required: e.required,
251
- onInput: (n) => P.onInput(t, n, e)
316
+ onInput: (n) => F.onInput(t, n, e)
252
317
  }), null, 16, [
253
318
  "model-value",
254
319
  "disabled",
@@ -256,19 +321,19 @@ function B(i, a, g, _, N, P) {
256
321
  "options",
257
322
  "required",
258
323
  "onInput"
259
- ])], 64)) : P.available && P.getCellType(t, e) === "datePicker" ? (D(), y(U, E({
260
- key: 3,
324
+ ])) : F.available && F.getCellType(t, e) === "datePicker" ? (D(), y(K, E({
325
+ key: 5,
261
326
  ref_for: !0
262
- }, P.getInputAttr(t, e), {
327
+ }, F.getInputAttr(t, e), {
263
328
  start: t[e.start],
264
329
  "onUpdate:start": (n) => t[e.start] = n,
265
330
  end: t[e.end],
266
331
  "onUpdate:end": (n) => t[e.end] = n,
267
332
  "model-value": t[n.property],
268
- disabled: P.isInputDisabled(t, e),
333
+ disabled: F.isInputDisabled(t, e),
269
334
  prop: `${g.prop}[${r}].${e.prop}`,
270
335
  required: e.required,
271
- onInput: (n) => P.onInput(t, n, e)
336
+ onInput: (n) => F.onInput(t, n, e)
272
337
  }), null, 16, [
273
338
  "start",
274
339
  "onUpdate:start",
@@ -279,16 +344,16 @@ function B(i, a, g, _, N, P) {
279
344
  "prop",
280
345
  "required",
281
346
  "onInput"
282
- ])) : P.available && P.getCellType(t, e) === "cascader" ? (D(), y(W, E({
283
- key: 4,
347
+ ])) : F.available && F.getCellType(t, e) === "cascader" ? (D(), y(q, E({
348
+ key: 6,
284
349
  "model-value": t[n.property]
285
- }, { ref_for: !0 }, P.getInputAttr(t, e), {
286
- disabled: P.isInputDisabled(t, e),
350
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
351
+ disabled: F.isInputDisabled(t, e),
287
352
  prop: `${g.prop}[${r}].${e.prop}`,
288
353
  required: e.required,
289
354
  "label-key": e.labelKey,
290
355
  "value-key": e.valueKey,
291
- onInput: (n) => P.onInput(t, n, e)
356
+ onInput: (n) => F.onInput(t, n, e)
292
357
  }), null, 16, [
293
358
  "model-value",
294
359
  "disabled",
@@ -297,43 +362,43 @@ function B(i, a, g, _, N, P) {
297
362
  "label-key",
298
363
  "value-key",
299
364
  "onInput"
300
- ])) : P.available && P.getCellType(t, e) === "checkbox" ? (D(), y(G, E({
301
- key: 5,
365
+ ])) : F.available && F.getCellType(t, e) === "checkbox" ? (D(), y(J, E({
366
+ key: 7,
302
367
  "model-value": t[n.property]
303
- }, { ref_for: !0 }, P.getInputAttr(t, e), {
304
- disabled: P.isInputDisabled(t, e),
368
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
369
+ disabled: F.isInputDisabled(t, e),
305
370
  prop: `${g.prop}[${r}].${e.prop}`,
306
371
  required: e.required,
307
- onInput: (n) => P.onInput(t, n, e)
372
+ onInput: (n) => F.onInput(t, n, e)
308
373
  }), null, 16, [
309
374
  "model-value",
310
375
  "disabled",
311
376
  "prop",
312
377
  "required",
313
378
  "onInput"
314
- ])) : P.available && P.getCellType(t, e) === "number" ? (D(), y(K, E({
315
- key: 6,
379
+ ])) : F.available && F.getCellType(t, e) === "number" ? (D(), y(Y, E({
380
+ key: 8,
316
381
  "model-value": t[n.property]
317
- }, { ref_for: !0 }, P.getInputAttr(t, e), {
318
- disabled: P.isInputDisabled(t, e),
382
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
383
+ disabled: F.isInputDisabled(t, e),
319
384
  prop: `${g.prop}[${r}].${e.prop}`,
320
385
  required: e.required,
321
- onInput: (n) => P.onInput(t, n, e)
386
+ onInput: (n) => F.onInput(t, n, e)
322
387
  }), null, 16, [
323
388
  "model-value",
324
389
  "disabled",
325
390
  "prop",
326
391
  "required",
327
392
  "onInput"
328
- ])) : P.available && P.getCellType(t, e) === "textarea" ? (D(), y(q, E({
329
- key: 7,
393
+ ])) : F.available && F.getCellType(t, e) === "textarea" ? (D(), y(X, E({
394
+ key: 9,
330
395
  rows: e.rows || "3",
331
396
  "model-value": t[n.property]
332
- }, { ref_for: !0 }, P.getInputAttr(t, e), {
333
- disabled: P.isInputDisabled(t, e),
397
+ }, { ref_for: !0 }, F.getInputAttr(t, e), {
398
+ disabled: F.isInputDisabled(t, e),
334
399
  prop: `${g.prop}[${r}].${e.prop}`,
335
400
  required: e.required,
336
- onInput: (n) => P.onInput(t, n, e)
401
+ onInput: (n) => F.onInput(t, n, e)
337
402
  }), null, 16, [
338
403
  "rows",
339
404
  "model-value",
@@ -341,8 +406,8 @@ function B(i, a, g, _, N, P) {
341
406
  "prop",
342
407
  "required",
343
408
  "onInput"
344
- ])) : e.dicType || (i = e.options) != null && i.length ? (D(), y(J, {
345
- key: 8,
409
+ ])) : e.dicType || (i = e.options) != null && i.length ? (D(), y(Z, {
410
+ key: 10,
346
411
  "dict-type": e.dicType,
347
412
  "id-as-value": e.idAsValue,
348
413
  "label-as-value": e.labelAsValue,
@@ -356,7 +421,7 @@ function B(i, a, g, _, N, P) {
356
421
  "column",
357
422
  "row",
358
423
  "options"
359
- ])) : (D(), x(v, { key: 9 }, [w(A(P.getVal(t, n, e)), 1)], 64))];
424
+ ])) : (D(), x(v, { key: 11 }, [w(j(F.getVal(t, n, e)), 1)], 64))];
360
425
  })
361
426
  ]),
362
427
  _: 2
@@ -370,11 +435,11 @@ function B(i, a, g, _, N, P) {
370
435
  ]))), 128))]),
371
436
  b(" 自定义操作列 "),
372
437
  k(i.$slots, "handle", {
373
- add: P.add,
374
- remove: P.remove
438
+ add: F.add,
439
+ remove: F.remove
375
440
  }),
376
441
  b(" 操作列 "),
377
- (!g.modelValue || g.modelValue.length < g.limit) && !g.disabled && P.enabled && g.editable && g.handleColumn ? (D(), y(Y, {
442
+ (!g.modelValue || g.modelValue.length < g.limit) && !g.disabled && F.enabled && g.editable && g.handleColumn ? (D(), y(Q, {
378
443
  key: 0,
379
444
  label: "操作",
380
445
  fixed: "right",
@@ -382,11 +447,11 @@ function B(i, a, g, _, N, P) {
382
447
  align: "center",
383
448
  prop: "menu"
384
449
  }, {
385
- header: j(({ column: e, $index: t }) => [k(i.$slots, "handle-column-header", {
450
+ header: M(({ column: e, $index: t }) => [k(i.$slots, "handle-column-header", {
386
451
  column: e,
387
452
  index: t
388
- }, () => [w(A(e.label), 1)])]),
389
- default: j(({ row: e, $index: t }) => [g.showHandleColumnAddButton && g.modelValue.length < g.maxLimit ? (D(), x("i", {
453
+ }, () => [w(j(e.label), 1)])]),
454
+ default: M(({ row: e, $index: t }) => [g.showHandleColumnAddButton && g.modelValue.length < g.maxLimit ? (D(), x("i", {
390
455
  key: 0,
391
456
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
392
457
  style: {
@@ -395,8 +460,8 @@ function B(i, a, g, _, N, P) {
395
460
  cursor: "pointer"
396
461
  },
397
462
  title: "添加",
398
- onClick: M((n) => P.add(e, t), ["stop"])
399
- }, null, 8, z)) : b("v-if", !0), g.modelValue && g.modelValue.length > 1 || g.allowEmpty ? (D(), y(X, {
463
+ onClick: N((n) => F.add(e, t), ["stop"])
464
+ }, null, 8, B)) : b("v-if", !0), g.modelValue && g.modelValue.length > 1 || g.allowEmpty ? (D(), y($, {
400
465
  key: 1,
401
466
  class: "el-icon-error sub-table-handle-button table-button-remove",
402
467
  style: {
@@ -405,7 +470,7 @@ function B(i, a, g, _, N, P) {
405
470
  },
406
471
  title: "删除",
407
472
  message: "您确定要删除该行吗?",
408
- onClick: M((n) => P.remove(e, t), ["stop"])
473
+ onClick: N((n) => F.remove(e, t), ["stop"])
409
474
  }, null, 8, ["onClick"])) : b("v-if", !0)]),
410
475
  _: 3
411
476
  })) : b("v-if", !0)
@@ -413,49 +478,49 @@ function B(i, a, g, _, N, P) {
413
478
  _: 2
414
479
  }, [g.editable ? void 0 : {
415
480
  name: "toolbar",
416
- fn: j(() => [P.enabled || g.fetchApi ? (D(), x("div", L, [k(i.$slots, "toolbar", {
417
- addRow: P.addRow,
418
- delRow: P.delRow,
419
- refresh: P.refresh
420
- }, () => [P.enabled ? (D(), x(v, { key: 0 }, [T(F, {
481
+ fn: M(() => [F.enabled || g.fetchApi ? (D(), x("div", R, [k(i.$slots, "toolbar", {
482
+ addRow: F.addRow,
483
+ delRow: F.delRow,
484
+ refresh: F.refresh
485
+ }, () => [F.enabled ? (D(), x(v, { key: 0 }, [T(I, {
421
486
  class: "table-header-button add",
422
487
  icon: "el-icon-circle-plus",
423
488
  type: "text",
424
- onClick: P.addRow
489
+ onClick: F.addRow
425
490
  }, {
426
- default: j(() => [...a[1] || (a[1] = [w(" 添加 ", -1)])]),
491
+ default: M(() => [...a[1] || (a[1] = [w(" 添加 ", -1)])]),
427
492
  _: 1
428
- }, 8, ["onClick"]), T(I, {
493
+ }, 8, ["onClick"]), T(L, {
429
494
  class: "table-header-button remove",
430
495
  message: "您确定要删除选中的记录吗?",
431
496
  icon: "el-icon-error",
432
497
  type: "text",
433
- onClick: P.delRow
498
+ onClick: F.delRow
434
499
  }, {
435
- default: j(() => [...a[2] || (a[2] = [w(" 删除 ", -1)])]),
500
+ default: M(() => [...a[2] || (a[2] = [w(" 删除 ", -1)])]),
436
501
  _: 1
437
- }, 8, ["onClick"])], 64)) : b("v-if", !0), g.fetchApi ? (D(), y(F, {
502
+ }, 8, ["onClick"])], 64)) : b("v-if", !0), g.fetchApi ? (D(), y(I, {
438
503
  key: 1,
439
504
  class: "table-header-button refresh",
440
505
  icon: "el-icon-refresh-left",
441
506
  type: "text",
442
507
  disabled: !1,
443
- onClick: P.refresh
508
+ onClick: F.refresh
444
509
  }, {
445
- default: j(() => [...a[3] || (a[3] = [w(" 刷新 ", -1)])]),
510
+ default: M(() => [...a[3] || (a[3] = [w(" 刷新 ", -1)])]),
446
511
  _: 1
447
512
  }, 8, ["onClick"])) : b("v-if", !0)])])) : b("v-if", !0)]),
448
513
  key: "0"
449
514
  }, g.allowEmpty && !g.disabled && g.showEmptyAddButton ? {
450
515
  name: "empty",
451
- fn: j(() => [S("i", {
516
+ fn: M(() => [S("i", {
452
517
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
453
518
  style: {
454
519
  "font-size": "20px",
455
520
  cursor: "pointer"
456
521
  },
457
522
  title: "添加",
458
- onClick: a[0] || (a[0] = M((e) => P.add(null, 0), ["stop"]))
523
+ onClick: a[0] || (a[0] = N((e) => F.add(null, 0), ["stop"]))
459
524
  })]),
460
525
  key: "1"
461
526
  } : void 0]), 1040, [
@@ -467,6 +532,6 @@ function B(i, a, g, _, N, P) {
467
532
  "onSelectionChange"
468
533
  ]);
469
534
  }
470
- var V = /* @__PURE__ */ i(I, [["render", B]]);
535
+ var H = /* @__PURE__ */ i(L, [["render", V]]);
471
536
  //#endregion
472
- export { V as default };
537
+ export { H as default };
@@ -1,3 +1,4 @@
1
+ import { cellClickHandlerContextKey } from '../../constants/index.ts';
1
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
3
  modelValue: ArrayConstructor;
3
4
  prop: StringConstructor;
@@ -93,5 +94,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
93
94
  selection: boolean;
94
95
  index: boolean;
95
96
  bottomAddButton: boolean;
96
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
97
+ }, {}, {}, {}, string, () => {
98
+ [cellClickHandlerContextKey]: (...args: any[]) => void;
99
+ }, true, {}, any>;
97
100
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/zwXzk9ff2.mjs";
1
+ import { t as e } from "../chunks/BG8z3V9d2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/B-zqRAXo.mjs";
1
+ import { t as e } from "../chunks/wDS9KBFw.mjs";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { tableViewContextKey } from '../../constants';
1
+ import { tableViewContextKey, cellClickHandlerContextKey } from '../../constants';
2
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
3
  viewId: (StringConstructor | ArrayConstructor)[];
4
4
  searchPanelAttrs: {
@@ -337,5 +337,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
337
337
  exp(): void;
338
338
  getTableColumns(): any;
339
339
  }, {}>;
340
+ [cellClickHandlerContextKey]: (row: any) => void;
340
341
  }, true, {}, any>;
341
342
  export default _default;