@web-utils/form-ui 1.0.0-beta52 → 1.0.0-beta53

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 (76) hide show
  1. package/chunks/{Dt3lfDnL.mjs → 7GmKqdbC.mjs} +48 -33
  2. package/chunks/{DitpKWMd.mjs → 9MExJqL-.mjs} +2 -2
  3. package/chunks/{DZJ-ShZA2.mjs → B3yVc-P62.mjs} +4 -4
  4. package/chunks/{DkXlFWjs.mjs → B6yWUT6z.mjs} +2 -2
  5. package/chunks/{CkjtCuMs.mjs → BEvOkSfB.mjs} +119 -118
  6. package/chunks/{D3mFJzGr.mjs → BHbMJZPp.mjs} +63 -62
  7. package/chunks/{BSU2FqMP2.mjs → BJYlobMz2.mjs} +2 -2
  8. package/chunks/{KuAMIZnG.mjs → BNXbI4OG.mjs} +1 -1
  9. package/chunks/{CzHaJsnD.mjs → BV-XUugQ.mjs} +3 -3
  10. package/chunks/{DcFllKOf2.mjs → BgTCTXs72.mjs} +4 -3
  11. package/chunks/{BshE3RnA.mjs → BjGlxyi6.mjs} +2 -2
  12. package/chunks/{BAw6wxW1.mjs → BqC_VU52.mjs} +2 -2
  13. package/chunks/{B1k8ydde.mjs → BqzJ6vY6.mjs} +2 -2
  14. package/chunks/{DhVmHzB7.mjs → ByTyNsWf.mjs} +1 -1
  15. package/chunks/{DVbw6xIr.mjs → CB9QUXUX.mjs} +2 -2
  16. package/chunks/{GMFHxPJq.mjs → CGuDBVCB.mjs} +4 -3
  17. package/chunks/{C7G-cAoI.mjs → CPvdsnRN.mjs} +1 -1
  18. package/chunks/{D2MB3CnR.mjs → CgN7m-1v.mjs} +4 -3
  19. package/chunks/{CtHmTtVP.mjs → D5EQJdPL.mjs} +3 -3
  20. package/chunks/{CGHcOyNC2.mjs → D7R9Or2m2.mjs} +3 -3
  21. package/chunks/D9IFsT272.mjs +513 -0
  22. package/chunks/{C6hLXCPk.mjs → DFFNxlqD.mjs} +3 -3
  23. package/chunks/{BWh6u1O0.mjs → DWMePN6q.mjs} +1 -1
  24. package/chunks/{CBFbSsTJ.mjs → DawYTjoT.mjs} +2 -2
  25. package/chunks/{JKFepPeL.mjs → DjnHvHXo.mjs} +2 -2
  26. package/chunks/{v-O82KSn.mjs → DwkOWXIR.mjs} +4 -4
  27. package/chunks/{BQyL45PF2.mjs → DyCO22Ia2.mjs} +1 -1
  28. package/chunks/{B75qfA0z.mjs → Dytof5EW.mjs} +2 -2
  29. package/chunks/{eBESsR-G.mjs → H70Z56YY.mjs} +9 -3
  30. package/chunks/{CVKPpQdS.mjs → XwerN1TU.mjs} +2 -2
  31. package/chunks/{BXVB-H8_.mjs → c0Niqotr.mjs} +2 -2
  32. package/chunks/{C2zgFLYO.mjs → oVFbZ6yk.mjs} +30 -30
  33. package/chunks/{DLgFBI_X.mjs → z5FJgzdc.mjs} +4 -3
  34. package/constants/index.d.ts +1 -0
  35. package/editable-tree/index.mjs +1 -1
  36. package/form-cascader/index.mjs +1 -1
  37. package/form-checkbox/index.d.ts +2 -2
  38. package/form-checkbox/index.mjs +1 -1
  39. package/form-checkbox-group/index.mjs +1 -1
  40. package/form-date-picker/index.mjs +1 -1
  41. package/form-holder/index.mjs +1 -1
  42. package/form-image/index.mjs +1 -1
  43. package/form-input/index.mjs +1 -1
  44. package/form-input-cron-expression/index.mjs +1 -1
  45. package/form-input-email/index.mjs +1 -1
  46. package/form-input-id-card/index.mjs +1 -1
  47. package/form-input-number/index.mjs +1 -1
  48. package/form-input-phone-number/index.mjs +1 -1
  49. package/form-input-tag/index.mjs +1 -1
  50. package/form-input-time/index.mjs +1 -1
  51. package/form-item-x/index.mjs +1 -1
  52. package/form-item-x/style.css +1 -1
  53. package/form-radio-group/index.mjs +1 -1
  54. package/form-rate/index.mjs +1 -1
  55. package/form-select/index.mjs +1 -1
  56. package/form-slider/index.mjs +1 -1
  57. package/form-switch/index.mjs +1 -1
  58. package/form-table/index.mjs +1 -1
  59. package/form-table-plus/index.mjs +1 -1
  60. package/form-text/index.mjs +1 -1
  61. package/form-textarea/index.mjs +1 -1
  62. package/form-time-select/index.mjs +1 -1
  63. package/index.css +1 -1
  64. package/index.mjs +33 -33
  65. package/package.json +1 -1
  66. package/pageable-table/index.mjs +1 -1
  67. package/sub-table/index.mjs +1 -1
  68. package/sub-table-plus/index.mjs +1 -1
  69. package/table-view/index.mjs +5 -5
  70. package/toolbar/index.mjs +1 -1
  71. package/toolbar-button/index.mjs +1 -1
  72. package/toolbar-button/style.css +1 -0
  73. package/vue-cron/index.mjs +1 -1
  74. package/web-types.json +1 -1
  75. package/x-input-tag/index.mjs +1 -1
  76. package/chunks/CjRZ71IY2.mjs +0 -512
