@web-utils/form-ui 1.0.0-beta75 → 1.0.0-beta76

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 (66) hide show
  1. package/chunks/{CzA5Lt_l2.mjs → B-WTB0ce2.mjs} +1 -1
  2. package/chunks/{aG2VZRRm2.mjs → BLBHnUme2.mjs} +1 -1
  3. package/chunks/{CMyOgBni2.mjs → BM8snKHN2.mjs} +1 -1
  4. package/chunks/{nZTrOKQf2.mjs → BP_0cJ172.mjs} +66 -66
  5. package/chunks/{CEDZmNDG2.mjs → BTNnujZA2.mjs} +1 -1
  6. package/chunks/{BCI1maFm2.mjs → BaB0bq4I2.mjs} +1 -1
  7. package/chunks/{B2p5StJk2.mjs → BvlU_Z6D2.mjs} +1 -1
  8. package/chunks/C7rEqtOR.mjs +70 -0
  9. package/chunks/{BoXQg1h12.mjs → CF23xugU2.mjs} +2 -2
  10. package/chunks/{DS86zxjN2.mjs → CFKKwzh72.mjs} +2 -2
  11. package/chunks/{B5gBCT5G2.mjs → CI-pH-gR2.mjs} +1 -1
  12. package/chunks/{BA_en_FG2.mjs → CVM0lwn22.mjs} +1 -1
  13. package/chunks/{CizBLN6J2.mjs → CWaId08S2.mjs} +1 -1
  14. package/chunks/{Bh4XihEh.mjs → Cg6ahpHk.mjs} +1 -1
  15. package/chunks/{Cjxblk9N2.mjs → CpIXTVFU2.mjs} +2 -2
  16. package/chunks/{Dv-_PE3-.mjs → DLdsvozr.mjs} +2 -2
  17. package/chunks/{DCTK5oyK.mjs → DMDsZeqv.mjs} +1 -1
  18. package/chunks/{DjFlEzPM2.mjs → DNiq6hHj2.mjs} +3 -3
  19. package/chunks/{CfxgQ-wf2.mjs → DP7eF99m2.mjs} +1 -1
  20. package/chunks/{CstdEG9K2.mjs → DRXM1Mt22.mjs} +1 -1
  21. package/chunks/{Bp4VotK62.mjs → D_gR5ibl2.mjs} +2 -2
  22. package/chunks/{Cfz-cav7.mjs → Dgwcljur.mjs} +63 -41
  23. package/chunks/{_BhTD9wf.mjs → Dhdoa4M6.mjs} +1 -1
  24. package/chunks/{C_UxYEd72.mjs → Dje2xUVd2.mjs} +2 -2
  25. package/chunks/{BbO6NHlx2.mjs → DvkUImww2.mjs} +109 -109
  26. package/chunks/{VbE4wwJT2.mjs → kAaQhLJs2.mjs} +1 -1
  27. package/chunks/{CBsdczGQ.mjs → ohCkWdwS.mjs} +1 -1
  28. package/chunks/{C6AxHCkY2.mjs → x2jJ6cfy2.mjs} +1 -1
  29. package/form-cascader/index.mjs +1 -1
  30. package/form-checkbox/index.mjs +1 -1
  31. package/form-checkbox-group/index.mjs +1 -1
  32. package/form-date-picker/index.mjs +1 -1
  33. package/form-image/index.mjs +1 -1
  34. package/form-input/index.mjs +1 -1
  35. package/form-input-cron-expression/index.mjs +1 -1
  36. package/form-input-email/index.mjs +1 -1
  37. package/form-input-id-card/index.mjs +1 -1
  38. package/form-input-number/index.mjs +1 -1
  39. package/form-input-phone-number/index.mjs +1 -1
  40. package/form-input-tag/index.mjs +1 -1
  41. package/form-input-time/index.mjs +1 -1
  42. package/form-item-x/index.mjs +1 -1
  43. package/form-radio-group/index.mjs +1 -1
  44. package/form-rate/index.mjs +1 -1
  45. package/form-select/index.mjs +1 -1
  46. package/form-slider/index.mjs +1 -1
  47. package/form-switch/index.mjs +1 -1
  48. package/form-table/index.mjs +1 -1
  49. package/form-table-plus/index.mjs +1 -1
  50. package/form-text/index.mjs +1 -1
  51. package/form-textarea/index.mjs +1 -1
  52. package/form-time-select/index.mjs +1 -1
  53. package/form-tree-select/index.mjs +1 -1
  54. package/form-tree-select-multiple/index.mjs +1 -1
  55. package/helper/input.d.ts +3 -1
  56. package/helper/input.mjs +1 -1
  57. package/helper/sub-table-plus.d.ts +1 -1
  58. package/index.mjs +29 -29
  59. package/package.json +1 -1
  60. package/sub-table/index.mjs +1 -1
  61. package/sub-table-plus/index.mjs +1 -1
  62. package/table-view/index.mjs +1 -1
  63. package/tag-render/index.mjs +15 -16
  64. package/web-types.json +1 -1
  65. package/x-input-tag/index.mjs +36 -37
  66. package/chunks/UCeucUsB.mjs +0 -68
