@aplus-frontend/ui 0.5.26 → 0.5.28

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 (63) hide show
  1. package/es/src/ap-grid/editable/form-item.vue.mjs +20 -18
  2. package/es/src/ap-grid/editable/index.vue.mjs +22 -20
  3. package/es/src/ap-grid/index.vue.mjs +32 -30
  4. package/es/src/ap-grid/interface.d.ts +1 -1
  5. package/es/src/ap-table/utils.mjs +17 -17
  6. package/es/src/business/ap-ladder/ApLadder.d.ts +83 -0
  7. package/es/src/business/ap-ladder/ApLadder.mjs +42 -0
  8. package/es/src/business/ap-ladder/components/RenderValue.d.ts +34 -0
  9. package/es/src/business/ap-ladder/components/RenderValue.mjs +79 -0
  10. package/es/src/business/ap-ladder/components/SimpleMode.d.ts +37 -0
  11. package/es/src/business/ap-ladder/components/SimpleMode.mjs +42 -0
  12. package/es/src/business/ap-ladder/components/ValueGroupMode.d.ts +28 -0
  13. package/es/src/business/ap-ladder/components/ValueGroupMode.mjs +49 -0
  14. package/es/src/business/ap-ladder/constans.d.ts +50 -0
  15. package/es/src/business/ap-ladder/constans.mjs +51 -0
  16. package/es/src/business/ap-ladder/index.d.ts +133 -15
  17. package/es/src/business/ap-ladder/index.mjs +5 -6
  18. package/es/src/business/ap-ladder/utils.d.ts +4 -0
  19. package/es/src/business/ap-ladder/utils.mjs +21 -18
  20. package/es/src/business/hooks/usePageListApGrid.mjs +11 -11
  21. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  22. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  23. package/lib/src/ap-grid/index.vue.js +1 -1
  24. package/lib/src/ap-grid/interface.d.ts +1 -1
  25. package/lib/src/ap-table/utils.js +1 -1
  26. package/lib/src/business/ap-ladder/ApLadder.d.ts +83 -0
  27. package/lib/src/business/ap-ladder/ApLadder.js +1 -0
  28. package/lib/src/business/ap-ladder/components/RenderValue.d.ts +34 -0
  29. package/lib/src/business/ap-ladder/components/RenderValue.js +1 -0
  30. package/lib/src/business/ap-ladder/components/SimpleMode.d.ts +37 -0
  31. package/lib/src/business/ap-ladder/components/SimpleMode.js +1 -0
  32. package/lib/src/business/ap-ladder/components/ValueGroupMode.d.ts +28 -0
  33. package/lib/src/business/ap-ladder/components/ValueGroupMode.js +1 -0
  34. package/lib/src/business/ap-ladder/constans.d.ts +50 -0
  35. package/lib/src/business/ap-ladder/constans.js +1 -0
  36. package/lib/src/business/ap-ladder/index.d.ts +133 -15
  37. package/lib/src/business/ap-ladder/index.js +1 -1
  38. package/lib/src/business/ap-ladder/utils.d.ts +4 -0
  39. package/lib/src/business/ap-ladder/utils.js +1 -1
  40. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  41. package/package.json +2 -2
  42. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +0 -23
  43. package/es/src/business/ap-ladder/ApLadder.vue.mjs +0 -4
  44. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +0 -65
  45. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +0 -48
  46. package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +0 -4
  47. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +0 -57
  48. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +0 -46
  49. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +0 -4
  50. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +0 -89
  51. package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +0 -2
  52. package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +0 -3
  53. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +0 -23
  54. package/lib/src/business/ap-ladder/ApLadder.vue.js +0 -1
  55. package/lib/src/business/ap-ladder/ApLadder.vue2.js +0 -1
  56. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +0 -48
  57. package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +0 -1
  58. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +0 -1
  59. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +0 -46
  60. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +0 -1
  61. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +0 -1
  62. package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +0 -2
  63. package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +0 -3
@@ -1,5 +1,5 @@
1
- import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as f, watch as W, nextTick as G, createBlock as K, openBlock as U, mergeProps as g, withCtx as y, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
- import { ApForm as C } from "../../ap-form/index.mjs";
1
+ import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as s, watch as W, nextTick as G, createBlock as K, openBlock as U, mergeProps as g, withCtx as C, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
+ import { ApForm as y } from "../../ap-form/index.mjs";
3
3
  import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { isDef as w } from "../../utils/index.mjs";