@@ -2,11 +2,11 @@ import { f as e } from "./DcTVYqeJ.mjs";
2
2
  import { hasAuthority as t } from "../api/index.mjs";
3
3
  import { toolbarContextKey as n } from "../constants/index.mjs";
4
4
  import { isArray as r, isFunction as i } from "@web-utils/core";
5
- import { computed as a, createVNode as o, defineComponent as s, getCurrentInstance as c, inject as l, mergeProps as u, ref as d } from "vue";
6
- import { ElMessage as f, ElMessageBox as p } from "element-plus";
7
- import { ElButton as m } from "element-plus/es";
5
+ import { computed as a, createVNode as o, getCurrentInstance as s, inject as c, mergeProps as l, ref as u } from "vue";
6
+ import { ElMessage as d, ElMessageBox as f } from "element-plus";
7
+ import { ElButton as p } from "element-plus/es";
8
8
  //#region src/components/toolbar/button.ts
9
- var h = {
9
+ var m = {
10
10
  size: {
11
11
  type: String,
12
12
  default: "default"
@@ -91,34 +91,49 @@ var h = {
91
91
  title: String,
92
92
  cancelButtonText: String,
93
93
  confirmButtonText: String
94
- }, g = {
94
+ }, h = {
95
95
  icon: !0,
96
96
  type: !0,
97
97
  text: !0,
98
98
  title: !0,
99
99
  disabled: !0,
100
- loading: !0
101
- }, _ = (e) => g[e] !== !0, v = /* @__PURE__ */ s({
100
+ loading: !0,
101
+ label: !0,
102
+ loadable: !0,
103
+ footer: !0,
104
+ primary: !0,
105
+ warning: !0,
106
+ privilege: !0,
107
+ condition: !0,
108
+ conditionTips: !0,
109
+ confirm: !0,
110
+ confirmTips: !0,
111
+ beforeExecute: !0,
112
+ afterExecute: !0,
113
+ route: !0,
114
+ cancelButtonText: !0,
115
+ confirmButtonText: !0
116
+ }, g = (e) => h[e] !== !0, _ = {
102
117
  name: "ToolbarButton",
103
118
  inheritAttrs: !1,
104
- props: { ...h },
105
- setup(s, { attrs: h, slots: g }) {
106
- let v = c(), y = l(n, null), b = d(!1), x = a(() => s.privilege ? t(s.privilege) : !0), S = async (e) => {
119
+ props: { ...m },
120
+ setup(m, { attrs: h, slots: _ }) {
121
+ let v = s(), y = c(n, null), b = u(!1), x = a(() => m.privilege ? t(m.privilege) : !0), S = async (e) => {
107
122
  try {
108
- if (i(s.beforeExecute) && await s.beforeExecute() === !1) return;
109
- if (s.conditionTips) {
123
+ if (i(m.beforeExecute) && await m.beforeExecute() === !1) return;
124
+ if (m.conditionTips) {
110
125
  let e;
111
- if (e = r(s.condition) ? s.condition.length <= 0 : i(s.condition) ? !s.condition() : !s.condition, e) {
112
- f.warning(s.conditionTips);
126
+ if (e = r(m.condition) ? m.condition.length <= 0 : i(m.condition) ? !m.condition() : !m.condition, e) {
127
+ d.warning(m.conditionTips);
113
128
  return;
114
129
  }
115
130
  }
116
- if (s.confirm || s.confirmTips) try {
117
- await p.confirm(s.confirmTips || "你确定要删除该记录吗?", "系统提示", {
131
+ if (m.confirm || m.confirmTips) try {
132
+ await f.confirm(m.confirmTips || "你确定要删除该记录吗?", "系统提示", {
118
133
  type: "warning",
119
134
  distinguishCancelAndClose: !0,
120
- cancelButtonText: s.cancelButtonText,
121
- confirmButtonText: s.confirmButtonText
135
+ cancelButtonText: m.cancelButtonText,
136
+ confirmButtonText: m.confirmButtonText
122
137
  });
123
138
  } catch (e) {
124
139
  if (e === "cancel") {
@@ -132,35 +147,35 @@ var h = {
132
147
  }
133
148
  b.value = !0;
134
149
  let n;
135
- if (s.route) {
150
+ if (m.route) {
136
151
  var t;
137
- await ((t = v.proxy.$router) == null ? void 0 : t.push(s.route));
152
+ await ((t = v.proxy.$router) == null ? void 0 : t.push(m.route));
138
153
  } else {
139
154
  let { onClick: t } = h;
140
155
  if (i(t)) try {
141
156
  n = await t(e);
142
157
  } catch {}
143
158
  }
144
- b.value = !1, i(s.afterExecute) && await s.afterExecute(n);
159
+ b.value = !1, i(m.afterExecute) && await m.afterExecute(n);
145
160
  } catch {}
146
- }, C = a(() => s.text ? !0 : s.type === "text"), w = a(() => {
147
- if (!C.value) return s.primary ? "primary" : s.warning ? "warning" : s.type;
148
- }), T = e(s, _);
149
- return () => x.value ? o(m, u(T.value, {
150
- title: s.footer || y != null && y.footer ? null : s.title,
151
- disabled: s.disabled || b.value,
152
- loading: s.loadable ? b.value : !1,
161
+ }, C = a(() => m.text ? !0 : m.type === "text"), w = a(() => {
162
+ if (!C.value) return m.primary ? "primary" : m.warning ? "warning" : m.type;
163
+ }), T = e(m, g);
164
+ return () => x.value ? o(p, l(T.value, {
165
+ title: m.footer || y != null && y.footer ? null : m.title,
166
+ disabled: m.disabled || b.value,
167
+ loading: m.loadable ? b.value : !1,
153
168
  type: w.value,
154
169
  text: C.value,
155
170
  class: h.class,
156
171
  style: h.style,
157
172
  onClick: S
158
173
  }), {
159
- default: !s.circle && (s.label || g.default) ? () => g.default ? g.default() : s.label : null,
160
- loading: g.loading,
161
- icon: g.icon ? g.icon : s.icon ? () => o("i", { class: s.icon }, null) : null
174
+ default: !m.circle && (m.label || _.default) ? () => _.default ? _.default() : m.label : null,
175
+ loading: _.loading,
176
+ icon: _.icon ? _.icon : m.icon ? () => o("i", { class: m.icon }, null) : null
162
177
  }) : null;
163
178
  }
164
- });
179
+ };
165
180
  //#endregion
166
- export { v as t };
181
+ export { _ as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./D3mFJzGr.mjs";
2
- import { n, t as r } from "./KuAMIZnG.mjs";
1
+ import { i as e, n as t } from "./BHbMJZPp.mjs";
2
+ import { n, t as r } from "./BNXbI4OG.mjs";
3
3
  import i from "../x-input-tag/index.mjs";
4
4
  import { createVNode as a, mergeProps as o } from "vue";
5
5
  //#region src/components/form/props/input-tag.ts
@@ -1,8 +1,8 @@
1
1
  import { i as e } from "./DcTVYqeJ.mjs";
2
- import { i as t, n } from "./D3mFJzGr.mjs";
3
- import { n as r, t as i } from "./KuAMIZnG.mjs";
4
- import { r as a } from "./v-O82KSn.mjs";
5
- import { n as o, t as s } from "./CjRZ71IY2.mjs";
2
+ import { i as t, n } from "./BHbMJZPp.mjs";
3
+ import { n as r, t as i } from "./BNXbI4OG.mjs";
4
+ import { r as a } from "./DwkOWXIR.mjs";
5
+ import { n as o, t as s } from "./D9IFsT272.mjs";
6
6
  import { isArray as c, isString as l, trace as u, warning as d } from "@web-utils/core";
7
7
  import { computed as f, createVNode as p, getCurrentInstance as m, mergeProps as h, useModel as g, useTemplateRef as _ } from "vue";
8
8
  import { useEventBus as v } from "@web-utils/vue/hooks/useEventBus";
@@ -1,5 +1,5 @@
1
- import { n as e } from "./D3mFJzGr.mjs";
2
- import { n as t, t as n } from "./v-O82KSn.mjs";
1
+ import { n as e } from "./BHbMJZPp.mjs";
2
+ import { n as t, t as n } from "./DwkOWXIR.mjs";
3
3
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
4
  //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
5
5
  function s(e) {
@@ -1,25 +1,23 @@
1
- import e from "../confirmable/index.mjs";
2
- import t from "../confirm-button/index.mjs";
3
- import { t as n } from "./DOZRzqlo.mjs";
4
- import { t as r } from "./Dt3lfDnL.mjs";
5
- import { t as i } from "./CkOD-_VV.mjs";
6
- import { n as a } from "./D3mFJzGr.mjs";
7
- import { t as o } from "./D2MB3CnR.mjs";
8
- import { t as s } from "./v-O82KSn.mjs";
9
- import { t as c } from "./CzHaJsnD.mjs";
10
- import { t as l } from "./B75qfA0z.mjs";
11
- import { t as u } from "./DLgFBI_X.mjs";
12
- import { t as d } from "./DkXlFWjs.mjs";
13
- import { t as f } from "./BshE3RnA.mjs";
14
- import { t as p } from "./DhVmHzB7.mjs";
15
- import m from "../table-column-def/index.mjs";
16
- import { t as h } from "./C6hLXCPk.mjs";
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, 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";
1
+ import { t as e } from "./DOZRzqlo.mjs";
2
+ import { t } from "./7GmKqdbC.mjs";
3
+ import { t as n } from "./CkOD-_VV.mjs";
4
+ import { n as r } from "./BHbMJZPp.mjs";
5
+ import { t as i } from "./CgN7m-1v.mjs";
6
+ import { t as a } from "./DwkOWXIR.mjs";
7
+ import { t as o } from "./BV-XUugQ.mjs";
8
+ import { t as s } from "./Dytof5EW.mjs";
9
+ import { t as c } from "./z5FJgzdc.mjs";
10
+ import { t as l } from "./B6yWUT6z.mjs";
11
+ import { t as u } from "./BjGlxyi6.mjs";
12
+ import { t as d } from "./ByTyNsWf.mjs";
13
+ import f from "../table-column-def/index.mjs";
14
+ import { t as p } from "./DFFNxlqD.mjs";
15
+ import { findTreeChildren as m, isFunction as h } from "@web-utils/core";
16
+ 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, openBlock as T, renderList as E, renderSlot as D, resolveComponent as O, toDisplayString as k, withCtx as A, withModifiers as j } from "vue";
17
+ import { formContextKey as M, formItemContextKey as N } from "element-plus";
18
+ import { cloneDeep as P } from "@web-utils/integrations/lodash";
21
19
  //#region src/components/table/sub-table.ts
22
- var L = {
20
+ var F = {
23
21
  modelValue: Array,
24
22
  columns: Array,
25
23
  allowEmpty: Boolean,
@@ -53,23 +51,23 @@ var L = {
53
51
  selectionWidth: String,
54
52
  fetchApi: Function,
55
53
  delApi: Function
56
- }, R = {
54
+ }, I = {
57
55
  name: "SubTable",
58
56
  emits: {
59
- ...a,
57
+ ...r,
60
58
  "add-row": null
61
59
  },
62
60
  inject: {
63
61
  elForm: {
64
- from: P,
62
+ from: M,
65
63
  default: ""
66
64
  },
67
65
  elFormItem: {
68
- from: F,
66
+ from: N,
69
67
  default: ""
70
68
  }
71
69
  },
72
- props: { ...L },
70
+ props: { ...F },
73
71
  data() {
74
72
  return {
75
73
  rows: [],
@@ -111,7 +109,7 @@ var L = {
111
109
  },
112
110
  methods: {
113
111
  getCellType(e, t) {
114
- return _(t.getType) ? t.getType(e, t) : t.type;
112
+ return h(t.getType) ? t.getType(e, t) : t.type;
115
113
  },
116
114
  getInputAttr(e, t, n) {
117
115
  var r;
@@ -136,7 +134,7 @@ var L = {
136
134
  } catch {}
137
135
  },
138
136
  add(e, t) {
139
- let n = I(this.rowProps);
137
+ let n = P(this.rowProps);
140
138
  this.rows.splice(t + 1, 0, n);
141
139
  },
142
140
  addRow() {
@@ -167,37 +165,37 @@ var L = {
167
165
  if (r) return r.name;
168
166
  }
169
167
  if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
170
- let [r] = g(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
168
+ let [r] = m(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
171
169
  if (r) return r[n.attrs.valueKey || "label"];
172
170
  }
173
171
  return e[t.property];
174
172
  }
175
173
  }
176
- }, z = {
174
+ }, L = {
177
175
  key: 0,
178
176
  class: "table-header"
179
- }, B = {
177
+ }, R = {
180
178
  key: 0,
181
179
  style: { color: "#f56c6c" }
182
- }, V = ["onClick"];
183
- function H(i, a, g, _, P, F) {
184
- let I = r, L = t, R = 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;
185
- return D(), y(ee, E({
180
+ }, z = ["onClick"];
181
+ function B(n, r, m, h, M, N) {
182
+ let P = t, F = a, I = l, B = O("FormInputUser"), V = O("FormInputDepartment"), H = u, U = s, W = i, G = o, K = c, q = p, J = e, Y = f, X = d;
183
+ return T(), _(X, w({
186
184
  ref: "table",
187
185
  class: "sub-table",
188
186
  "auto-height": "",
189
- data: P.rows,
190
- api: i.fetchApi,
191
- "show-summary": i.showSummary,
192
- "selection-width": i.selectionWidth
193
- }, i.$attrs, {
187
+ data: M.rows,
188
+ api: n.fetchApi,
189
+ "show-summary": n.showSummary,
190
+ "selection-width": n.selectionWidth
191
+ }, n.$attrs, {
194
192
  "hide-on-single-page": "",
195
- selection: F.enabled,
196
- "row-db-click": i.rowDbClick,
197
- onSelectionChange: F.onSelectionChange
198
- }), C({
199
- default: M(() => [
200
- k(i.$slots, "columns", { columns: i.columns }, () => [(D(!0), x(v, null, O(F.filteredColumns, (e) => (D(), y(Q, {
193
+ selection: N.enabled,
194
+ "row-db-click": n.rowDbClick,
195
+ onSelectionChange: N.onSelectionChange
196
+ }), x({
197
+ default: A(() => [
198
+ D(n.$slots, "columns", { columns: n.columns }, () => [(T(!0), y(g, null, E(N.filteredColumns, (e) => (T(), _(Y, {
201
199
  key: e.prop,
202
200
  label: e.label,
203
201
  width: e.width,
@@ -206,88 +204,88 @@ function H(i, a, g, _, P, F) {
206
204
  align: e.align,
207
205
  prop: e.prop,
208
206
  options: e.options,
209
- "show-overflow-tooltip": !F.available && e.showOverflowTooltip
207
+ "show-overflow-tooltip": !N.available && e.showOverflowTooltip
210
208
  }, {
211
- header: M(() => [!i.disabled && e.required ? (D(), x("span", B, "*")) : b("v-if", !0), w(" " + j(e.label), 1)]),
212
- default: M(({ row: t, column: n, $index: r }) => [
213
- b("tag 插槽"),
214
- k(i.$slots, "tag", {
209
+ header: A(() => [!n.disabled && e.required ? (T(), y("span", R, "*")) : v("v-if", !0), S(" " + k(e.label), 1)]),
210
+ default: A(({ row: t, column: r, $index: i }) => [
211
+ v("tag 插槽"),
212
+ D(n.$slots, "tag", {
215
213
  row: t,
216
- column: n,
217
- index: r
214
+ column: r,
215
+ index: i
218
216
  }),
219
- b("列默认插槽,名字和 prop 保持一致"),
220
- k(i.$slots, e.prop, {
217
+ v("列默认插槽,名字和 prop 保持一致"),
218
+ D(n.$slots, e.prop, {
221
219
  row: t,
222
- column: n,
223
- index: r
220
+ column: r,
221
+ index: i
224
222
  }, () => {
225
- var i;
226
- return [F.available ? (D(), x(v, { key: 0 }, [F.getCellType(t, e) === "input" ? (D(), y(R, E({
223
+ var n;
224
+ return [N.available ? (T(), y(g, { key: 0 }, [N.getCellType(t, e) === "input" ? (T(), _(F, w({
227
225
  key: 0,
228
226
  ref_for: !0
229
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : F.getCellType(t, e) === "inputPhoneNumber" ? (D(), y(H, E({
227
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : N.getCellType(t, e) === "inputPhoneNumber" ? (T(), _(I, w({
230
228
  key: 1,
231
229
  ref_for: !0
232
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : F.getCellType(t, e) === "user" ? (D(), x(v, { key: 2 }, [e.single ? (D(), y(U, E({
230
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : N.getCellType(t, e) === "user" ? (T(), y(g, { key: 2 }, [e.single ? (T(), _(B, w({
233
231
  key: 0,
234
232
  ref_for: !0
235
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : (D(), y(U, E({
233
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : (T(), _(B, w({
236
234
  key: 1,
237
235
  ref_for: !0
238
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"]))], 64)) : F.getCellType(t, e) === "department" ? (D(), x(v, { key: 3 }, [e.single ? (D(), y(W, E({
236
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"]))], 64)) : N.getCellType(t, e) === "department" ? (T(), y(g, { key: 3 }, [e.single ? (T(), _(V, w({
239
237
  key: 0,
240
238
  ref_for: !0
241
- }, F.getInputAttr(t, e, r), {
242
- name: t[n.property],
243
- "onUpdate:name": (e) => t[n.property] = e,
244
- onInput: (n) => F.onInput(t, n, e)
239
+ }, N.getInputAttr(t, e, i), {
240
+ name: t[r.property],
241
+ "onUpdate:name": (e) => t[r.property] = e,
242
+ onInput: (n) => N.onInput(t, n, e)
245
243
  }), null, 16, [
246
244
  "name",
247
245
  "onUpdate:name",
248
246
  "onInput"
249
- ])) : (D(), y(W, E({
247
+ ])) : (T(), _(V, w({
250
248
  key: 1,
251
249
  ref_for: !0
252
- }, F.getInputAttr(t, e, r), {
253
- disabled: F.isInputDisabled(t, e),
254
- onInput: (n) => F.onInput(t, n, e)
255
- }), null, 16, ["disabled", "onInput"]))], 64)) : F.getCellType(t, e) === "select" ? (D(), y(G, E({
250
+ }, N.getInputAttr(t, e, i), {
251
+ disabled: N.isInputDisabled(t, e),
252
+ onInput: (n) => N.onInput(t, n, e)
253
+ }), null, 16, ["disabled", "onInput"]))], 64)) : N.getCellType(t, e) === "select" ? (T(), _(H, w({
256
254
  key: 4,
257
255
  ref_for: !0
258
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : F.getCellType(t, e) === "datePicker" ? (D(), y(K, E({
256
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : N.getCellType(t, e) === "datePicker" ? (T(), _(U, w({
259
257
  key: 5,
260
258
  ref_for: !0
261
- }, F.getInputAttr(t, e, r), {
259
+ }, N.getInputAttr(t, e, i), {
262
260
  start: t[e.start],
263
261
  "onUpdate:start": (n) => t[e.start] = n,
264
262
  end: t[e.end],
265
263
  "onUpdate:end": (n) => t[e.end] = n,
266
- onInput: (n) => F.onInput(t, n, e)
264
+ onInput: (n) => N.onInput(t, n, e)
267
265
  }), null, 16, [
268
266
  "start",
269
267
  "onUpdate:start",
270
268
  "end",
271
269
  "onUpdate:end",
272
270
  "onInput"
273
- ])) : F.getCellType(t, e) === "cascader" ? (D(), y(q, E({
271
+ ])) : N.getCellType(t, e) === "cascader" ? (T(), _(W, w({
274
272
  key: 6,
275
273
  ref_for: !0
276
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : F.getCellType(t, e) === "checkbox" ? (D(), y(J, E({
274
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : N.getCellType(t, e) === "checkbox" ? (T(), _(G, w({
277
275
  key: 7,
278
276
  ref_for: !0
279
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : F.getCellType(t, e) === "number" ? (D(), y(Y, E({
277
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : N.getCellType(t, e) === "number" ? (T(), _(K, w({
280
278
  key: 8,
281
279
  ref_for: !0
282
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : F.getCellType(t, e) === "textarea" ? (D(), y(X, E({
280
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : N.getCellType(t, e) === "textarea" ? (T(), _(q, w({
283
281
  key: 9,
284
282
  ref_for: !0
285
- }, F.getInputAttr(t, e, r), { onInput: (n) => F.onInput(t, n, e) }), null, 16, ["onInput"])) : (D(), x(v, { key: 10 }, [w(j(F.getVal(t, n, e)), 1)], 64))], 64)) : e.dicType || (i = e.options) != null && i.length ? (D(), y(Z, {
283
+ }, N.getInputAttr(t, e, i), { onInput: (n) => N.onInput(t, n, e) }), null, 16, ["onInput"])) : (T(), y(g, { key: 10 }, [S(k(N.getVal(t, r, e)), 1)], 64))], 64)) : e.dicType || (n = e.options) != null && n.length ? (T(), _(J, {
286
284
  key: 1,
287
285
  "dict-type": e.dicType,
288
286
  "id-as-value": e.idAsValue,
289
287
  "label-as-value": e.labelAsValue,
290
- column: n,
288
+ column: r,
291
289
  row: t,
292
290
  options: e.options
293
291
  }, null, 8, [
@@ -297,7 +295,7 @@ function H(i, a, g, _, P, F) {
297
295
  "column",
298
296
  "row",
299
297
  "options"
300
- ])) : (D(), x(v, { key: 2 }, [w(j(F.getVal(t, n, e)), 1)], 64))];
298
+ ])) : (T(), y(g, { key: 2 }, [S(k(N.getVal(t, r, e)), 1)], 64))];
301
299
  })
302
300
  ]),
303
301
  _: 2
@@ -311,13 +309,13 @@ function H(i, a, g, _, P, F) {
311
309
  "options",
312
310
  "show-overflow-tooltip"
313
311
  ]))), 128))]),
314
- b(" 自定义操作列 "),
315
- k(i.$slots, "handle", {
316
- add: F.add,
317
- remove: F.remove
312
+ v(" 自定义操作列 "),
313
+ D(n.$slots, "handle", {
314
+ add: N.add,
315
+ remove: N.remove
318
316
  }),
319
- b(" 操作列 "),
320
- (!i.modelValue || i.modelValue.length < i.limit) && !i.disabled && F.enabled && i.editable && i.handleColumn ? (D(), y(Q, {
317
+ v(" 操作列 "),
318
+ (!n.modelValue || n.modelValue.length < n.limit) && !n.disabled && N.enabled && n.editable && n.handleColumn ? (T(), _(Y, {
321
319
  key: 0,
322
320
  label: "操作",
323
321
  fixed: "right",
@@ -325,11 +323,11 @@ function H(i, a, g, _, P, F) {
325
323
  align: "center",
326
324
  prop: "menu"
327
325
  }, {
328
- header: M(({ column: e, $index: t }) => [k(i.$slots, "handle-column-header", {
326
+ header: A(({ column: e, $index: t }) => [D(n.$slots, "handle-column-header", {
329
327
  column: e,
330
328
  index: t
331
- }, () => [w(j(e.label), 1)])]),
332
- default: M(({ row: e, $index: t }) => [i.showHandleColumnAddButton && i.modelValue.length < i.maxLimit ? (D(), x("i", {
329
+ }, () => [S(k(e.label), 1)])]),
330
+ default: A(({ row: e, $index: t }) => [n.showHandleColumnAddButton && n.modelValue.length < n.maxLimit ? (T(), y("i", {
333
331
  key: 0,
334
332
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
335
333
  style: {
@@ -338,8 +336,8 @@ function H(i, a, g, _, P, F) {
338
336
  cursor: "pointer"
339
337
  },
340
338
  title: "添加",
341
- onClick: N((n) => F.add(e, t), ["stop"])
342
- }, null, 8, V)) : b("v-if", !0), i.modelValue && i.modelValue.length > 1 || i.allowEmpty ? (D(), y($, {
339
+ onClick: j((n) => N.add(e, t), ["stop"])
340
+ }, null, 8, z)) : v("v-if", !0), n.modelValue && n.modelValue.length > 1 || n.allowEmpty ? (T(), _(P, {
343
341
  key: 1,
344
342
  class: "el-icon-error sub-table-handle-button table-button-remove",
345
343
  style: {
@@ -347,58 +345,61 @@ function H(i, a, g, _, P, F) {
347
345
  cursor: "pointer"
348
346
  },
349
347
  title: "删除",
348
+ confirm: "",
349
+ text: "",
350
350
  message: "您确定要删除该行吗?",
351
- onClick: N((n) => F.remove(e, t), ["stop"])
352
- }, null, 8, ["onClick"])) : b("v-if", !0)]),
351
+ onClick: j((n) => N.remove(e, t), ["stop"])
352
+ }, null, 8, ["onClick"])) : v("v-if", !0)]),
353
353
  _: 3
354
- })) : b("v-if", !0)
354
+ })) : v("v-if", !0)
355
355
  ]),
356
356
  _: 2
357
- }, [i.editable ? void 0 : {
357
+ }, [n.editable ? void 0 : {
358
358
  name: "toolbar",
359
- fn: M(() => [F.enabled || i.fetchApi ? (D(), x("div", z, [k(i.$slots, "toolbar", {
360
- addRow: F.addRow,
361
- delRow: F.delRow,
362
- refresh: F.refresh
363
- }, () => [F.enabled ? (D(), x(v, { key: 0 }, [T(I, {
359
+ fn: A(() => [N.enabled || n.fetchApi ? (T(), y("div", L, [D(n.$slots, "toolbar", {
360
+ addRow: N.addRow,
361
+ delRow: N.delRow,
362
+ refresh: N.refresh
363
+ }, () => [N.enabled ? (T(), y(g, { key: 0 }, [C(P, {
364
364
  class: "table-header-button add",
365
365
  icon: "el-icon-circle-plus",
366
366
  type: "text",
367
- onClick: F.addRow
367
+ onClick: N.addRow
368
368
  }, {
369
- default: M(() => [...a[1] || (a[1] = [w(" 添加 ", -1)])]),
369
+ default: A(() => [...r[1] || (r[1] = [S(" 添加 ", -1)])]),
370
370
  _: 1
371
- }, 8, ["onClick"]), T(L, {
371
+ }, 8, ["onClick"]), C(P, {
372
372
  class: "table-header-button remove",
373
+ confirm: "",
373
374
  message: "您确定要删除选中的记录吗?",
374
375
  icon: "el-icon-error",
375
- type: "text",
376
- onClick: F.delRow
376
+ text: "",
377
+ onClick: N.delRow
377
378
  }, {
378
- default: M(() => [...a[2] || (a[2] = [w(" 删除 ", -1)])]),
379
+ default: A(() => [...r[2] || (r[2] = [S(" 删除 ", -1)])]),
379
380
  _: 1
380
- }, 8, ["onClick"])], 64)) : b("v-if", !0), i.fetchApi ? (D(), y(I, {
381
+ }, 8, ["onClick"])], 64)) : v("v-if", !0), n.fetchApi ? (T(), _(P, {
381
382
  key: 1,
382
383
  class: "table-header-button refresh",
383
384
  icon: "el-icon-refresh-left",
384
- type: "text",
385
+ text: "",
385
386
  disabled: !1,
386
- onClick: F.refresh
387
+ onClick: N.refresh
387
388
  }, {
388
- default: M(() => [...a[3] || (a[3] = [w(" 刷新 ", -1)])]),
389
+ default: A(() => [...r[3] || (r[3] = [S(" 刷新 ", -1)])]),
389
390
  _: 1
390
- }, 8, ["onClick"])) : b("v-if", !0)])])) : b("v-if", !0)]),
391
+ }, 8, ["onClick"])) : v("v-if", !0)])])) : v("v-if", !0)]),
391
392
  key: "0"
392
- }, i.allowEmpty && !i.disabled && i.showEmptyAddButton ? {
393
+ }, n.allowEmpty && !n.disabled && n.showEmptyAddButton ? {
393
394
  name: "empty",
394
- fn: M(() => [S("i", {
395
+ fn: A(() => [b("i", {
395
396
  class: "el-icon-circle-plus sub-table-handle-button table-button-add",
396
397
  style: {
397
398
  "font-size": "20px",
398
399
  cursor: "pointer"
399
400
  },
400
401
  title: "添加",
401
- onClick: a[0] || (a[0] = N((e) => F.add(null, 0), ["stop"]))
402
+ onClick: r[0] || (r[0] = j((e) => N.add(null, 0), ["stop"]))
402
403
  })]),
403
404
  key: "1"
404
405
  } : void 0]), 1040, [
@@ -411,6 +412,6 @@ function H(i, a, g, _, P, F) {
411
412
  "onSelectionChange"
412
413
  ]);
413
414
  }
414
- var U = /* @__PURE__ */ i(R, [["render", H]]);
415
+ var V = /* @__PURE__ */ n(I, [["render", B]]);
415
416
  //#endregion
416
- export { L as n, U as t };
417
+ export { F as n, V as t };