@@ -4,20 +4,20 @@ import { t as n } from "./Cb7kjZa-.mjs";
4
4
  import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
5
5
  import { t as i } from "./mnqSaATq.mjs";
6
6
  import { t as a } from "./tzjUpVIj.mjs";
7
- import { n as o } from "./Cfz-cav7.mjs";
8
- import { t as s } from "./CBsdczGQ.mjs";
9
- import { t as c } from "./_BhTD9wf.mjs";
10
- import { t as l } from "./UCeucUsB.mjs";
11
- import { t as u } from "./Dv-_PE3-.mjs";
12
- import { t as d } from "./DCTK5oyK.mjs";
13
- import { t as f } from "./CEDZmNDG2.mjs";
14
- import { t as p } from "./C_UxYEd72.mjs";
15
- import { t as m } from "./BCI1maFm2.mjs";
16
- import h from "../table-column-def/index.mjs";
17
- import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, normalizeClass as T, openBlock as E, renderList as D, renderSlot as O, resolveComponent as k, toDisplayString as A, toHandlers as ee, withCtx as j, withModifiers as M } from "vue";
18
- import { findTreeChildren as N, isFunction as P } from "@web-utils/core";
19
- import { cloneDeep as F } from "@web-utils/integrations/lodash";
20
- import { formContextKey as I, formItemContextKey as L } from "element-plus";
7
+ import { n as o } from "./Dgwcljur.mjs";
8
+ import { t as ee } from "./ohCkWdwS.mjs";
9
+ import { t as s } from "./Dhdoa4M6.mjs";
10
+ import { t as c } from "./C7rEqtOR.mjs";
11
+ import { t as l } from "./DLdsvozr.mjs";
12
+ import { t as u } from "./DMDsZeqv.mjs";
13
+ import { t as d } from "./BTNnujZA2.mjs";
14
+ import { t as f } from "./Dje2xUVd2.mjs";
15
+ import { t as p } from "./BaB0bq4I2.mjs";
16
+ import m from "../table-column-def/index.mjs";
17
+ import { formContextKey as h, formItemContextKey as g } from "element-plus/es";
18
+ import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, normalizeClass as E, openBlock as D, renderList as O, renderSlot as k, resolveComponent as A, toDisplayString as j, toHandlers as M, withCtx as N, withModifiers as P } from "vue";
19
+ import { findTreeChildren as F, isFunction as I } from "@web-utils/core";
20
+ import { cloneDeep as L } from "@web-utils/integrations/lodash";
21
21
  //#region src/components/table/sub-table-plus.ts