@@ -9,7 +9,7 @@ import { useInjectForm as ae } from "../../ap-form/context.mjs";
9
9
  import { useNamespace as te } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
11
11
  import ne from "../index.vue.mjs";
12
- const ye = /* @__PURE__ */ P({
12
+ const Ce = /* @__PURE__ */ P({
13
13
  name: "EditableGrid",
14
14
  __name: "form-item",
15
15
  props: {
@@ -106,6 +106,8 @@ const ye = /* @__PURE__ */ P({
106
106
  default: void 0
107
107
  },
108
108
  loadingConfig: {},
109
+ headerCellConfig: {},
110
+ footerCellConfig: {},
109
111
  rowSelection: {
110
112
  type: Boolean,
111
113
  default: void 0
@@ -163,7 +165,7 @@ const ye = /* @__PURE__ */ P({
163
165
  const {
164
166
  internalInstance: a,
165
167
  model: F
166
- } = ae(), p = H(l.name), d = h(S(f(F), p.value) || []), N = C.useWatch(p);
168
+ } = ae(), p = H(l.name), d = h(S(s(F), p.value) || []), N = y.useWatch(p);
167
169
  W(() => N.value, async (e) => {
168
170
  var o;
169
171
  await G(), d.value = e, (o = l.onChange) == null || o.call(l, e);
@@ -173,19 +175,19 @@ const ye = /* @__PURE__ */ P({
173
175
  const c = h(), v = le("valueTypeMap"), D = oe(l, v);
174
176
  function L(e, o) {
175
177
  var u;
176
- const n = ((u = f(d)) == null ? void 0 : u.length) || 0;
178
+ const n = ((u = s(d)) == null ? void 0 : u.length) || 0;
177
179
  if (w(l.maxLength) && n >= l.maxLength)
178
180
  return;
179
181
  const t = {
180
182
  ...e || {}
181
183
  };
182
- a == null || a.setFieldValue(l.name, t, !0, (s, r) => {
183
- s[r] || (s[r] = [t]), I(o) ? s[r].push(t) : s[r].splice(o, 0, t);
184
+ a == null || a.setFieldValue(l.name, t, !0, (f, r) => {
185
+ f[r] || (f[r] = [t]), I(o) ? f[r].push(t) : f[r].splice(o, 0, t);
184
186
  });
185
187
  }
186
188
  function V(e, o = "suffix") {
187
- var s;
188
- const n = ((s = f(d)) == null ? void 0 : s.length) || 0, t = m(e) ? e : e.length;
189
+ var f;
190
+ const n = ((f = s(d)) == null ? void 0 : f.length) || 0, t = m(e) ? e : e.length;
189
191
  if (w(l.maxLength) && n + t > l.maxLength)
190
192
  return;
191
193
  const u = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
@@ -196,15 +198,15 @@ const ye = /* @__PURE__ */ P({
196
198
  function T(e) {
197
199
  const o = new Set(m(e) ? [e] : e);
198
200
  a == null || a.setFieldValue(l.name, void 0, !0, (n, t) => {
199
- n[t] = n[t].filter((u, s) => !o.has(s));
201
+ n[t] = n[t].filter((u, f) => !o.has(f));
200
202
  });
201
203
  }
202
204
  function _() {
203
- return f(d);
205
+ return s(d);
204
206
  }
205
207
  function E(e) {
206
208
  var o;
207
- return (o = f(d)) == null ? void 0 : o[e];
209
+ return (o = s(d)) == null ? void 0 : o[e];
208
210
  }
209
211
  function k(e, o, n = !0) {
210
212
  a == null || a.setFieldValue(l.name, void 0, !0, (t, u) => {
@@ -236,27 +238,27 @@ const ye = /* @__PURE__ */ P({
236
238
  scrollTo: z,
237
239
  setTableData: j,
238
240
  clear: O
239
- }), (e, o) => (U(), K(f(C).FormItem, g(e.formItem, {
241
+ }), (e, o) => (U(), K(s(y).FormItem, g(e.formItem, {
240
242
  name: e.name,
241
243
  label: e.label
242
244
  }), {
243
- default: y(() => [$(ne, g(f(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
245
+ default: C(() => [$(ne, g(s(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
244
246
  ref_key: "tableRef",
245
247
  ref: c,
246
- class: f(B)(),
247
- columns: f(D),
248
+ class: s(B)(),
249
+ columns: s(D),
248
250
  "data-source": d.value,
249
251
  "search-form": !1
250
252
  }), q({
251
253
  _: 2
252
254
  }, [J(R, (n, t) => ({
253
255
  name: t,
254
- fn: y((u) => [Q(e.$slots, t, X(Y(u || {})))])
256
+ fn: C((u) => [Q(e.$slots, t, X(Y(u || {})))])
255
257
  }))]), 1040, ["class", "columns", "data-source"])]),
256
258
  _: 3
257
259
  }, 16, ["name", "label"]));
258
260
  }
259
261
  });
260
262
  export {
261
- ye as default
263
+ Ce as default
262
264
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as U, useSlots as $, ref as w, watch as x, unref as u, createBlock as q, openBlock as J, withCtx as h, createVNode as v, mergeProps as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as M, guardReactiveProps as ee } from "vue";
2
- import { ApForm as y } from "../../ap-form/index.mjs";
3
- import { isEqual as ae, isArray as R, isUndefined as te, isNumber as g, cloneDeep as le, omit as oe } from "lodash-unified";
2
+ import { ApForm as g } from "../../ap-form/index.mjs";
3
+ import { isEqual as ae, isArray as R, isUndefined as te, isNumber as y, cloneDeep as le, omit as oe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
6
  import { isDef as b } from "../../utils/index.mjs";
7
7
  import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
8
8
  import "../index.vue2.mjs";
9
- import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useControllableValue as re } from "../../hooks/useControllableValue.mjs";
9
+ import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as se } from "../../hooks/useControllableValue.mjs";
11
11
  import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
12
12
  import ie from "../index.vue.mjs";
13
13
  const Re = /* @__PURE__ */ U({
@@ -107,6 +107,8 @@ const Re = /* @__PURE__ */ U({
107
107
  default: void 0
108
108
  },
109
109
  loadingConfig: {},
110
+ headerCellConfig: {},
111
+ footerCellConfig: {},
110
112
  rowSelection: {
111
113
  type: Boolean,
112
114
  default: void 0
@@ -157,10 +159,10 @@ const Re = /* @__PURE__ */ U({
157
159
  }) {
158
160
  const N = $(), t = B, {
159
161
  b: V
160
- } = se("editable-grid"), _ = S, C = w(), {
162
+ } = re("editable-grid"), _ = S, C = w(), {
161
163
  value: m,
162
164
  updateValue: L
163
- } = re(t, _), i = w(), E = ue("valueTypeMap"), c = y.useWatch(t.name, i);
165
+ } = se(t, _), i = w(), E = ue("valueTypeMap"), c = g.useWatch(t.name, i);
164
166
  x(() => c.value, (e) => {
165
167
  var a;
166
168
  L(e), (a = t.onChange) == null || a.call(t, e);
@@ -187,32 +189,32 @@ const Re = /* @__PURE__ */ U({
187
189
  return l == null ? void 0 : l[t.name];
188
190
  }
189
191
  function j(e, a) {
190
- var n, s, r;
192
+ var n, r, s;
191
193
  const l = ((n = u(m)) == null ? void 0 : n.length) || 0;
192
194
  if (b(t.maxLength) && l >= t.maxLength)
193
195
  return;
194
196
  const o = {
195
197
  ...e || {}
196
198
  };
197
- (r = (s = i.value) == null ? void 0 : s.setFieldValue) == null || r.call(s, t.name, o, !0, (d, f) => {
199
+ (s = (r = i.value) == null ? void 0 : r.setFieldValue) == null || s.call(r, t.name, o, !0, (d, f) => {
198
200
  d[f] || (d[f] = [o]), te(a) ? d[f].push(o) : d[f].splice(a, 0, o);
199
201
  });
200
202
  }
201
203
  function z(e, a = "suffix") {
202
- var s, r, d;
203
- const l = ((s = u(m)) == null ? void 0 : s.length) || 0, o = g(e) ? e : e.length;
204
+ var r, s, d;
205
+ const l = ((r = u(m)) == null ? void 0 : r.length) || 0, o = y(e) ? e : e.length;
204
206
  if (b(t.maxLength) && l + o > t.maxLength)
205
207
  return;
206
- const n = g(e) ? new Array(e).fill(0).map(() => ({})) : le(e);
207
- (d = (r = i.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, t.name, n, !0, (f, p) => {
208
+ const n = y(e) ? new Array(e).fill(0).map(() => ({})) : le(e);
209
+ (d = (s = i.value) == null ? void 0 : s.setFieldValue) == null || d.call(s, t.name, n, !0, (f, p) => {
208
210
  f[p] || (f[p] = [...n]), a === "suffix" ? f[p].push(...n) : f[p].unshift(...n);
209
211
  });
210
212
  }
211
213
  function I(e) {
212
214
  var l, o;
213
- const a = new Set(g(e) ? [e] : e);
214
- (o = (l = i.value) == null ? void 0 : l.setFieldValue) == null || o.call(l, t.name, void 0, !0, (n, s) => {
215
- n[s] = n[s].filter((r, d) => !a.has(d));
215
+ const a = new Set(y(e) ? [e] : e);
216
+ (o = (l = i.value) == null ? void 0 : l.setFieldValue) == null || o.call(l, t.name, void 0, !0, (n, r) => {
217
+ n[r] = n[r].filter((s, d) => !a.has(d));
216
218
  });
217
219
  }
218
220
  function O() {
@@ -228,9 +230,9 @@ const Re = /* @__PURE__ */ U({
228
230
  }
229
231
  function W(e, a, l = !0) {
230
232
  var o, n;
231
- (n = (o = i.value) == null ? void 0 : o.setFieldValue) == null || n.call(o, t.name, void 0, !0, (s, r) => {
232
- !s[r] || !s[r][e] || (s[r][e] = {
233
- ...l ? s[r][e] : {},
233
+ (n = (o = i.value) == null ? void 0 : o.setFieldValue) == null || n.call(o, t.name, void 0, !0, (r, s) => {
234
+ !r[s] || !r[s][e] || (r[s][e] = {
235
+ ...l ? r[s][e] : {},
234
236
  ...a
235
237
  });
236
238
  });
@@ -256,7 +258,7 @@ const Re = /* @__PURE__ */ U({
256
258
  scrollTo: G,
257
259
  clear: K,
258
260
  setTableData: P
259
- }), (e, a) => (J(), q(u(y), {
261
+ }), (e, a) => (J(), q(u(g), {
260
262
  ref_key: "formRef",
261
263
  ref: i,
262
264
  "initial-values": {
@@ -266,7 +268,7 @@ const Re = /* @__PURE__ */ U({
266
268
  height: "100%"
267
269
  }
268
270
  }, {
269
- default: h(() => [v(u(y).FormItem, {
271
+ default: h(() => [v(u(g).FormItem, {
270
272
  name: e.name,
271
273
  "no-style": ""
272
274
  }, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as Fe, useSlots as Be, getCurrentInstance as Ie, ref as k, computed as n, unref as o, watch as T, createElementBlock as F, openBlock as s, normalizeStyle as z, normalizeClass as f, createCommentVNode as C, createElementVNode as B, createVNode as U, mergeProps as g, createSlots as G, withCtx as v, Fragment as X, renderList as A, createBlock as c, resolveDynamicComponent as _, renderSlot as V, normalizeProps as J, guardReactiveProps as Pe } from "vue";
1
+ import { defineComponent as Fe, useSlots as Be, getCurrentInstance as Ie, ref as k, computed as n, unref as o, watch as T, createElementBlock as F, openBlock as s, normalizeStyle as z, normalizeClass as f, createCommentVNode as y, createElementVNode as B, createVNode as U, mergeProps as g, createSlots as G, withCtx as h, Fragment as X, renderList as A, createBlock as c, resolveDynamicComponent as _, renderSlot as V, normalizeProps as J, guardReactiveProps as Pe } from "vue";
2
2
  import { VxeTable as Ee, VxeColumn as Q } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import "vxe-pc-ui/es/style.css";
@@ -83,6 +83,8 @@ const ko = /* @__PURE__ */ Fe({
83
83
  cellConfig: {},
84
84
  loading: { type: Boolean, default: void 0 },
85
85
  loadingConfig: {},
86
+ headerCellConfig: {},
87
+ footerCellConfig: {},
86
88
  columns: {},
87
89
  rowSelection: { type: Boolean },
88
90
  card: { type: Boolean, default: !1 },
@@ -127,13 +129,13 @@ const ko = /* @__PURE__ */ Fe({
127
129
  return O++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
128
130
  (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !ze.includes(r.valueType)
129
131
  )) == null ? void 0 : l.sort((r, u) => {
130
- let y = Z(r.order);
131
- return Z(u.order) - y;
132
+ let C = Z(r.order);
133
+ return Z(u.order) - C;
132
134
  })) == null ? void 0 : t.map((r) => {
133
135
  const u = Ae(
134
136
  r,
135
137
  _e(r.fieldProps, {})
136
- ), y = {
138
+ ), C = {
137
139
  ...r,
138
140
  fieldProps: {
139
141
  label: r.title,
@@ -143,10 +145,10 @@ const ko = /* @__PURE__ */ Fe({
143
145
  },
144
146
  renderNode: void 0
145
147
  };
146
- return y.renderNode = Ve(
147
- y,
148
+ return C.renderNode = Ve(
149
+ C,
148
150
  o(le)
149
- ), y;
151
+ ), C;
150
152
  })) || [];
151
153
  }), ue = n(() => [
152
154
  d(),
@@ -164,7 +166,7 @@ const ko = /* @__PURE__ */ Fe({
164
166
  submit: j,
165
167
  reset: W,
166
168
  refresh: ce,
167
- data: h,
169
+ data: v,
168
170
  tableProps: M,
169
171
  setDataSource: pe,
170
172
  handleTableChange: me
@@ -192,7 +194,7 @@ const ko = /* @__PURE__ */ Fe({
192
194
  manual: a.manual,
193
195
  formatParams: a.beforeSearchSubmit,
194
196
  pagination: a.pagination
195
- }), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent: ve } = Oe(me);
197
+ }), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent: he } = Oe(me);
196
198
  We({
197
199
  columns: n(() => i.value),
198
200
  columnsBackup: n(() => D.value),
@@ -208,17 +210,17 @@ const ko = /* @__PURE__ */ Fe({
208
210
  color: m.value.colorPrimary
209
211
  }))
210
212
  });
211
- const he = n(
213
+ const ve = n(
212
214
  () => i.value.some(
213
215
  (e) => e.fixed === "left" || e.fixed === !0
214
216
  ) ? "left" : void 0
215
- ), ye = n(
216
- () => b(a.loading) ? h.loading : a.loading
217
217
  ), Ce = n(
218
- () => b(a.dataSource) ? h.records : a.dataSource
218
+ () => b(a.loading) ? v.loading : a.loading
219
+ ), ye = n(
220
+ () => b(a.dataSource) ? v.records : a.dataSource
219
221
  ), { selectedRows: x, rowSelection: R, ...be } = je({
220
222
  ...a.rowSelection === !0 ? {} : a.rowSelection,
221
- dataSource: Ce,
223
+ dataSource: ye,
222
224
  rowKey: a.rowKey
223
225
  }), E = () => {
224
226
  const e = p.value;
@@ -250,7 +252,7 @@ const ko = /* @__PURE__ */ Fe({
250
252
  }
251
253
  async function ke(e, l) {
252
254
  var r;
253
- const t = h.records[e];
255
+ const t = v.records[e];
254
256
  if (t)
255
257
  return (r = p.value) == null ? void 0 : r.scrollToRow(t, l);
256
258
  }
@@ -271,7 +273,7 @@ const ko = /* @__PURE__ */ Fe({
271
273
  },
272
274
  { immediate: !0, deep: !0 }
273
275
  ), T(
274
- () => o(h).loading,
276
+ () => o(v).loading,
275
277
  (e) => {
276
278
  var l;
277
279
  (l = a.onLoadingChange) == null || l.call(a, e);
@@ -305,7 +307,7 @@ const ko = /* @__PURE__ */ Fe({
305
307
  onSubmit: o(j),
306
308
  onReset: o(W)
307
309
  }), G({
308
- default: v(() => [
310
+ default: h(() => [
309
311
  (s(!0), F(X, null, A(K.value, (t) => (s(), c(_(t.renderNode.Comp), g({
310
312
  key: t.dataIndex,
311
313
  item: t,
@@ -319,13 +321,13 @@ const ko = /* @__PURE__ */ Fe({
319
321
  }, [
320
322
  L.searchFormExtra ? {
321
323
  name: "extra",
322
- fn: v(() => [
324
+ fn: h(() => [
323
325
  V(e.$slots, "searchFormExtra")
324
326
  ]),
325
327
  key: "0"
326
328
  } : void 0
327
329
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
328
- ], 6)) : C("", !0),
330
+ ], 6)) : y("", !0),
329
331
  B("div", {
330
332
  class: f([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
331
333
  style: z(e.tableWrapperStyle)
@@ -347,10 +349,10 @@ const ko = /* @__PURE__ */ Fe({
347
349
  ref_key: "tableRef",
348
350
  ref: p,
349
351
  key: o(ie),
350
- data: o(h).records,
352
+ data: o(v).records,
351
353
  "sort-config": { remote: $.value.length > 0 },
352
354
  "filter-config": { remote: H.value.length > 0 },
353
- loading: ye.value,
355
+ loading: Ce.value,
354
356
  "row-config": {
355
357
  isHover: !0,
356
358
  keyField: a.rowKey
@@ -373,19 +375,19 @@ const ko = /* @__PURE__ */ Fe({
373
375
  onCheckboxAll: E,
374
376
  onRadioChange: we
375
377
  }), G({
376
- empty: v(() => [
378
+ empty: h(() => [
377
379
  U(o(oe), {
378
380
  image: o(oe).PRESENTED_IMAGE_SIMPLE
379
381
  }, null, 8, ["image"])
380
382
  ]),
381
- default: v(() => [
382
- a.expandable ? (s(), c(o(Q), g({ key: 0 }, o($e)(e.expandable), { fixed: he.value }), {
383
- content: v((t) => [
383
+ default: h(() => [
384
+ a.expandable ? (s(), c(o(Q), g({ key: 0 }, o($e)(e.expandable), { fixed: ve.value }), {
385
+ content: h((t) => [
384
386
  (s(), c(_(a.expandable.renderContent(t))))
385
387
  ]),
386
388
  _: 1
387
- }, 16, ["fixed"])) : C("", !0),
388
- a.rowSelection ? (s(), c(o(Q), J(g({ key: 1 }, o(He)(o(R), i.value))), null, 16)) : C("", !0),
389
+ }, 16, ["fixed"])) : y("", !0),
390
+ a.rowSelection ? (s(), c(o(Q), J(g({ key: 1 }, o(He)(o(R), i.value))), null, 16)) : y("", !0),
389
391
  (s(!0), F(X, null, A(o(se), (t) => (s(), c(_(t), {
390
392
  key: t.props.colId
391
393
  }))), 128))
@@ -394,7 +396,7 @@ const ko = /* @__PURE__ */ Fe({
394
396
  }, [
395
397
  A(o(Ne)(L, ["searchFormExtra"]), (t, r) => ({
396
398
  name: r,
397
- fn: v((u) => [
399
+ fn: h((u) => [
398
400
  V(e.$slots, r, J(Pe(u || {})))
399
401
  ])
400
402
  }))
@@ -407,11 +409,11 @@ const ko = /* @__PURE__ */ Fe({
407
409
  key: 0,
408
410
  direction: "horizontal",
409
411
  "scroll-container": de.value
410
- }, null, 8, ["scroll-container"])) : C("", !0),
412
+ }, null, 8, ["scroll-container"])) : y("", !0),
411
413
  e.pagination !== !1 ? (s(), c(o(De), g({
412
414
  key: 1,
413
415
  class: o(d)("pagination")
414
- }, o(M).pagination, { onChange: o(ve) }), null, 16, ["class", "onChange"])) : C("", !0)
416
+ }, o(M).pagination, { onChange: o(he) }), null, 16, ["class", "onChange"])) : y("", !0)
415
417
  ], 2)
416
418
  ], 6)
417
419
  ], 6));
@@ -115,7 +115,7 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
115
115
  */
116
116
  range?: boolean;
117
117
  };
118
- export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig'> & {
118
+ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig' | 'headerCellConfig' | 'footerCellConfig'> & {
119
119
  /**
120
120
  * 列配置
121
121
  */
@@ -1,10 +1,10 @@
1
1
  import { isVNode as E, createVNode as l, mergeProps as b, cloneVNode as j, Fragment as O } from "vue";
2
- import { isObject as p, isArray as f, isUndefined as g, isFunction as T, omit as C, isBoolean as F, isString as N, isEqual as S, sortBy as d, isPlainObject as m, every as I, isEmpty as v } from "lodash-unified";
2
+ import { isObject as p, isArray as a, isUndefined as g, isFunction as T, omit as C, isBoolean as F, isString as N, isEqual as S, sortBy as d, isPlainObject as m, every as v, isEmpty as I } from "lodash-unified";
3
3
  import { apTableRenderItemMap as P, apTableFormItemMap as V } from "./constants.mjs";
4
- import { isType as _ } from "@fruits-chain/utils";
4
+ import { isType as x } from "@fruits-chain/utils";
5
5
  import "../ap-form/index.mjs";
6
- import { Tooltip as w } from "@aplus-frontend/antdv";
7
- import { QuestionCircleOutlined as x } from "@ant-design/icons-vue";
6
+ import { Tooltip as _ } from "@aplus-frontend/antdv";
7
+ import { QuestionCircleOutlined as w } from "@ant-design/icons-vue";
8
8
  import "./components/dynamic-component/index.vue.mjs";
9
9
  import y from "./components/dynamic-component/index.vue2.mjs";
10
10
  import A from "../ap-form/item/index.vue.mjs";
@@ -28,7 +28,7 @@ const q = (t, e, n) => {
28
28
  }
29
29
  case "multiple":
30
30
  case "multipleNumber":
31
- return f(e) ? e : [e];
31
+ return a(e) ? e : [e];
32
32
  case "boolean":
33
33
  return e;
34
34
  case "object":
@@ -38,7 +38,7 @@ const q = (t, e, n) => {
38
38
  }
39
39
  };
40
40
  function H(t) {
41
- return f(t) ? t.join(".") : t;
41
+ return a(t) ? t.join(".") : t;
42
42
  }
43
43
  function W(t) {
44
44
  const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
@@ -147,7 +147,7 @@ function it(t, e) {
147
147
  }), n;
148
148
  }
149
149
  function st(t) {
150
- if (!_("Object")(t))
150
+ if (!x("Object")(t))
151
151
  return t;
152
152
  try {
153
153
  return JSON.stringify(t);
@@ -165,19 +165,19 @@ function ut(t, e, n, o) {
165
165
  const u = N(t.title) ? l("span", {
166
166
  class: e,
167
167
  title: t.title
168
- }, [t.title]) : t.title, a = t.tooltip ? T(t.tooltip) ? t.tooltip(t) : l(O, null, [t.tooltip]) : null;
169
- return a ? l("span", {
168
+ }, [t.title]) : t.title, f = t.tooltip ? T(t.tooltip) ? t.tooltip(t) : l(O, null, [t.tooltip]) : null;
169
+ return f ? l("span", {
170
170
  style: {
171
171
  display: "inline-flex",
172
172
  alignItems: "center",
173
173
  maxWidth: "100%"
174
174
  }
175
- }, [u, l(w, {
176
- title: a,
175
+ }, [u, l(_, {
176
+ title: f,
177
177
  placement: "bottom",
178
- getPopupContainer: (c) => c.closest(".ant-table") || c.closest(".ant-modal") || document.body
178
+ getPopupContainer: (c) => c.closest(".ant-table") || c.closest(".ant-modal") || c.closest(".vxe-table") || document.body
179
179
  }, {
180
- default: () => [l(x, {
180
+ default: () => [l(w, {
181
181
  style: {
182
182
  padding: "4px",
183
183
  color: o,
@@ -196,22 +196,22 @@ function lt(t, e) {
196
196
  return o(t), n;
197
197
  }
198
198
  function ct(t, e) {
199
- if (f(t) && f(e))
199
+ if (a(t) && a(e))
200
200
  return S(d(t), d(e));
201
201
  if (m(t) && m(e)) {
202
- const n = (o) => I(o, (i) => i == null) || v(o);
202
+ const n = (o) => v(o, (i) => i == null) || I(o);
203
203
  if (n(t) && n(e))
204
204
  return !0;
205
205
  }
206
206
  }
207
- function ft(t) {
207
+ function at(t) {
208
208
  if (t !== !1)
209
209
  return t;
210
210
  }
211
211
  export {
212
212
  ot as apColumnToColumn,
213
213
  H as dataIndexToStr,
214
- ft as falseToUndefined,
214
+ at as falseToUndefined,
215
215
  q as formatParamsValueType,
216
216
  M as getColumnOrder,
217
217
  B as getFieldProps,
@@ -0,0 +1,83 @@
1
+ import { ApLadderLabelValue } from './interface';
2
+ import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ layout: {
5
+ type: PropType<"vertical" | "horizontal">;
6
+ default: string;
7
+ };
8
+ labelValues: {
9
+ type: PropType<ApLadderLabelValue[]>;
10
+ default: () => never[];
11
+ };
12
+ tooltip: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ labelAlign: {
17
+ type: PropType<"left" | "right">;
18
+ default: string;
19
+ };
20
+ major: {
21
+ type: PropType<string | number | VNode | (() => VNode)>;
22
+ default: null;
23
+ };
24
+ minor: {
25
+ type: PropType<string | number | VNode | (() => VNode)>;
26
+ default: null;
27
+ };
28
+ majorColor: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ minorColor: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
37
+ layout: {
38
+ type: PropType<"vertical" | "horizontal">;
39
+ default: string;
40
+ };
41
+ labelValues: {
42
+ type: PropType<ApLadderLabelValue[]>;
43
+ default: () => never[];
44
+ };
45
+ tooltip: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ labelAlign: {
50
+ type: PropType<"left" | "right">;
51
+ default: string;
52
+ };
53
+ major: {
54
+ type: PropType<string | number | VNode | (() => VNode)>;
55
+ default: null;
56
+ };
57
+ minor: {
58
+ type: PropType<string | number | VNode | (() => VNode)>;
59
+ default: null;
60
+ };
61
+ majorColor: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ minorColor: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ }>> & Readonly<{}>, {
70
+ layout: "horizontal" | "vertical";
71
+ tooltip: boolean;
72
+ major: string | number | VNode<RendererNode, RendererElement, {
73
+ [key: string]: any;
74
+ }> | (() => VNode);
75
+ minor: string | number | VNode<RendererNode, RendererElement, {
76
+ [key: string]: any;
77
+ }> | (() => VNode);
78
+ labelAlign: "left" | "right";
79
+ labelValues: ApLadderLabelValue[];
80
+ majorColor: string;
81
+ minorColor: string;
82
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
83
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { defineComponent as p, computed as i, createVNode as o } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import k from "./components/SimpleMode.mjs";
4
+ import b from "./components/ValueGroupMode.mjs";
5
+ import { ApLadderProps as g } from "./constans.mjs";
6
+ import { useNamespace as s } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useGlobalConfig as A } from "../../config-provider/hooks/use-global-config.mjs";
8
+ const G = /* @__PURE__ */ p({
9
+ name: "ApLadder",
10
+ props: g(),
11
+ setup(e, {
12
+ slots: n
13
+ }) {
14
+ const {
15
+ b: a,
16
+ m: d
17
+ } = s("ap-ladder"), u = A("uiMode", "aplus"), r = i(() => e.labelValues === void 0 || e.labelValues.length === 0), m = i(() => e.labelValues.length > 0), c = i(() => e.labelAlign), f = (l) => {
18
+ l.link && window.open(l.link, "_blank"), typeof l.handleClickLink == "function" && l.handleClickLink();
19
+ }, t = () => {
20
+ var l;
21
+ return ((l = n.title) == null ? void 0 : l.call(n)) || null;
22
+ };
23
+ return () => o("div", {
24
+ class: [a(), `${d(u.value)}`]
25
+ }, [r.value ? o(k, {
26
+ major: e.major,
27
+ minor: e.minor,
28
+ layout: e.layout
29
+ }, {
30
+ title: n.title ? t : void 0
31
+ }) : m.value ? o(b, {
32
+ labelValues: e.labelValues || [],
33
+ labelAlign: c.value,
34
+ onHandleClick: f
35
+ }, {
36
+ title: n.title ? t : void 0
37
+ }) : null]);
38
+ }
39
+ });
40
+ export {
41
+ G as default
42
+ };