22
22
  var R = {
23
23
  modelValue: Array,
@@ -50,11 +50,11 @@ var R = {
50
50
  name: "SubTablePlus",
51
51
  inject: {
52
52
  elForm: {
53
- from: I,
53
+ from: h,
54
54
  default: ""
55
55
  },
56
56
  elFormItem: {
57
- from: L,
57
+ from: g,
58
58
  default: ""
59
59
  }
60
60
  },
@@ -115,7 +115,7 @@ var R = {
115
115
  },
116
116
  methods: {
117
117
  getCellType(e, t) {
118
- return P(t.getType) ? t.getType(e, t) : t.type;
118
+ return I(t.getType) ? t.getType(e, t) : t.type;
119
119
  },
120
120
  getInputAttr(e, t, n) {
121
121
  var r;
@@ -148,7 +148,7 @@ var R = {
148
148
  if (this.fetchApi) this.addRow();
149
149
  else {
150
150
  var n;
151
- let e = F(this.rowProps), r = await ((n = this.initRow) == null ? void 0 : n.call(this, e, t));
151
+ let e = L(this.rowProps), r = await ((n = this.initRow) == null ? void 0 : n.call(this, e, t));
152
152
  t === -1 ? this.rows.push(r || e) : this.rows.splice(t + 1, 0, r || e);
153
153
  }
154
154
  },
@@ -174,14 +174,14 @@ var R = {
174
174
  },
175
175
  getVal(e, t, n) {
176
176
  var r, i;
177
- if (P(n.getVal)) return n.getVal(e, t, n);
177
+ if (I(n.getVal)) return n.getVal(e, t, n);
178
178
  if (n.type === "select" && (r = n.attrs) != null && r.options) {
179
179
  let r = n.attrs.options.find((n) => n.modelValue === e[t.property] || n.code === e[t.property]);
180
180
  if (r) return r.label || r.name;
181
181
  }
182
182
  if (n.type === "checkbox1") return e[t.property] === !0 || e[t.property] === "1" || e[t.property] === "Y" ? "是" : "否";
183
183
  if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
184
- let [r] = N(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
184
+ let [r] = F(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
185
185
  if (r) return r[n.attrs.valueKey || "label"];
186
186
  }
187
187
  return e[t.property];
@@ -214,14 +214,14 @@ var R = {
214
214
  "border-top": "none"
215
215
  }
216
216
  };
217
- function q(e, t, r, o, N, P) {
217
+ function q(e, t, r, o, h, g) {
218
218
  var F, I;
219
- let L = i, R = l, z = c, q = p, J = k("FormInputUser"), Y = k("FormInputDepartment"), X = m, Z = d, Q = s, te = u, ne = f, re = a, $ = h, ie = n;
220
- return E(), y("div", { class: T(["sub-table-plus", { "hide-message": !e.showMessage }]) }, [
221
- C(ie, w(e.$attrs, {
219
+ let L = i, R = c, z = s, q = f, J = A("FormInputUser"), Y = A("FormInputDepartment"), X = p, Z = u, Q = ee, te = l, ne = d, re = a, $ = m, ie = n;
220
+ return D(), b("div", { class: E(["sub-table-plus", { "hide-message": !e.showMessage }]) }, [
221
+ w(ie, T(e.$attrs, {
222
222
  ref: "table",
223
223
  "auto-height": "",
224
- data: e.fetchApi ? null : N.rows,
224
+ data: e.fetchApi ? null : h.rows,
225
225
  api: e.fetchApi,
226
226
  "payload-style": "body",
227
227
  "show-summary": e.showSummary,
@@ -232,11 +232,11 @@ function q(e, t, r, o, N, P) {
232
232
  "hide-on-single-page": "",
233
233
  selection: e.selection,
234
234
  index: e.index,
235
- "row-db-click": P.rowDbClick,
236
- onRowDblclick: P.rowDbClick
237
- }, ee(P.listeners), { onSelectionChange: P.onSelectionChange }), x({
238
- default: j(() => [
239
- O(e.$slots, "columns", { columns: e.columns }, () => [(E(!0), y(g, null, D(P.filteredColumns, (t) => (E(), _($, {
235
+ "row-db-click": g.rowDbClick,
236
+ onRowDblclick: g.rowDbClick
237
+ }, M(g.listeners), { onSelectionChange: g.onSelectionChange }), S({
238
+ default: N(() => [
239
+ k(e.$slots, "columns", { columns: e.columns }, () => [(D(!0), b(_, null, O(g.filteredColumns, (t) => (D(), v($, {
240
240
  key: t.prop,
241
241
  label: t.label,
242
242
  width: t.width,
@@ -247,16 +247,16 @@ function q(e, t, r, o, N, P) {
247
247
  options: t.options,
248
248
  "show-overflow-tooltip": !t.editable && t.showOverflowTooltip
249
249
  }, {
250
- header: j(() => [!e.disabled && t.required ? (E(), y("span", U, "*")) : v("v-if", !0), b("span", { title: t.label }, A(t.label), 9, W)]),
251
- default: j(({ row: n, column: r, $index: i }) => [
252
- v("tag 插槽"),
253
- O(e.$slots, "tag", {
250
+ header: N(() => [!e.disabled && t.required ? (D(), b("span", U, "*")) : y("v-if", !0), x("span", { title: t.label }, j(t.label), 9, W)]),
251
+ default: N(({ row: n, column: r, $index: i }) => [
252
+ y("tag 插槽"),
253
+ k(e.$slots, "tag", {
254
254
  row: n,
255
255
  column: r,
256
256
  index: i
257
257
  }),
258
- v("列默认插槽,名字和 prop 保持一致"),
259
- O(e.$slots, t.prop, {
258
+ y("列默认插槽,名字和 prop 保持一致"),
259
+ k(e.$slots, t.prop, {
260
260
  row: n,
261
261
  column: r,
262
262
  wrapCol: !1,
@@ -266,78 +266,78 @@ function q(e, t, r, o, N, P) {
266
266
  editable: t.editable
267
267
  }, () => {
268
268
  var e;
269
- return [P.enabled && t.editable === !0 ? (E(), y(g, { key: 0 }, [P.getCellType(n, t) === "input" ? (E(), _(R, w({
269
+ return [g.enabled && t.editable === !0 ? (D(), b(_, { key: 0 }, [g.getCellType(n, t) === "input" ? (D(), v(R, T({
270
270
  key: 0,
271
271
  ref_for: !0
272
- }, P.getInputAttr(n, t, i), {
273
- onBlur: () => P.onBlur(n, t),
274
- "onUpdate:modelValue": (e) => P.onInput(n, e, t)
275
- }), null, 16, ["onBlur", "onUpdate:modelValue"])) : P.getCellType(n, t) === "checkbox1" ? (E(), _(z, w({
272
+ }, g.getInputAttr(n, t, i), {
273
+ onBlur: () => g.onBlur(n, t),
274
+ "onUpdate:modelValue": (e) => g.onInput(n, e, t)
275
+ }), null, 16, ["onBlur", "onUpdate:modelValue"])) : g.getCellType(n, t) === "checkbox1" ? (D(), v(z, T({
276
276
  key: 1,
277
277
  ref_for: !0
278
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "inputPhoneNumber" ? (E(), _(q, w({
278
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "inputPhoneNumber" ? (D(), v(q, T({
279
279
  key: 2,
280
280
  ref_for: !0
281
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "user" ? (E(), y(g, { key: 3 }, [t.single ? (E(), _(J, w({
281
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "user" ? (D(), b(_, { key: 3 }, [t.single ? (D(), v(J, T({
282
282
  key: 0,
283
283
  ref_for: !0
284
- }, P.getInputAttr(n, t, i), {
284
+ }, g.getInputAttr(n, t, i), {
285
285
  id: n[r.idProp || `${r.property}Id`],
286
286
  "onUpdate:id": (e) => n[r.idProp || `${r.property}Id`] = e,
287
287
  name: n[r.property],
288
288
  "onUpdate:name": (e) => n[r.property] = e,
289
- "onUpdate:modelValue": (e) => P.onInput(n, e, t)
289
+ "onUpdate:modelValue": (e) => g.onInput(n, e, t)
290
290
  }), null, 16, [
291
291
  "id",
292
292
  "onUpdate:id",
293
293
  "name",
294
294
  "onUpdate:name",
295
295
  "onUpdate:modelValue"
296
- ])) : (E(), _(J, w({
296
+ ])) : (D(), v(J, T({
297
297
  key: 1,
298
298
  ref_for: !0
299
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : P.getCellType(n, t) === "department" ? (E(), y(g, { key: 4 }, [t.single ? (E(), _(Y, w({
299
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : g.getCellType(n, t) === "department" ? (D(), b(_, { key: 4 }, [t.single ? (D(), v(Y, T({
300
300
  key: 0,
301
301
  ref_for: !0
302
- }, P.getInputAttr(n, t, i), {
302
+ }, g.getInputAttr(n, t, i), {
303
303
  name: n[r.property],
304
304
  "onUpdate:name": (e) => n[r.property] = e,
305
- "onUpdate:modelValue": (e) => P.onInput(n, e, t)
305
+ "onUpdate:modelValue": (e) => g.onInput(n, e, t)
306
306
  }), null, 16, [
307
307
  "name",
308
308
  "onUpdate:name",
309
309
  "onUpdate:modelValue"
310
- ])) : (E(), _(Y, w({
310
+ ])) : (D(), v(Y, T({
311
311
  key: 1,
312
312
  ref_for: !0
313
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : P.getCellType(n, t) === "select" ? (E(), _(X, w({
313
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : g.getCellType(n, t) === "select" ? (D(), v(X, T({
314
314
  key: 5,
315
315
  ref_for: !0
316
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "datePicker" ? (E(), _(Z, w({
316
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "datePicker" ? (D(), v(Z, T({
317
317
  key: 6,
318
318
  ref_for: !0
319
- }, P.getInputAttr(n, t, i), {
319
+ }, g.getInputAttr(n, t, i), {
320
320
  start: n[t.start],
321
321
  "onUpdate:start": (e) => n[t.start] = e,
322
322
  end: n[t.end],
323
323
  "onUpdate:end": (e) => n[t.end] = e,
324
- "onUpdate:modelValue": (e) => P.onInput(n, e, t)
324
+ "onUpdate:modelValue": (e) => g.onInput(n, e, t)
325
325
  }), null, 16, [
326
326
  "start",
327
327
  "onUpdate:start",
328
328
  "end",
329
329
  "onUpdate:end",
330
330
  "onUpdate:modelValue"
331
- ])) : P.getCellType(n, t) === "cascader" ? (E(), _(Q, w({
331
+ ])) : g.getCellType(n, t) === "cascader" ? (D(), v(Q, T({
332
332
  key: 7,
333
333
  ref_for: !0
334
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "checkbox" ? (E(), _(te, w({
334
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "checkbox" ? (D(), v(te, T({
335
335
  key: 8,
336
336
  ref_for: !0
337
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "number" ? (E(), _(ne, w({
337
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "number" ? (D(), v(ne, T({
338
338
  key: 9,
339
339
  ref_for: !0
340
- }, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (E(), y(g, { key: 10 }, [S(A(P.getVal(n, r, t)), 1)], 64))], 64)) : t.dictType || (e = t.options) != null && e.length ? (E(), _(re, {
340
+ }, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (D(), b(_, { key: 10 }, [C(j(g.getVal(n, r, t)), 1)], 64))], 64)) : t.dictType || (e = t.options) != null && e.length ? (D(), v(re, {
341
341
  key: 1,
342
342
  "dict-type": t.dictType,
343
343
  "id-as-value": t.idAsValue,
@@ -352,7 +352,7 @@ function q(e, t, r, o, N, P) {
352
352
  "column",
353
353
  "row",
354
354
  "options"
355
- ])) : (E(), y(g, { key: 2 }, [S(A(P.getVal(n, r, t)), 1)], 64))];
355
+ ])) : (D(), b(_, { key: 2 }, [C(j(g.getVal(n, r, t)), 1)], 64))];
356
356
  })
357
357
  ]),
358
358
  _: 2
@@ -366,24 +366,24 @@ function q(e, t, r, o, N, P) {
366
366
  "options",
367
367
  "show-overflow-tooltip"
368
368
  ]))), 128))]),
369
- O(e.$slots, "handle", {
370
- add: P.add,
371
- remove: P.remove
369
+ k(e.$slots, "handle", {
370
+ add: g.add,
371
+ remove: g.remove
372
372
  }),
373
- !e.disabled && P.hasHandleMenus ? (E(), _($, {
373
+ !e.disabled && g.hasHandleMenus ? (D(), v($, {
374
374
  key: 0,
375
375
  label: "操作",
376
376
  width: "80",
377
377
  align: "center",
378
378
  prop: "menu"
379
379
  }, {
380
- header: j(({ column: t, $index: n }) => [O(e.$slots, "handle-column-header", {
380
+ header: N(({ column: t, $index: n }) => [k(e.$slots, "handle-column-header", {
381
381
  column: t,
382
382
  index: n
383
- }, () => [S(A(t.label), 1)])]),
384
- default: j(({ row: t, $index: n }) => {
383
+ }, () => [C(j(t.label), 1)])]),
384
+ default: N(({ row: t, $index: n }) => {
385
385
  var r, i, a;
386
- return [(r = e.handleMenus) != null && r.includes("add") && ((i = e.modelValue) == null ? void 0 : i.length) < e.limit ? (E(), y("i", {
386
+ return [(r = e.handleMenus) != null && r.includes("add") && ((i = e.modelValue) == null ? void 0 : i.length) < e.limit ? (D(), b("i", {
387
387
  key: 0,
388
388
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
389
389
  style: {
@@ -392,90 +392,90 @@ function q(e, t, r, o, N, P) {
392
392
  cursor: "pointer"
393
393
  },
394
394
  title: "添加",
395
- onClick: M((e) => P.add(t, n), ["stop"])
396
- }, null, 8, G)) : v("v-if", !0), (a = e.handleMenus) != null && a.includes("delete") ? (E(), _(L, {
395
+ onClick: P((e) => g.add(t, n), ["stop"])
396
+ }, null, 8, G)) : y("v-if", !0), (a = e.handleMenus) != null && a.includes("delete") ? (D(), v(L, {
397
397
  key: 1,
398
398
  class: "el-icon-error sub-table-handle-button table-button-remove",
399
399
  confirm: "",
400
400
  text: "",
401
401
  title: "删除",
402
402
  message: "您确定要删除该行吗?",
403
- onClick: M((e) => P.remove(t, n), ["stop"])
404
- }, null, 8, ["onClick"])) : v("v-if", !0)];
403
+ onClick: P((e) => g.remove(t, n), ["stop"])
404
+ }, null, 8, ["onClick"])) : y("v-if", !0)];
405
405
  }),
406
406
  _: 3
407
- })) : v("v-if", !0)
407
+ })) : y("v-if", !0)
408
408
  ]),
409
409
  _: 2
410
- }, [!e.disabled || P.hasToolBarMenu ? {
410
+ }, [!e.disabled || g.hasToolBarMenu ? {
411
411
  name: "toolbar",
412
- fn: j(() => [b("div", B, [O(e.$slots, "toolbar", {
413
- addRow: P.addRow,
414
- delRow: P.delRow,
415
- refresh: P.refresh
416
- }, () => [b("div", V, [O(e.$slots, "toolbar-left", {
417
- addRow: P.addRow,
418
- delRow: P.delRow,
419
- refresh: P.refresh
412
+ fn: N(() => [x("div", B, [k(e.$slots, "toolbar", {
413
+ addRow: g.addRow,
414
+ delRow: g.delRow,
415
+ refresh: g.refresh
416
+ }, () => [x("div", V, [k(e.$slots, "toolbar-left", {
417
+ addRow: g.addRow,
418
+ delRow: g.delRow,
419
+ refresh: g.refresh
420
420
  }, () => {
421
421
  var n, r, i;
422
422
  return [
423
- (n = e.toolbarMenus) != null && n.includes("add") ? (E(), _(L, {
423
+ (n = e.toolbarMenus) != null && n.includes("add") ? (D(), v(L, {
424
424
  key: 0,
425
425
  class: "table-header-button add",
426
426
  icon: "el-icon-circle-plus",
427
427
  type: "text",
428
- onClick: P.addRow
428
+ onClick: g.addRow
429
429
  }, {
430
- default: j(() => [...t[2] || (t[2] = [S(" 添加 ", -1)])]),
430
+ default: N(() => [...t[2] || (t[2] = [C(" 添加 ", -1)])]),
431
431
  _: 1
432
- }, 8, ["onClick"])) : v("v-if", !0),
433
- (r = e.toolbarMenus) != null && r.includes("delete") ? (E(), _(L, {
432
+ }, 8, ["onClick"])) : y("v-if", !0),
433
+ (r = e.toolbarMenus) != null && r.includes("delete") ? (D(), v(L, {
434
434
  key: 1,
435
- disabled: N.selectedRows.length <= 0,
435
+ disabled: h.selectedRows.length <= 0,
436
436
  class: "table-header-button remove",
437
437
  confirm: "",
438
438
  message: "您确定要删除选中的记录吗?",
439
439
  icon: "el-icon-error",
440
440
  text: "",
441
- onClick: P.delRow
441
+ onClick: g.delRow
442
442
  }, {
443
- default: j(() => [...t[3] || (t[3] = [S(" 删除 ", -1)])]),
443
+ default: N(() => [...t[3] || (t[3] = [C(" 删除 ", -1)])]),
444
444
  _: 1
445
- }, 8, ["disabled", "onClick"])) : v("v-if", !0),
446
- (i = e.toolbarMenus) != null && i.includes("refresh") ? (E(), _(L, {
445
+ }, 8, ["disabled", "onClick"])) : y("v-if", !0),
446
+ (i = e.toolbarMenus) != null && i.includes("refresh") ? (D(), v(L, {
447
447
  key: 2,
448
448
  class: "table-header-button refresh",
449
449
  icon: "el-icon-refresh-left",
450
450
  text: "",
451
451
  disabled: !1,
452
- onClick: P.refresh
452
+ onClick: g.refresh
453
453
  }, {
454
- default: j(() => [...t[4] || (t[4] = [S(" 刷新 ", -1)])]),
454
+ default: N(() => [...t[4] || (t[4] = [C(" 刷新 ", -1)])]),
455
455
  _: 1
456
- }, 8, ["onClick"])) : v("v-if", !0)
456
+ }, 8, ["onClick"])) : y("v-if", !0)
457
457
  ];
458
- }), O(e.$slots, "toolbar-left-append", {
459
- addRow: P.addRow,
460
- delRow: P.delRow,
461
- refresh: P.refresh
462
- })]), b("div", H, [O(e.$slots, "toolbar-right", {
463
- removeSelectedRows: P.removeSelectedRows,
464
- selectedRows: N.selectedRows
458
+ }), k(e.$slots, "toolbar-left-append", {
459
+ addRow: g.addRow,
460
+ delRow: g.delRow,
461
+ refresh: g.refresh
462
+ })]), x("div", H, [k(e.$slots, "toolbar-right", {
463
+ removeSelectedRows: g.removeSelectedRows,
464
+ selectedRows: h.selectedRows
465
465
  })])])])]),
466
466
  key: "0"
467
467
  } : void 0, e.bottomAddButton ? {
468
468
  name: "empty",
469
- fn: j(() => [b("i", {
469
+ fn: N(() => [x("i", {
470
470
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
471
471
  style: {
472
472
  "font-size": "20px",
473
473
  cursor: "pointer"
474
474
  },
475
475
  title: "添加",
476
- onClick: t[0] || (t[0] = M((t) => {
476
+ onClick: t[0] || (t[0] = P((t) => {
477
477
  var n;
478
- return P.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
478
+ return g.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
479
479
  }, ["stop"]))
480
480
  })]),
481
481
  key: "1"
@@ -493,19 +493,19 @@ function q(e, t, r, o, N, P) {
493
493
  "onRowDblclick",
494
494
  "onSelectionChange"
495
495
  ]),
496
- v("底部添加按钮"),
497
- !e.disabled && e.bottomAddButton && ((F = e.modelValue) == null ? void 0 : F.length) < e.limit && ((I = e.modelValue) == null ? void 0 : I.length) > 0 ? (E(), y("div", K, [b("i", {
496
+ y("底部添加按钮"),
497
+ !e.disabled && e.bottomAddButton && ((F = e.modelValue) == null ? void 0 : F.length) < e.limit && ((I = e.modelValue) == null ? void 0 : I.length) > 0 ? (D(), b("div", K, [x("i", {
498
498
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
499
499
  style: {
500
500
  "font-size": "20px",
501
501
  cursor: "pointer"
502
502
  },
503
503
  title: "添加",
504
- onClick: t[1] || (t[1] = M((t) => {
504
+ onClick: t[1] || (t[1] = P((t) => {
505
505
  var n;
506
- return P.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
506
+ return g.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
507
507
  }, ["stop"]))
508
- })])) : v("v-if", !0)
508
+ })])) : y("v-if", !0)
509
509
  ], 2);
510
510
  }
511
511
  var J = /* @__PURE__ */ t(z, [["render", q]]);
@@ -1,4 +1,4 @@
1
- import { n as e, o as t } from "./Cfz-cav7.mjs";
1
+ import { n as e, o as t } from "./Dgwcljur.mjs";
2
2
  import { allProps as n, predicate as r } from "../props/switch.mjs";
3
3
  import { ElSwitch as i } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
@@ -1,5 +1,5 @@
1
1
  import { allProps as e, predicate as t } from "../props/cascader.mjs";
2
- import { n, o as r } from "./Cfz-cav7.mjs";
2
+ import { n, o as r } from "./Dgwcljur.mjs";
3
3
  import { useDictionary as i } from "../hook/useDictionary.mjs";
4
4
  import { ElCascader as a } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
@@ -1,4 +1,4 @@
1
- import { n as e, o as t } from "./Cfz-cav7.mjs";
1
+ import { n as e, o as t } from "./Dgwcljur.mjs";
2
2
  import { allProps as n, predicate as r } from "../props/rate.mjs";
3
3
  import { ElRate as i } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CBsdczGQ.mjs";
1
+ import { t as e } from "../chunks/ohCkWdwS.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/_BhTD9wf.mjs";
1
+ import { t as e } from "../chunks/Dhdoa4M6.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Dv-_PE3-.mjs";
1
+ import { t as e } from "../chunks/DLdsvozr.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DCTK5oyK.mjs";
1
+ import { t as e } from "../chunks/DMDsZeqv.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CfxgQ-wf2.mjs";
1
+ import { t as e } from "../chunks/DP7eF99m2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/UCeucUsB.mjs";
1
+ import { t as e } from "../chunks/C7rEqtOR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BA_en_FG2.mjs";
1
+ import { t as e } from "../chunks/CVM0lwn22.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BoXQg1h12.mjs";
1
+ import { t as e } from "../chunks/CF23xugU2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Cjxblk9N2.mjs";
1
+ import { t as e } from "../chunks/CpIXTVFU2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CEDZmNDG2.mjs";
1
+ import { t as e } from "../chunks/BTNnujZA2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/C_UxYEd72.mjs";
1
+ import { t as e } from "../chunks/Dje2xUVd2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/B5gBCT5G2.mjs";
1
+ import { t as e } from "../chunks/CI-pH-gR2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CstdEG9K2.mjs";
1
+ import { t as e } from "../chunks/DRXM1Mt22.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { s as e } from "../chunks/Cfz-cav7.mjs";
1
+ import { s as e } from "../chunks/Dgwcljur.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/aG2VZRRm2.mjs";
1
+ import { t as e } from "../chunks/BLBHnUme2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/C6AxHCkY2.mjs";
1
+ import { t as e } from "../chunks/x2jJ6cfy2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BCI1maFm2.mjs";
1
+ import { t as e } from "../chunks/BaB0bq4I2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CzA5Lt_l2.mjs";
1
+ import { t as e } from "../chunks/B-WTB0ce2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/VbE4wwJT2.mjs";
1
+ import { t as e } from "../chunks/kAaQhLJs2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DS86zxjN2.mjs";
1
+ import { t as e } from "../chunks/CFKKwzh72.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DjFlEzPM2.mjs";
1
+ import { t as e } from "../chunks/DNiq6hHj2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/B2p5StJk2.mjs";
1
+ import { t as e } from "../chunks/BvlU_Z6D2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Bp4VotK62.mjs";
1
+ import { t as e } from "../chunks/D_gR5ibl2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CizBLN6J2.mjs";
1
+ import { t as e } from "../chunks/CWaId08S2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CMyOgBni2.mjs";
1
+ import { t as e } from "../chunks/BM8snKHN2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Bh4XihEh.mjs";
1
+ import { t as e } from "../chunks/Cg6ahpHk.mjs";
2
2
  export { e as default };
package/helper/input.d.ts CHANGED
@@ -7,11 +7,12 @@ export declare const inputEmits: {
7
7
  "update:modelValue": null;
8
8
  };
9
9
  export declare const updateModelValue: (emit: (event: string, ...args: any[]) => void, value: any) => void;
10
- export declare const renderFormItem: (props: Record<string, any>, { vNodes, formItemProps, slots, disabled }: {
10
+ export declare const renderFormItem: (props: Record<string, any>, { vNodes, formItemProps, slots, disabled, ref }: {
11
11
  disabled: ComputedRef<boolean>;
12
12
  vNodes: VNode;
13
13
  formItemProps: Record<string, any>;
14
14
  slots: Readonly<any>;
15
+ ref?: string;
15
16
  }) => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
16
17
  [key: string]: any;
17
18
  }>;
@@ -40,6 +41,7 @@ export declare const useInput: (props: Record<string, any>, { emit, slots, event
40
41
  autoBind: globalThis.ComputedRef<Record<string, any>>;
41
42
  inputProps: globalThis.ComputedRef<Record<string, any>>;
42
43
  listeners: globalThis.ComputedRef<Record<string, any>>;
44
+ formItem: Readonly<globalThis.ShallowRef<unknown>>;
43
45
  printing: globalThis.ComputedRef<boolean>;
44
46
  };
45
47
  export declare const FontIcon: (props: Record<string, any>) => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
package/helper/input.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/Cfz-cav7.mjs";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/Dgwcljur.mjs";
2
2
  export { a as FontIcon, n as inputEmits, i as renderFormItem, t as updateModelValue, e as useDisabled, r as useInput };