@hzab/list-render 1.12.10 → 1.12.11

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.
package/dist/index.js CHANGED
@@ -1,31 +1,32 @@
1
1
  import { forwardRef as e, memo as t, useCallback as n, useEffect as r, useImperativeHandle as i, useMemo as a, useRef as o, useState as s } from "react";
2
2
  import { Button as c, Card as l, Checkbox as u, Drawer as d, Empty as f, Form as p, Modal as m, Pagination as h, Popconfirm as g, Popover as _, Rate as v, Slider as y, Spin as b, Table as x, Tag as S, Tooltip as C, message as w } from "antd";
3
3
  import T, { cloneDeep as E, isFunction as D } from "lodash";
4
- import O, { getCancelTokenSource as k, isCancel as ee } from "@hzab/data-model/src/axios";
4
+ import * as O from "@hzab/data-model/src/axios";
5
+ import k from "@hzab/data-model/src/axios";
5
6
  import A from "dayjs";
6
- import te, { antdComponents as j, customComponents as ne } from "@hzab/form-render";
7
+ import ee, { antdComponents as j, customComponents as te } from "@hzab/form-render";
7
8
  import { cloneSchema as M } from "@hzab/utils/src/formily/cloneSchema";
8
9
  import { getScopeKeyVal as N, handleSchemaStrVal as P, isRunStr as F, isScopeKey as I } from "@hzab/form-render/src/common/schema-handler";
9
10
  import { autorun as L, observable as R } from "@formily/reactive";
10
11
  import { Schema as z } from "@formily/json-schema";
11
12
  import B from "dayjs/plugin/advancedFormat";
12
13
  import V from "dayjs/plugin/weekOfYear";
13
- import { FormConsumer as H, FormProvider as re, createSchemaField as U, observer as ie, useField as ae, useFieldSchema as W } from "@formily/react";
14
- import { Fragment as oe, jsx as G, jsxs as K } from "react/jsx-runtime";
14
+ import { FormConsumer as ne, FormProvider as re, createSchemaField as H, observer as U, useField as ie, useFieldSchema as W } from "@formily/react";
15
+ import { Fragment as ae, jsx as G, jsxs as K } from "react/jsx-runtime";
15
16
  import { c as q } from "react/compiler-runtime";
16
- import { CheckOutlined as J, CloseOutlined as se, EditOutlined as Y, FilterOutlined as X, MenuOutlined as ce, QuestionCircleOutlined as Z, SettingOutlined as le } from "@ant-design/icons";
17
- import { SortableContainer as ue, SortableElement as de, SortableHandle as fe } from "react-sortable-hoc";
18
- import { arrayMoveImmutable as pe } from "array-move";
19
- import { createForm as me, onFieldValueChange as he, onFormValuesChange as ge } from "@formily/core";
20
- import _e from "@hzab/formily-result-utils/src/components/EnumRender";
21
- import { SHOW_MODE_TYPES as ve } from "@hzab/formily-result-utils/src/common/constant";
22
- import ye from "@hzab/edit-table";
17
+ import { CheckOutlined as J, CloseOutlined as oe, EditOutlined as Y, FilterOutlined as X, MenuOutlined as se, QuestionCircleOutlined as Z, SettingOutlined as ce } from "@ant-design/icons";
18
+ import { SortableContainer as le, SortableElement as ue, SortableHandle as de } from "react-sortable-hoc";
19
+ import { arrayMoveImmutable as fe } from "array-move";
20
+ import { createForm as pe, onFieldValueChange as me, onFormValuesChange as he } from "@formily/core";
21
+ import ge from "@hzab/formily-result-utils/src/components/EnumRender";
22
+ import { SHOW_MODE_TYPES as _e } from "@hzab/formily-result-utils/src/common/constant";
23
+ import ve from "@hzab/edit-table";
23
24
  import { Form as Q } from "c-formily-antd";
24
- import be from "@hzab/schema-descriptions";
25
- import { getVal as $ } from "@hzab/utils/src/formily/field";
25
+ import ye from "@hzab/schema-descriptions";
26
+ import { getVal as be } from "@hzab/utils/src/formily/field";
26
27
  export * from "@hzab/data-model";
27
28
  //#region src/common/constant.ts
28
- var xe = "defaultSearchParams", Se = [
29
+ var $ = "defaultSearchParams", xe = [
29
30
  "Input",
30
31
  "Select",
31
32
  "DatePicker.RangePicker",
@@ -33,23 +34,23 @@ var xe = "defaultSearchParams", Se = [
33
34
  ];
34
35
  //#endregion
35
36
  //#region src/common/formily-utils.jsx
36
- function Ce(e) {
37
+ function Se(e) {
37
38
  return function(...t) {
38
- let n = ie(function() {
39
+ let n = U(function() {
39
40
  return e(...t);
40
41
  });
41
42
  return /* @__PURE__ */ G(n, {});
42
43
  };
43
44
  }
44
- var we = function(e = "", t = {}) {
45
+ var Ce = function(e = "", t = {}) {
45
46
  if (typeof e != "string" || !e.startsWith("{{")) return e;
46
47
  let n = e.replace(/^\{\{/, "").replace(/\}\}$/, "");
47
- return t?.scope?.[n] || Ee(n, t);
48
+ return t?.scope?.[n] || Te(n, t);
48
49
  };
49
- function Te(e = "", t) {
50
- return typeof e != "string" || !e.startsWith("{{") ? e : Ee(e.replace(/^\{\{/, "").replace(/\}\}$/, ""), t);
50
+ function we(e = "", t) {
51
+ return typeof e != "string" || !e.startsWith("{{") ? e : Te(e.replace(/^\{\{/, "").replace(/\}\}$/, ""), t);
51
52
  }
52
- function Ee(e = "", t = {}) {
53
+ function Te(e = "", t = {}) {
53
54
  let n = {
54
55
  $observable: R,
55
56
  $memo: L.memo,
@@ -67,7 +68,7 @@ function Ee(e = "", t = {}) {
67
68
  };
68
69
  }
69
70
  A.extend(B), A.extend(V);
70
- var De = {
71
+ var Ee = {
71
72
  time: "YYYY-MM-DD HH:mm:ss",
72
73
  date: "YYYY-MM-DD",
73
74
  week: "YYYY年 w周",
@@ -75,11 +76,11 @@ var De = {
75
76
  month: "YYYY-MM",
76
77
  year: "YYYY"
77
78
  };
78
- function Oe(e = {}, t = {}, n = {}) {
79
+ function De(e = {}, t = {}, n = {}) {
79
80
  let {} = n, r = T.get(t, e.name), {} = e || {}, i = e["x-component"], a = e["x-component-props"] || {};
80
81
  if (r && (i === "DatePicker" || i === "DatePicker.RangePicker")) {
81
- let { picker: e, showTime: t } = a || {}, i = t === !0 ? "time" : e || "date", o = n.dateFormatEnum || De, s = a?.format || o[i];
82
- return Array.isArray(r) ? r.map((e) => ke(e, s)).join(" ~ ") : ke(r, s);
82
+ let { picker: e, showTime: t } = a || {}, i = t === !0 ? "time" : e || "date", o = n.dateFormatEnum || Ee, s = a?.format || o[i];
83
+ return Array.isArray(r) ? r.map((e) => Oe(e, s)).join(" ~ ") : Oe(r, s);
83
84
  }
84
85
  if (r && (i === "TimePicker" || i === "TimePicker.RangePicker")) {
85
86
  let e = a?.format || "HH:mm:ss";
@@ -92,31 +93,31 @@ function Oe(e = {}, t = {}, n = {}) {
92
93
  }
93
94
  let o = e?.dataSource || e.enum;
94
95
  if ((i === "Select" || i === "Radio.Group" || i === "Checkbox.Group") && Array.isArray(o)) {
95
- if (!Array.isArray(r)) return Pe(r, e, n)?.label || r;
96
+ if (!Array.isArray(r)) return Ne(r, e, n)?.label || r;
96
97
  if (Array.isArray(r)) {
97
98
  let t = [];
98
99
  r.forEach((i) => {
99
- t.push(Pe(r, e, n)?.label || i);
100
+ t.push(Ne(r, e, n)?.label || i);
100
101
  }), r = t;
101
102
  }
102
103
  }
103
104
  return Array.isArray(r) ? r.join("、") : r;
104
105
  }
105
- function ke(e, t) {
106
+ function Oe(e, t) {
106
107
  return A(e).format(t);
107
108
  }
108
- var Ae = (e) => {
109
+ var ke = (e) => {
109
110
  e?.forEach((e) => {
110
- e?.type == "object" && !e?.["x-component"] && (e.children = z.getOrderProperties(e)?.map((e) => e?.schema), e.children?.length > 0 && Ae(e.children));
111
+ e?.type == "object" && !e?.["x-component"] && (e.children = z.getOrderProperties(e)?.map((e) => e?.schema), e.children?.length > 0 && ke(e.children));
111
112
  });
112
113
  };
113
- function je(e, t = [], n = {}, r = !1) {
114
+ function Ae(e, t = [], n = {}, r = !1) {
114
115
  let i = M(e?.schema || e), a = z.getOrderProperties(i), { boxList: o = [] } = n || {}, s = ["FormGrid", "FormGrid.GridColumn"];
115
116
  return Array.isArray(o) ? s = [...s, ...o] : o === !1 && (s = []), i?.properties && a.forEach((e) => {
116
117
  let r = { ...e.schema };
117
118
  r.name ||= e.key;
118
119
  let i = r["x-component"];
119
- typeof r.title == "string" && r.title.startsWith("{{") && (r.title = we(r.title, { scope: n.schemaScope }), typeof r.title == "function" && (r.title = r.title({
120
+ typeof r.title == "string" && r.title.startsWith("{{") && (r.title = Ce(r.title, { scope: n.schemaScope }), typeof r.title == "function" && (r.title = r.title({
120
121
  ...n,
121
122
  scope: n.schemaScope,
122
123
  scenario: "listRender",
@@ -125,28 +126,28 @@ function je(e, t = [], n = {}, r = !1) {
125
126
  $observable: R,
126
127
  $memo: L.memo,
127
128
  $props: { formilyRef: n.formilyRef }
128
- }))), s.includes(i) ? je(r, t, n) : t.push(r), r?.type == "object" && !r?.["x-component"] && (r.children = z.getOrderProperties(r)?.map((e) => e?.schema), r.children?.length > 0 && Ae(r.children));
129
+ }))), s.includes(i) ? Ae(r, t, n) : t.push(r), r?.type == "object" && !r?.["x-component"] && (r.children = z.getOrderProperties(r)?.map((e) => e?.schema), r.children?.length > 0 && ke(r.children));
129
130
  }), r && t.sort((e, t) => e["x-index"] - t["x-index"]), t;
130
131
  }
131
- function Me(e, t = {}) {
132
+ function je(e, t = {}) {
132
133
  let n = e?.schema || e;
133
134
  return n?.properties && Object.keys(n?.properties).forEach((e) => {
134
135
  let r = n?.properties[e];
135
- r["x-component"] === "FormGrid" || r["x-component"] === "FormGrid.GridColumn" ? Me(r, t) : t[e] = r;
136
+ r["x-component"] === "FormGrid" || r["x-component"] === "FormGrid.GridColumn" ? je(r, t) : t[e] = r;
136
137
  }), t;
137
138
  }
138
- function Ne(e) {
139
+ function Me(e) {
139
140
  let t = new FormData();
140
141
  return Object.keys(e)?.forEach((n) => {
141
142
  t.set(n, e[n]);
142
143
  }), t;
143
144
  }
144
- var Pe = function(e, t, n) {
145
- return t ? Fe(e, Array.isArray(t.enum) ? t.enum : Array.isArray(t.options) ? t.options : t.dataSource || [], {
145
+ var Ne = function(e, t, n) {
146
+ return t ? Pe(e, Array.isArray(t.enum) ? t.enum : Array.isArray(t.options) ? t.options : t.dataSource || [], {
146
147
  fieldNames: t.fieldNames || t["x-component-props"]?.fieldNames,
147
148
  ...n
148
149
  }) : {};
149
- }, Fe = function(e, t, n) {
150
+ }, Pe = function(e, t, n) {
150
151
  let { fieldNames: r } = n || {}, { value: i = "value", label: a = "label", children: o = "children" } = r || {};
151
152
  for (let r = 0; r < t.length; r++) {
152
153
  let s = t[r];
@@ -158,7 +159,7 @@ var Pe = function(e, t, n) {
158
159
  };
159
160
  let c = s?.[o];
160
161
  if (Array.isArray(c) && c.length > 0) {
161
- let t = Fe(e, c, n);
162
+ let t = Pe(e, c, n);
162
163
  return {
163
164
  ...t,
164
165
  value: t?.[i],
@@ -168,7 +169,7 @@ var Pe = function(e, t, n) {
168
169
  }
169
170
  }
170
171
  };
171
- function Ie(e, t = {}) {
172
+ function Fe(e, t = {}) {
172
173
  let n = M(e), r = n?.schema || n, { boxList: i = [] } = t, a = i === !1 ? [] : [
173
174
  "Card",
174
175
  "FormGrid",
@@ -187,14 +188,14 @@ function Ie(e, t = {}) {
187
188
  }
188
189
  //#endregion
189
190
  //#region src/common/handleQuerySchema.ts
190
- var Le = (e) => {
191
+ var Ie = (e) => {
191
192
  let { schema: t, search: n, filters: r, onSearch: i, replaceComList: a, schemaScope: o } = e || {}, s = {}, c = 0;
192
- n && (s.search = Re({
193
+ n && (s.search = Le({
193
194
  search: n,
194
195
  onSearch: i,
195
196
  index: c
196
197
  }), c += 1);
197
- let l = Me(M(t));
198
+ let l = je(M(t));
198
199
  return r?.forEach((t) => {
199
200
  let n = l[t];
200
201
  if (n) {
@@ -205,8 +206,8 @@ var Le = (e) => {
205
206
  "x-index": c,
206
207
  "x-display": "visible"
207
208
  }, u = l["x-component-props"];
208
- u ? Ke(u) && (l["x-component-props"] = Ye(u, o) || {}) : l["x-component-props"] = {}, typeof l["x-component-props"].allowClear != "boolean" && (l["x-component-props"].allowClear = !0), Be(l, e), ze(l, e), Ve(l, e), Ue(l, e), s[t] = l, c += 1;
209
- } else t === "$timerange" && (s[t] = He({
209
+ u ? Ge(u) && (l["x-component-props"] = Je(u, o) || {}) : l["x-component-props"] = {}, typeof l["x-component-props"].allowClear != "boolean" && (l["x-component-props"].allowClear = !0), ze(l, e), Re(l, e), Be(l, e), He(l, e), s[t] = l, c += 1;
210
+ } else t === "$timerange" && (s[t] = Ve({
210
211
  index: c,
211
212
  key: t
212
213
  }), c += 1);
@@ -218,9 +219,9 @@ var Le = (e) => {
218
219
  "x-designable-id": "querySchema"
219
220
  }
220
221
  };
221
- }, Re = (e) => {
222
+ }, Le = (e) => {
222
223
  let { search: t, onSearch: n, index: r } = e || {};
223
- return Ge({
224
+ return We({
224
225
  type: "string",
225
226
  title: "",
226
227
  "x-decorator": "FormItem",
@@ -237,7 +238,7 @@ var Le = (e) => {
237
238
  name: "search",
238
239
  description: ""
239
240
  }, e);
240
- }, ze = (e, t) => {
241
+ }, Re = (e, t) => {
241
242
  let { selectList: n = [], isSelectSearch: r = !0 } = t || {}, i = [
242
243
  "Select",
243
244
  "Radio.Group",
@@ -245,13 +246,13 @@ var Le = (e) => {
245
246
  ...n
246
247
  ], a = e["x-component"];
247
248
  return i.includes(a) && (e["x-component"] = "Select", e["x-component-props"].showSearch = r), e;
248
- }, Be = (e, t) => {
249
+ }, ze = (e, t) => {
249
250
  let { inputList: n = [] } = t || {}, r = ["NumberPicker", ...n], i = e["x-component"];
250
251
  return r.includes(i) && (e["x-component"] = "Input"), e;
251
- }, Ve = (e, t) => {
252
+ }, Be = (e, t) => {
252
253
  let { isRmDefault: n, isRmValidator: r } = t || {};
253
254
  return n && (e.default = void 0, e["x-component-props"].defaultValue = void 0), r && (e["x-validator"] = []), e;
254
- }, He = ({ key: e, index: t }) => ({
255
+ }, Ve = ({ key: e, index: t }) => ({
255
256
  type: "string[]",
256
257
  title: "时间范围",
257
258
  "x-decorator": "FormItem",
@@ -266,7 +267,7 @@ var Le = (e) => {
266
267
  name: e,
267
268
  "x-designable-id": e,
268
269
  "x-index": t
269
- }), Ue = (e, t) => {
270
+ }), He = (e, t) => {
270
271
  let { isEnterSubmit: n = !0, isChangeSubmit: r = !0, onSearch: i, customSubmitList: a } = t || {}, o = e["x-component"], s = e["x-component-props"], c = [
271
272
  "Select",
272
273
  "Cascader",
@@ -277,41 +278,41 @@ var Le = (e) => {
277
278
  "TimePicker.RangePicker"
278
279
  ];
279
280
  if (n && o === "Input") {
280
- let n = Je(s?.onPressEnter, t);
281
+ let n = qe(s?.onPressEnter, t);
281
282
  e["x-component-props"].onPressEnter = function(e, ...t) {
282
283
  e?.preventDefault && e?.preventDefault();
283
284
  let r = n && n(e, ...t);
284
285
  return i && i(), r;
285
- }, Ge(e, t);
286
- } else r && c.includes(o) && (e["x-component-props"].onChange = We(s?.onChange, i, t));
286
+ }, We(e, t);
287
+ } else r && c.includes(o) && (e["x-component-props"].onChange = Ue(s?.onChange, i, t));
287
288
  let l = a?.find((e) => e.component === o);
288
- l && (e["x-component-props"][l.event] = We(s[l.event], i, t));
289
- }, We = (e, t, n) => async function(...r) {
290
- let { schemaScope: i } = n, a = Je(e, i), o = null;
289
+ l && (e["x-component-props"][l.event] = Ue(s[l.event], i, t));
290
+ }, Ue = (e, t, n) => async function(...r) {
291
+ let { schemaScope: i } = n, a = qe(e, i), o = null;
291
292
  return F(e) && (a = P(e, i)), I(e, i) && (a = N(e, i)), a && (o = await a(...r)), t && t(...r), o;
292
- }, Ge = (e, t) => {
293
- let { onSearch: n, schemaScope: r } = t || {}, i = Je(e["x-component-props"]?.onChange, r);
293
+ }, We = (e, t) => {
294
+ let { onSearch: n, schemaScope: r } = t || {}, i = qe(e["x-component-props"]?.onChange, r);
294
295
  return e["x-component-props"].onChange = function(e, ...t) {
295
296
  let r = i && i(e, ...t);
296
297
  return e.type === "click" && e.target?.value === "" && n(), r;
297
298
  }, e;
298
- }, Ke = (e) => {
299
+ }, Ge = (e) => {
299
300
  if (typeof e != "string") return !1;
300
301
  let t = e.trim();
301
302
  return t.startsWith("{{") && t.endsWith("}}");
302
- }, qe = (e) => Ke(e) ? e.trim().replace(/^\{\{/, "").replace(/\}\}$/, "") : "", Je = (e, t = {}) => {
303
- let n = Ye(e, t);
303
+ }, Ke = (e) => Ge(e) ? e.trim().replace(/^\{\{/, "").replace(/\}\}$/, "") : "", qe = (e, t = {}) => {
304
+ let n = Je(e, t);
304
305
  return !T.isNil(n) && n !== "" ? n : e;
305
- }, Ye = (e, t = {}) => {
306
- if (Ke(e)) return t && t[qe(e)];
306
+ }, Je = (e, t = {}) => {
307
+ if (Ge(e)) return t && t[Ke(e)];
307
308
  };
308
- function Xe(e) {
309
+ function Ye(e) {
309
310
  return T.pickBy(e, (e) => !(e == null || T.isString(e) && e.trim() === "" || T.isArray(e) && e.length === 0));
310
311
  }
311
- function Ze(e, t = xe) {
312
+ function Xe(e, t = $) {
312
313
  try {
313
314
  if (typeof window > "u") return;
314
- let [n, r = ""] = window.location.href.split("#"), [i, a = ""] = r.split("?"), o = new URLSearchParams(a), s = T.cloneDeep(Xe(e)), c = encodeURIComponent(JSON.stringify(s));
315
+ let [n, r = ""] = window.location.href.split("#"), [i, a = ""] = r.split("?"), o = new URLSearchParams(a), s = T.cloneDeep(Ye(e)), c = encodeURIComponent(JSON.stringify(s));
315
316
  o.set(t, c);
316
317
  let l = `${i}?${o.toString()}`;
317
318
  window.history.replaceState({}, "", `${n}#${l}`);
@@ -319,7 +320,7 @@ function Ze(e, t = xe) {
319
320
  console.error("[setURLObjectQueryParam] 设置失败:", e);
320
321
  }
321
322
  }
322
- function Qe(e, t, n) {
323
+ function Ze(e, t, n) {
323
324
  if (!(typeof window > "u")) try {
324
325
  let [r, i = ""] = window.location.href.split("#"), [a, o = ""] = i.split("?"), s = new URLSearchParams(o), c = s.get(e);
325
326
  if (c == null) return;
@@ -343,7 +344,7 @@ function Qe(e, t, n) {
343
344
  console.error("[removeURLObjectQueryParam] 删除失败:", e);
344
345
  }
345
346
  }
346
- function $e(e = xe) {
347
+ function Qe(e = $) {
347
348
  if (typeof window > "u") return {};
348
349
  let [, t = ""] = window.location.href.split("#"), [, n = ""] = t.split("?"), r = new URLSearchParams(n).get(e);
349
350
  if (!r) return null;
@@ -353,18 +354,18 @@ function $e(e = xe) {
353
354
  return console.error("[getURLObjectQueryParam] 解析失败:", e), {};
354
355
  }
355
356
  }
356
- var et = (e) => e?.schema?.properties ?? {}, tt = (e, t) => typeof e == "string" && t.includes(e), nt = (e, t) => {
357
+ var $e = (e) => e?.schema?.properties ?? {}, et = (e, t) => typeof e == "string" && t.includes(e), tt = (e, t) => {
357
358
  let n = new Set(t);
358
359
  return Object.entries(e).filter(([e]) => n.has(e));
359
- }, rt = (e, t, n) => e?.["x-component-props"]?.[t] === n, it = (e, t, n) => {
360
+ }, nt = (e, t, n) => e?.["x-component-props"]?.[t] === n, rt = (e, t, n) => {
360
361
  let r = e ?? {}, i = Object.prototype.hasOwnProperty.call(r, t), a = Object.prototype.hasOwnProperty.call(r, n);
361
362
  if (!(!i && !a)) return [r[t], r[n]];
362
363
  };
363
- function at(e, t, n, r = {}) {
364
- let { splitFlag: i = "isSplitTimes", splitFlagExpectedValue: a = !0, defaultStartKey: o = "startTime", defaultEndKey: s = "endTime", antdDateComponents: c = ["DatePicker", "DatePicker.RangePicker"], removeMatchedKeys: l = !0 } = r, u = nt(et(t), e), d = T.cloneDeep(n), f = /* @__PURE__ */ new Set();
364
+ function it(e, t, n, r = {}) {
365
+ let { splitFlag: i = "isSplitTimes", splitFlagExpectedValue: a = !0, defaultStartKey: o = "startTime", defaultEndKey: s = "endTime", antdDateComponents: c = ["DatePicker", "DatePicker.RangePicker"], removeMatchedKeys: l = !0 } = r, u = tt($e(t), e), d = T.cloneDeep(n), f = /* @__PURE__ */ new Set();
365
366
  for (let [e, t] of u) {
366
- if (!tt(t?.["x-component"], c) || !rt(t, i, a)) continue;
367
- let n = t?.["x-component-props"] ?? {}, r = n?.startKey || o, u = n?.endKey || s, p = it(d, r, u);
367
+ if (!et(t?.["x-component"], c) || !nt(t, i, a)) continue;
368
+ let n = t?.["x-component-props"] ?? {}, r = n?.startKey || o, u = n?.endKey || s, p = rt(d, r, u);
368
369
  p && (d[e] = p, l && (Object.prototype.hasOwnProperty.call(d, r) && f.add(r), Object.prototype.hasOwnProperty.call(d, u) && f.add(u)));
369
370
  }
370
371
  if (l) for (let e of f) delete d[e];
@@ -372,10 +373,10 @@ function at(e, t, n, r = {}) {
372
373
  }
373
374
  //#endregion
374
375
  //#region src/query-render/index.jsx
375
- function ot(e, t) {
376
+ function at(e, t) {
376
377
  let [n, a] = s({}), l = o();
377
378
  i(t, () => ({ formRef: l })), r(() => {
378
- a(Le({
379
+ a(Ie({
379
380
  ...e?.config,
380
381
  schemaScope: {
381
382
  ...e.schemaScope,
@@ -401,7 +402,7 @@ function ot(e, t) {
401
402
  }
402
403
  return /* @__PURE__ */ G("div", {
403
404
  className: "query-render",
404
- children: Object.keys(n?.schema?.properties || {}).length > 0 ? /* @__PURE__ */ G(oe, { children: /* @__PURE__ */ G(te, {
405
+ children: Object.keys(n?.schema?.properties || {}).length > 0 ? /* @__PURE__ */ G(ae, { children: /* @__PURE__ */ G(ee, {
405
406
  ref: l,
406
407
  layout: "inline",
407
408
  schema: n,
@@ -428,10 +429,10 @@ function ot(e, t) {
428
429
  }) }) : null
429
430
  });
430
431
  }
431
- var st = e(ot);
432
+ var ot = e(at);
432
433
  //#endregion
433
434
  //#region src/pagination-render/index.jsx
434
- function ct(e) {
435
+ function st(e) {
435
436
  let t = q(25), { config: n } = e, i;
436
437
  t[0] === n ? i = t[1] : (i = n || {}, t[0] = n, t[1] = i);
437
438
  let { isAllSelect: a } = i, o = a !== void 0 && a, [c, l] = s(e.query?.pageSize || e.pageSizeOptions[0]), [u, d] = s(e.query?.pageNum || 1), f;
@@ -461,24 +462,24 @@ function ct(e) {
461
462
  onChange: v,
462
463
  pageSizeOptions: x,
463
464
  total: e.total,
464
- showTotal: lt,
465
+ showTotal: ct,
465
466
  showSizeChanger: !0
466
467
  })
467
468
  }), t[17] = v, t[18] = u, t[19] = c, t[20] = e.total, t[21] = y, t[22] = b, t[23] = x, t[24] = S) : S = t[24], S;
468
469
  }
469
- function lt(e) {
470
+ function ct(e) {
470
471
  return `总条数 ${e} 条`;
471
472
  }
472
473
  //#endregion
473
474
  //#region src/common/handleReactions.js
474
- function ut(e, t = {}) {
475
+ function lt(e, t = {}) {
475
476
  if (!Array.isArray(e)) return console.warn("Error handleReactions: fieldList not array"), e;
476
477
  let n = [];
477
478
  return M(e).forEach((e) => {
478
- dt(e, t), n.push(e);
479
+ ut(e, t), n.push(e);
479
480
  }), n;
480
481
  }
481
- function dt(e, t = {}) {
482
+ function ut(e, t = {}) {
482
483
  let { scope: n, formilyRef: r = {}, scenario: i } = t || {}, a = e?.field || e, { state: o, run: s } = a["x-reactions"]?.fulfill || {}, c = {
483
484
  scope: n,
484
485
  $self: a,
@@ -488,27 +489,27 @@ function dt(e, t = {}) {
488
489
  $props: { formilyRef: r }
489
490
  };
490
491
  if (a.inTable) {
491
- let e = Te(a.inTable, c);
492
+ let e = we(a.inTable, c);
492
493
  e && (a.inTable = e(c));
493
494
  }
494
495
  return a.visible, a;
495
496
  }
496
497
  //#endregion
497
498
  //#region src/components/Formily/FormilyField.tsx
498
- var ft = t(function(e) {
499
+ var dt = t(function(e) {
499
500
  let { schema: t, formilyRef: r, schemaScope: i, components: o, reactionOpts: s } = e, { fields: c, fieldSchemas: l } = r.current || {}, u = a(() => {
500
501
  let e = M(t);
501
502
  return e?.properties && Object.keys(e?.properties)?.forEach((t) => {
502
503
  e?.properties?.[t]?.inTable === !1 && delete e?.properties?.[t];
503
504
  }), e;
504
- }, [t]), d = n(U({
505
+ }, [t]), d = n(H({
505
506
  components: {
506
507
  ...j,
507
- ...ne,
508
+ ...te,
508
509
  ...o,
509
510
  FormItem(e) {
510
- let t = ae(), n = W(), { name: r } = n;
511
- c[r] = t, l[r] = n, dt(n, {
511
+ let t = ie(), n = W(), { name: r } = n;
512
+ c[r] = t, l[r] = n, ut(n, {
512
513
  ...s,
513
514
  scope: i
514
515
  });
@@ -520,7 +521,7 @@ var ft = t(function(e) {
520
521
  ...i,
521
522
  scenario: "tableReactionsForm"
522
523
  }
523
- }), []), f = a(() => me({
524
+ }), []), f = a(() => pe({
524
525
  initialValues: {},
525
526
  readOnly: !0,
526
527
  disabled: !0
@@ -536,7 +537,7 @@ var ft = t(function(e) {
536
537
  form: f,
537
538
  children: /* @__PURE__ */ G(d, { schema: u })
538
539
  });
539
- }), pt = ({ SchemaField: e, getField: t, editing: n, dataIndex: r, title: i, inputType: a, record: s, index: c, onEdit: l, onSave: u, onCancel: d, editable: f, topProps: p, children: m, ...h }) => {
540
+ }), ft = ({ SchemaField: e, getField: t, editing: n, dataIndex: r, title: i, inputType: a, record: s, index: c, onEdit: l, onSave: u, onCancel: d, editable: f, topProps: p, children: m, ...h }) => {
540
541
  let g = t && t(), _ = g?.["x-pattern"], v = g?.["x-display"], { editMode: y = "modal", canEditCallback: b } = p || {}, { hasEdit: x } = p?.tableConf || {}, S = o();
541
542
  return y === "modal" || !((x && typeof x == "function" ? x(s, c) : x !== !1) && f && _ !== "disabled" && _ !== "readOnly" && v !== "none" && (!b || b(s, g, r))) ? /* @__PURE__ */ G("td", {
542
543
  ...h,
@@ -562,7 +563,7 @@ var ft = t(function(e) {
562
563
  children: [/* @__PURE__ */ G(J, {
563
564
  className: "table-cell-confirm-icon",
564
565
  onClick: () => u(g)
565
- }), /* @__PURE__ */ G(se, {
566
+ }), /* @__PURE__ */ G(oe, {
566
567
  className: "table-cell-cancel-icon",
567
568
  onClick: d
568
569
  })]
@@ -592,16 +593,16 @@ var ft = t(function(e) {
592
593
  ...h,
593
594
  children: m
594
595
  });
595
- }, mt = (e) => {
596
+ }, pt = (e) => {
596
597
  let { topProps: t, idKey: i, columns: a, onEditSubmit: u, formRender: d } = e, { editMode: f = "modal" } = t || {}, p = o();
597
598
  e.schemaScope && !p.current ? p.current = e.schemaScope : p.current ||= { _$tempData: {} }, p.current?._$tempData || (p.current._$tempData = {});
598
- let m = n(U({
599
+ let m = n(H({
599
600
  components: {
600
601
  Card: l,
601
602
  Slider: y,
602
603
  Rate: v,
603
604
  ...j,
604
- ...ne,
605
+ ...te,
605
606
  ...e.components
606
607
  },
607
608
  scope: p.current
@@ -664,55 +665,55 @@ var ft = t(function(e) {
664
665
  }) : t.render(e, n)), r;
665
666
  })
666
667
  };
667
- }, ht = "table-render", gt = e(function(e, t) {
668
- let { topProps: n, config: l = {}, query: d = {}, i18n: f, setList: m, cellEditTableProps: h } = e, { tableDel: v = "删除", tableEdit: y = "编辑", tableDelTip: b = "确认删除该项?", tableDetail: S = "详情" } = f || {}, { dragColConf: w = {}, isDargTable: E, dargEndBack: O, orderColType: k, orderColWidth: ee, tableEmptyValue: A, isShowTableFilter: te = !1, isTableSortXIdex: j = !1, isCellEditTable: ne = !1 } = l || {}, { editMode: M = "modal" } = n || {}, N = M !== "modal", P = o();
668
+ }, mt = "table-render", ht = e(function(e, t) {
669
+ let { topProps: n, config: l = {}, query: d = {}, i18n: f, setList: m, cellEditTableProps: h } = e, { tableDel: v = "删除", tableEdit: y = "编辑", tableDelTip: b = "确认删除该项?", tableDetail: S = "详情" } = f || {}, { dragColConf: w = {}, isDargTable: E, dargEndBack: O, orderColType: k, orderColWidth: A, tableEmptyValue: ee, isShowTableFilter: j = !1, isTableSortXIdex: te = !1, isCellEditTable: M = !1 } = l || {}, { editMode: N = "modal" } = n || {}, P = N !== "modal", F = o();
669
670
  i(t, () => ({
670
- onEditByTable: J,
671
- cellEditTableRef: P,
672
- columns: F
671
+ onEditByTable: oe,
672
+ cellEditTableRef: F,
673
+ columns: I
673
674
  }));
674
- let [F, I] = s([]), [L, R] = s([]), z = fe(() => /* @__PURE__ */ G(ce, { style: {
675
+ let [I, L] = s([]), [R, z] = s([]), B = de(() => /* @__PURE__ */ G(se, { style: {
675
676
  cursor: "grab",
676
677
  color: "#999"
677
- } })), B = de((e) => /* @__PURE__ */ G("tr", { ...e })), V = ue((e) => /* @__PURE__ */ G("tbody", { ...e })), U = ({ oldIndex: t, newIndex: n }) => {
678
+ } })), V = ue((e) => /* @__PURE__ */ G("tr", { ...e })), H = le((e) => /* @__PURE__ */ G("tbody", { ...e })), U = ({ oldIndex: t, newIndex: n }) => {
678
679
  if (t !== n) {
679
- let r = pe(e.list.slice(), t, n).filter((e) => !!e);
680
+ let r = fe(e.list.slice(), t, n).filter((e) => !!e);
680
681
  m([...r]), O && O(r, d);
681
682
  }
682
- }, ie = (e) => /* @__PURE__ */ G(V, {
683
+ }, ie = (e) => /* @__PURE__ */ G(H, {
683
684
  useDragHandle: !0,
684
685
  disableAutoscroll: !0,
685
686
  helperClass: "row-dragging",
686
687
  onSortEnd: U,
687
688
  ...e
688
- }), ae = ({ className: t, style: n, ...r }) => {
689
+ }), W = ({ className: t, style: n, ...r }) => {
689
690
  let i = e.list.findIndex((t) => t[e.idKey || "id"] === r["data-row-key"]);
690
- return /* @__PURE__ */ G(B, {
691
+ return /* @__PURE__ */ G(V, {
691
692
  index: i,
692
693
  ...r
693
694
  });
694
- }, W = o({
695
+ }, q = o({
695
696
  fields: {},
696
697
  fieldSchemas: {}
697
- }), q = a(() => me({
698
+ }), J = a(() => pe({
698
699
  initialValues: e.initialValues,
699
700
  readOnly: e.readOnly,
700
701
  disabled: e.disabled,
701
702
  ...e.formOptions || {},
702
703
  effects(...t) {
703
- e.onFormValuesChange && ge(e.onFormValuesChange), e.onFieldValueChange && he("*", e.onFieldValueChange), e.formOptions?.effects && e.formOptions?.effects(...t);
704
+ e.onFormValuesChange && he(e.onFormValuesChange), e.onFieldValueChange && me("*", e.onFieldValueChange), e.formOptions?.effects && e.formOptions?.effects(...t);
704
705
  }
705
- }), []), { onEdit: J, mergedColumns: se } = mt({
706
+ }), []), { onEdit: oe, mergedColumns: Y } = pt({
706
707
  idKey: e.idKey,
707
- columns: F,
708
+ columns: I,
708
709
  onEdit: e.onEdit,
709
710
  onEditSubmit: e.onEditSubmit,
710
- formRender: q,
711
+ formRender: J,
711
712
  components: e.components,
712
713
  schemaScope: e.schemaScope,
713
714
  topProps: e.topProps
714
- }), Y = (t) => {
715
- let n = W.current?.fields, { Slots: r = {} } = e;
715
+ }), Q = (t) => {
716
+ let n = q.current?.fields, { Slots: r = {} } = e;
716
717
  return t?.map((t, i) => {
717
718
  if (t.inTable === !1) return;
718
719
  let { name: a, title: o } = t, s = t["x-component"], c = {};
@@ -731,7 +732,7 @@ var ft = t(function(e) {
731
732
  };
732
733
  return /* @__PURE__ */ G(o, { ...s });
733
734
  } : function(e, r, i, ...a) {
734
- let { width: o, ellipsis: l, emptyValue: u, showTags: d, showPrefixNode: f, showMode: p, enumRenderProps: m } = c || {}, h = n[t?.name]?.componentProps?.emptyValue, g = u ?? h ?? A ?? "", _ = Oe({
735
+ let { width: o, ellipsis: l, emptyValue: u, showTags: d, showPrefixNode: f, showMode: p, enumRenderProps: m } = c || {}, h = n[t?.name]?.componentProps?.emptyValue, g = u ?? h ?? ee ?? "", _ = De({
735
736
  ...t,
736
737
  ...n[t?.name]
737
738
  }, r, { fieldSchema: n?.[t?.name] });
@@ -750,7 +751,7 @@ var ft = t(function(e) {
750
751
  });
751
752
  if (p || d || f || f !== !1 && s === "Switch") {
752
753
  let e = p;
753
- return d ? e = ve.tags : f && (e = ve.prefixNode), /* @__PURE__ */ G(_e, {
754
+ return d ? e = _e.tags : f && (e = _e.prefixNode), /* @__PURE__ */ G(ge, {
754
755
  showMode: e,
755
756
  value: T.get(r, t?.name),
756
757
  field: {
@@ -794,38 +795,38 @@ var ft = t(function(e) {
794
795
  dataIndex: t?.name,
795
796
  type: t["x-validator"] == "number" ? "Number" : s,
796
797
  validatorList: t["x-validator"] || [],
797
- nonEditable: M != "cell",
798
+ nonEditable: N != "cell",
798
799
  values: t?.enum || f || [],
799
800
  cellProps: t.cellProps,
800
- children: Y(t?.children),
801
- render: Ce(l),
801
+ children: Q(t?.children),
802
+ render: Se(l),
802
803
  required: t?.required
803
804
  };
804
805
  })?.filter((e) => e);
805
806
  };
806
807
  r(() => {
807
808
  if (!(e.schema && e.schema.properties)) return;
808
- let t = je(e.schema, [], {
809
+ let t = Ae(e.schema, [], {
809
810
  ...e.getFieldListOpt,
810
- formilyRef: W
811
- }, j), n = [];
811
+ formilyRef: q
812
+ }, te), n = [];
812
813
  k === "page" ? n.push({
813
814
  title: "序号",
814
- width: ee,
815
+ width: A,
815
816
  render: (e, t, n) => `${n + 1}`
816
817
  }) : k == "all" && n.push({
817
818
  title: "序号",
818
- width: ee,
819
+ width: A,
819
820
  render: (e, t, n) => {
820
821
  let { pageSize: r = 10, pageNum: i = 1 } = d || {};
821
822
  return `${(i - 1) * r + (n + 1)}`;
822
823
  }
823
824
  });
824
- let { Slots: r = {} } = e, i = ut(t, {
825
+ let { Slots: r = {} } = e, i = lt(t, {
825
826
  scope: e.schemaScope,
826
- formilyRef: W
827
+ formilyRef: q
827
828
  });
828
- if (n = n.concat(Y(i)), e.hasAction !== !1) {
829
+ if (n = n.concat(Q(i)), e.hasAction !== !1) {
829
830
  let { hasEdit: t, hasDel: i, hasDelTips: a, hasDetail: o = !1 } = e.config || {}, s = e.config?.colConf?._$actions || {};
830
831
  n.push({
831
832
  ...s,
@@ -833,7 +834,7 @@ var ft = t(function(e) {
833
834
  key: "_$actions",
834
835
  type: "_$actions",
835
836
  nonEditable: !0,
836
- render: Ce(function(n, l, u) {
837
+ render: Se(function(n, l, u) {
837
838
  let { onEdit: d, onDel: f, onSearch: p, getList: m } = e, h = {
838
839
  text: n,
839
840
  record: l,
@@ -891,20 +892,20 @@ var ft = t(function(e) {
891
892
  dataIndex: "sort",
892
893
  width: 60,
893
894
  fixed: "left",
894
- render: () => /* @__PURE__ */ G(z, {}),
895
+ render: () => /* @__PURE__ */ G(B, {}),
895
896
  ...w
896
- }), I(n), R(n);
897
+ }), L(n), z(n);
897
898
  }, [e.schema, e.config]);
898
- let Q = { scenario: ht }, be = (e, t) => {
899
+ let ye = { scenario: mt }, be = (e, t) => {
899
900
  if (e.target.checked) {
900
- let e = [...F, t], n = new Map(L.map((e, t) => [e.key, t]));
901
- I(e.sort((e, t) => n.get(e.key) - n.get(t.key)));
902
- } else I(F.filter((e) => e.key !== t.key));
901
+ let e = [...I, t], n = new Map(R.map((e, t) => [e.key, t]));
902
+ L(e.sort((e, t) => n.get(e.key) - n.get(t.key)));
903
+ } else L(I.filter((e) => e.key !== t.key));
903
904
  }, $ = {
904
905
  className: "table-render",
905
906
  rowKey: e?.idKey || "id",
906
907
  rowSelection: l?.rowSelection,
907
- columns: F,
908
+ columns: I,
908
909
  dataSource: e.list,
909
910
  pagination: !1,
910
911
  scroll: l.scroll,
@@ -916,14 +917,14 @@ var ft = t(function(e) {
916
917
  };
917
918
  return E && ($.components = { body: {
918
919
  wrapper: ie,
919
- row: ae
920
- } }), N && ($.columns = se, $.components = { body: {
920
+ row: W
921
+ } }), P && ($.columns = Y, $.components = { body: {
921
922
  ...$?.components?.body,
922
- cell: pt
923
+ cell: ft
923
924
  } }), /* @__PURE__ */ K("div", {
924
925
  className: "table-render-wrap",
925
926
  children: [
926
- te ? /* @__PURE__ */ K("div", {
927
+ j ? /* @__PURE__ */ K("div", {
927
928
  className: "table-render-wrap-header",
928
929
  children: [/* @__PURE__ */ K("div", {
929
930
  className: "table-filter",
@@ -935,8 +936,8 @@ var ft = t(function(e) {
935
936
  placement: "bottomRight",
936
937
  content: /* @__PURE__ */ G("div", {
937
938
  className: "table-popover-content",
938
- children: L.map((e) => e.key === "_$actions" ? null : /* @__PURE__ */ G(u, {
939
- checked: F.findIndex((t) => t.key === e.key) !== -1,
939
+ children: R.map((e) => e.key === "_$actions" ? null : /* @__PURE__ */ G(u, {
940
+ checked: I.findIndex((t) => t.key === e.key) !== -1,
940
941
  onChange: (t) => be(t, e),
941
942
  children: e.title
942
943
  }, e.key))
@@ -944,12 +945,12 @@ var ft = t(function(e) {
944
945
  trigger: "click",
945
946
  children: /* @__PURE__ */ K("div", {
946
947
  className: "table-filter",
947
- children: [/* @__PURE__ */ G(le, { className: "table-filter-icon" }), "显示列"]
948
+ children: [/* @__PURE__ */ G(ce, { className: "table-filter-icon" }), "显示列"]
948
949
  })
949
950
  })]
950
951
  }) : null,
951
- ne ? /* @__PURE__ */ G(ye, {
952
- ref: P,
952
+ M ? /* @__PURE__ */ G(ve, {
953
+ ref: F,
953
954
  ...$,
954
955
  ...h,
955
956
  ...e,
@@ -957,30 +958,30 @@ var ft = t(function(e) {
957
958
  Slots: e?.Slots,
958
959
  rowSelection: l?.rowSelection,
959
960
  query: d
960
- }) : /* @__PURE__ */ G(oe, { children: N ? /* @__PURE__ */ G(re, {
961
- form: q,
961
+ }) : /* @__PURE__ */ G(ae, { children: P ? /* @__PURE__ */ G(re, {
962
+ form: J,
962
963
  children: /* @__PURE__ */ G(p, {
963
964
  layout: "vertical",
964
- children: /* @__PURE__ */ G(H, { children: () => /* @__PURE__ */ G(x, { ...$ }) })
965
+ children: /* @__PURE__ */ G(ne, { children: () => /* @__PURE__ */ G(x, { ...$ }) })
965
966
  })
966
967
  }) : /* @__PURE__ */ G(x, { ...$ }) }),
967
- /* @__PURE__ */ G(ft, {
968
+ /* @__PURE__ */ G(dt, {
968
969
  schema: e.schema,
969
- formilyRef: W,
970
+ formilyRef: q,
970
971
  components: e.components,
971
972
  topProps: n,
972
973
  schemaScope: {
973
- ...Q,
974
+ ...ye,
974
975
  ...e.schemaScope
975
976
  },
976
- reactionOpts: Q
977
+ reactionOpts: ye
977
978
  })
978
979
  ]
979
980
  });
980
981
  });
981
982
  //#endregion
982
983
  //#region src/card-render/index.jsx
983
- function _t(e) {
984
+ function gt(e) {
984
985
  let t = q(16), n;
985
986
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {}, t[0] = n) : n = t[0];
986
987
  let [i, a] = s(n), { config: o, cardProps: l, query: u, i18n: d, onEdit: p, onDel: m, onSearch: h, getList: _, Slots: v, loading: y } = e, x = o === void 0 ? {} : o, S;
@@ -989,26 +990,26 @@ function _t(e) {
989
990
  t[3] === v ? w = t[4] : (w = v === void 0 ? {} : v, t[3] = v, t[4] = w);
990
991
  let T = w, E;
991
992
  t[5] === d ? E = t[6] : (E = d || {}, t[5] = d, t[6] = E);
992
- let { tableDel: D, tableEdit: O, tableDelTip: k, tableDetail: ee } = E, A = D === void 0 ? "删除" : D, te = O === void 0 ? "编辑" : O, j = k === void 0 ? "确认删除该项?" : k, ne = ee === void 0 ? "详情" : ee, { columns: M, CardItemRender: N, hasEdit: P, hasDel: F, hasDelTips: I, hasDetail: L } = x || {}, R = M === void 0 ? 3 : M, z = L !== void 0 && L, B = {
993
+ let { tableDel: D, tableEdit: O, tableDelTip: k, tableDetail: A } = E, ee = D === void 0 ? "删除" : D, j = O === void 0 ? "编辑" : O, te = k === void 0 ? "确认删除该项?" : k, M = A === void 0 ? "详情" : A, { columns: N, CardItemRender: P, hasEdit: F, hasDel: I, hasDelTips: L, hasDetail: R } = x || {}, z = N === void 0 ? 3 : N, B = R !== void 0 && R, V = {
993
994
  onEdit: p,
994
995
  onDel: m,
995
996
  onSearch: h,
996
997
  getList: _
997
- }, V;
998
- t[7] === e.schema ? V = t[8] : (V = () => {
999
- let t = Ie(e?.schema);
998
+ }, ne;
999
+ t[7] === e.schema ? ne = t[8] : (ne = () => {
1000
+ let t = Fe(e?.schema);
1000
1001
  a(t);
1001
- }, t[7] = e.schema, t[8] = V);
1002
- let H = e?.schema, re = e?.schema?.schema, U;
1003
- t[9] !== H || t[10] !== re ? (U = [H, re], t[9] = H, t[10] = re, t[11] = U) : U = t[11], r(V, U);
1002
+ }, t[7] = e.schema, t[8] = ne);
1003
+ let re = e?.schema, H = e?.schema?.schema, U;
1004
+ t[9] !== re || t[10] !== H ? (U = [re, H], t[9] = re, t[10] = H, t[11] = U) : U = t[11], r(ne, U);
1004
1005
  let ie = (t, n) => {
1005
1006
  let r = e.config?.colConf?._$actions || {}, i = {
1006
1007
  record: t,
1007
1008
  index: n,
1008
- ...B
1009
+ ...V
1009
1010
  };
1010
1011
  if (T?.tableActionsSlot) return /* @__PURE__ */ G(T.tableActionsSlot, { ...i });
1011
- let a = P && typeof P == "function" ? P(t, n) : P !== !1, o = z && typeof z == "function" ? z(t, n) : z !== !1, s = F && typeof F == "function" ? F(t, n) : F !== !1, l = I && typeof I == "function" ? I(t, n) : I || j;
1012
+ let a = F && typeof F == "function" ? F(t, n) : F !== !1, o = B && typeof B == "function" ? B(t, n) : B !== !1, s = I && typeof I == "function" ? I(t, n) : I !== !1, l = L && typeof L == "function" ? L(t, n) : L || te;
1012
1013
  return /* @__PURE__ */ K("div", {
1013
1014
  style: {
1014
1015
  width: r?.width,
@@ -1021,14 +1022,14 @@ function _t(e) {
1021
1022
  onClick: () => {
1022
1023
  e.onDetail && e.onDetail(t, n);
1023
1024
  },
1024
- children: ne
1025
+ children: M
1025
1026
  }) : null,
1026
1027
  a ? /* @__PURE__ */ G(c, {
1027
1028
  type: "link",
1028
1029
  onClick: () => {
1029
1030
  e.onEdit && e.onEdit(t, n);
1030
1031
  },
1031
- children: te
1032
+ children: j
1032
1033
  }) : null,
1033
1034
  T?.actionCenterSlot && /* @__PURE__ */ G(T.actionCenterSlot, { ...i }),
1034
1035
  s ? /* @__PURE__ */ G(g, {
@@ -1040,19 +1041,19 @@ function _t(e) {
1040
1041
  children: /* @__PURE__ */ G(c, {
1041
1042
  type: "link",
1042
1043
  danger: !0,
1043
- children: A
1044
+ children: ee
1044
1045
  })
1045
1046
  }) : null,
1046
1047
  T?.actionSuffixSlot && /* @__PURE__ */ G(T.actionSuffixSlot, { ...i })
1047
1048
  ]
1048
1049
  });
1049
- }, ae = (t) => {
1050
+ }, W = (t) => {
1050
1051
  let { item: n, index: r } = t;
1051
- return N ? /* @__PURE__ */ G(N, {
1052
+ return P ? /* @__PURE__ */ G(P, {
1052
1053
  item: n,
1053
1054
  index: r,
1054
- functionProps: B
1055
- }) : /* @__PURE__ */ G(be, {
1055
+ functionProps: V
1056
+ }) : /* @__PURE__ */ G(ye, {
1056
1057
  config: e.config,
1057
1058
  schema: i,
1058
1059
  bordered: !1,
@@ -1064,9 +1065,9 @@ function _t(e) {
1064
1065
  components: e.components,
1065
1066
  ...C
1066
1067
  });
1067
- }, W = b, oe = e.list?.length > 0 ? /* @__PURE__ */ G("div", {
1068
+ }, ae = b, J = e.list?.length > 0 ? /* @__PURE__ */ G("div", {
1068
1069
  className: "card-render-wrap",
1069
- style: { gridTemplateColumns: `repeat(${R}, 1fr` },
1070
+ style: { gridTemplateColumns: `repeat(${z}, 1fr` },
1070
1071
  children: e.list?.map((t, n) => /* @__PURE__ */ K("div", {
1071
1072
  className: "item-render-card",
1072
1073
  children: [e.hasAction === !1 ? null : /* @__PURE__ */ G("div", {
@@ -1074,25 +1075,25 @@ function _t(e) {
1074
1075
  children: ie(t, n)
1075
1076
  }), /* @__PURE__ */ G("div", {
1076
1077
  className: "item-render-card-content",
1077
- children: /* @__PURE__ */ G(ae, {
1078
+ children: /* @__PURE__ */ G(W, {
1078
1079
  item: t,
1079
1080
  index: n
1080
1081
  })
1081
1082
  })]
1082
1083
  }, t.id))
1083
- }) : /* @__PURE__ */ G(f, { image: f.PRESENTED_IMAGE_SIMPLE }), J;
1084
- return t[12] !== W || t[13] !== y || t[14] !== oe ? (J = /* @__PURE__ */ G(W, {
1084
+ }) : /* @__PURE__ */ G(f, { image: f.PRESENTED_IMAGE_SIMPLE }), oe;
1085
+ return t[12] !== ae || t[13] !== y || t[14] !== J ? (oe = /* @__PURE__ */ G(ae, {
1085
1086
  spinning: y,
1086
- children: oe
1087
- }), t[12] = W, t[13] = y, t[14] = oe, t[15] = J) : J = t[15], J;
1087
+ children: J
1088
+ }), t[12] = ae, t[13] = y, t[14] = J, t[15] = oe) : oe = t[15], oe;
1088
1089
  }
1089
1090
  //#endregion
1090
1091
  //#region src/FormModal/index.tsx
1091
- var vt = null;
1092
- function yt(e, t) {
1092
+ var _t = null;
1093
+ function vt(e, t) {
1093
1094
  let { modalMode: n, Slots: r = {}, modalConf: l = {}, modalProps: u = {} } = e, [f, p] = s(!1), [h, g] = s("新增"), [_, v] = s(!1), y = o(), b = o("create"), x = a(() => e.Slots?.FormSlot, [e.Slots?.FormSlot]);
1094
1095
  function S(t = e.formInitialValues, n, r = "create") {
1095
- b.current = r || "create", v(!0), y.current?.formRender?.setValues ? (y.current?.formRender?.setValues(t), vt = null) : vt = t, g(n || "新增");
1096
+ b.current = r || "create", v(!0), y.current?.formRender?.setValues ? (y.current?.formRender?.setValues(t), _t = null) : _t = t, g(n || "新增");
1096
1097
  }
1097
1098
  function C() {
1098
1099
  e.onClose && e.onClose(), v(!1), y.current?.formRender?.reset();
@@ -1150,10 +1151,10 @@ function yt(e, t) {
1150
1151
  loading: f,
1151
1152
  children: l.okText || "确 定"
1152
1153
  }, "confirm")), r.modalFooterSuffix && O.push(/* @__PURE__ */ G(r.modalFooterSuffix, { options: k }, "suffix")));
1153
- function ee() {
1154
- e.modalFormMount && e.modalFormMount(), vt &&= (y.current?.formRender?.setValues(vt), null);
1154
+ function A() {
1155
+ e.modalFormMount && e.modalFormMount(), _t &&= (y.current?.formRender?.setValues(_t), null);
1155
1156
  }
1156
- let A = n === "drawer" ? d : m, j = {
1157
+ let j = n === "drawer" ? d : m, te = {
1157
1158
  className: "form-modal",
1158
1159
  wrapClassName: "form-modal",
1159
1160
  title: h,
@@ -1168,14 +1169,14 @@ function yt(e, t) {
1168
1169
  destroyOnClose: !0,
1169
1170
  ...u
1170
1171
  };
1171
- return /* @__PURE__ */ K(A, {
1172
- ...j,
1172
+ return /* @__PURE__ */ K(j, {
1173
+ ...te,
1173
1174
  children: [x ? /* @__PURE__ */ G(x, {
1174
1175
  ...e,
1175
1176
  formRef: y,
1176
1177
  scenario: b.current,
1177
1178
  schema: e.schema
1178
- }) : /* @__PURE__ */ G(te, {
1179
+ }) : /* @__PURE__ */ G(ee, {
1179
1180
  ...e.formProps,
1180
1181
  ref: y,
1181
1182
  schema: e.schema,
@@ -1184,10 +1185,10 @@ function yt(e, t) {
1184
1185
  ...e.schemaScope || {}
1185
1186
  },
1186
1187
  components: e.components
1187
- }), /* @__PURE__ */ G(bt, { didMount: ee })]
1188
+ }), /* @__PURE__ */ G(yt, { didMount: A })]
1188
1189
  });
1189
1190
  }
1190
- function bt(e) {
1191
+ function yt(e) {
1191
1192
  let t = q(3), n;
1192
1193
  t[0] === e ? n = t[1] : (n = () => {
1193
1194
  e.didMount();
@@ -1195,8 +1196,8 @@ function bt(e) {
1195
1196
  let i;
1196
1197
  return t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = [], t[2] = i) : i = t[2], r(n, i), null;
1197
1198
  }
1198
- var xt = e(yt), St = null;
1199
- function Ct(e, t) {
1199
+ var bt = e(vt), xt = null;
1200
+ function St(e, t) {
1200
1201
  let { modalMode: n, Slots: r = {}, modalConf: a = {}, modalProps: l = {} } = e, [u, f] = s(!1), [p, h] = s({}), [g, _] = s("详情"), v = o();
1201
1202
  function y(t = e.formInitialValues, n) {
1202
1203
  f(!0), h(t), _(n || "详情");
@@ -1223,7 +1224,7 @@ function Ct(e, t) {
1223
1224
  children: a.okText || "关 闭"
1224
1225
  }, "confirm")), r.modalFooterSuffix && x.push(/* @__PURE__ */ G(r.modalFooterSuffix, { options: S }, "suffix")));
1225
1226
  function C() {
1226
- e.modalFormMount && e.modalFormMount(), St &&= (h(St), null);
1227
+ e.modalFormMount && e.modalFormMount(), xt &&= (h(xt), null);
1227
1228
  }
1228
1229
  let w = n === "drawer" ? d : m, T = {
1229
1230
  className: "detail-modal",
@@ -1241,7 +1242,7 @@ function Ct(e, t) {
1241
1242
  };
1242
1243
  return /* @__PURE__ */ K(w, {
1243
1244
  ...T,
1244
- children: [/* @__PURE__ */ G(be, {
1245
+ children: [/* @__PURE__ */ G(ye, {
1245
1246
  ...e.detailProps,
1246
1247
  components: e.components,
1247
1248
  schema: e.schema,
@@ -1250,10 +1251,10 @@ function Ct(e, t) {
1250
1251
  ...e.schemaScope || {}
1251
1252
  },
1252
1253
  data: p
1253
- }), /* @__PURE__ */ G(wt, { didMount: C })]
1254
+ }), /* @__PURE__ */ G(Ct, { didMount: C })]
1254
1255
  });
1255
1256
  }
1256
- function wt(e) {
1257
+ function Ct(e) {
1257
1258
  let t = q(3), n;
1258
1259
  t[0] === e ? n = t[1] : (n = () => {
1259
1260
  e.didMount();
@@ -1261,21 +1262,21 @@ function wt(e) {
1261
1262
  let i;
1262
1263
  return t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = [], t[2] = i) : i = t[2], r(n, i), null;
1263
1264
  }
1264
- var Tt = e(Ct);
1265
+ var wt = e(St);
1265
1266
  //#endregion
1266
1267
  //#region src/FilterTag/index.tsx
1267
- function Et(e) {
1268
+ function Tt(e) {
1268
1269
  return e != null;
1269
1270
  }
1270
- var Dt = (e) => {
1271
+ var Et = (e) => {
1271
1272
  let { searchQuery: t, schema: n, queryRef: i, onSearch: a } = e, [o, c] = s([]);
1272
1273
  r(() => {
1273
1274
  if (i) {
1274
1275
  let e = [], r = i.current?.formRef?.current?.formRender?.fields;
1275
1276
  for (let i in n?.schema?.properties) {
1276
1277
  let a = n?.schema?.properties[i];
1277
- if (Et(t[i])) {
1278
- let n = $({
1278
+ if (Tt(t[i])) {
1279
+ let n = be({
1279
1280
  ...a,
1280
1281
  ...r[a?.name]
1281
1282
  }, t, { fieldSchema: r?.[a?.name] });
@@ -1312,7 +1313,7 @@ var Dt = (e) => {
1312
1313
  ]
1313
1314
  }))
1314
1315
  });
1315
- }, Ot = {
1316
+ }, Dt = {
1316
1317
  default: [
1317
1318
  10,
1318
1319
  20,
@@ -1325,38 +1326,38 @@ var Dt = (e) => {
1325
1326
  54,
1326
1327
  99
1327
1328
  ]
1328
- }, kt = e(function(e, t) {
1329
- let { layout: n = "default", idKey: a = "id", i18n: l, queryFormIsExtendModelQuery: u = !1, queryFormInitialValues: d = {}, dialogConf: f = {}, modalConf: p = {}, isPatchUpdate: m = !1, modalMode: h = "dialog", useFormData: g, appendUrlQuery: _ = !1, appendUrlQueryKey: v = xe, hasFilterTag: y = !1 } = e, { isAllSelect: b = !1, isAllSelectKey: x = "isAllSelect" } = e.paginationConf || {}, S = e.paginationConf?.pageSizeOptions || Ot[e.layout] || [
1329
+ }, Ot = e(function(e, t) {
1330
+ let { layout: n = "default", idKey: a = "id", i18n: l, queryFormIsExtendModelQuery: u = !1, queryFormInitialValues: d = {}, dialogConf: f = {}, modalConf: p = {}, isPatchUpdate: m = !1, modalMode: h = "dialog", useFormData: g, appendUrlQuery: _ = !1, appendUrlQueryKey: v = $, hasFilterTag: y = !1 } = e, { isAllSelect: b = !1, isAllSelectKey: x = "isAllSelect" } = e.paginationConf || {}, S = e.paginationConf?.pageSizeOptions || Dt[e.layout] || [
1330
1331
  10,
1331
1332
  20,
1332
1333
  50,
1333
1334
  100
1334
- ], { createText: C = e.createText } = l || {}, [D, A] = s(0), [te, j] = s([]), [ne, M] = s(""), [N, P] = s(!1), F = o(), I = o(), L = o(), R = o({ ...d || {} }), z = o({
1335
+ ], { createText: C = e.createText } = l || {}, [D, A] = s(0), [ee, j] = s([]), [te, M] = s(""), [N, P] = s(!1), F = o(), I = o(), L = o(), R = o({ ...d || {} }), z = o({
1335
1336
  pageNum: 1,
1336
1337
  pageSize: S[0]
1337
- }), B = g ?? f.useFormData ?? p?.useFormData, V = o(), [H, re] = s(!0), U = o({}), [ie, ae] = s({});
1338
+ }), B = g ?? f.useFormData ?? p?.useFormData, V = o(), [ne, re] = s(!0), H = o({}), [U, ie] = s({});
1338
1339
  i(t, () => ({
1339
1340
  getList: X,
1340
1341
  onSearch: Z,
1341
- onQueryFormSubmit: le,
1342
- forceUpdate: de,
1342
+ onQueryFormSubmit: ce,
1343
+ forceUpdate: ue,
1343
1344
  formModalRef: F,
1344
1345
  formDialogRef: F,
1345
1346
  queryRef: L,
1346
- onCreate: fe,
1347
- onEdit: ge,
1348
- onDel: ye,
1349
- tableRef: U
1347
+ onCreate: de,
1348
+ onEdit: he,
1349
+ onDel: ve,
1350
+ tableRef: H
1350
1351
  }));
1351
- let { schema: W = {}, config: oe = {}, model: q = {}, msgConf: J = {}, filters: se } = e;
1352
+ let { schema: W = {}, config: ae = {}, model: q = {}, msgConf: J = {}, filters: oe } = e;
1352
1353
  r(() => {
1353
- let t = _ ? $e(v) : {};
1354
+ let t = _ ? Qe(v) : {};
1354
1355
  q && (q.query ? (q.query.pageNum = 1, z.current = {
1355
1356
  pageNum: t?.pageNum || q?.query?.pageNum || z.current?.pageNum,
1356
1357
  pageSize: t?.pageSize || q?.query?.pageSize || z.current?.pageSize
1357
1358
  }) : q.query = {}), Promise.resolve().then(() => {
1358
1359
  if (L.current && L.current?.formRef?.current?.formRender && _) {
1359
- let e = at(se, W, t);
1360
+ let e = it(oe, W, t);
1360
1361
  L.current.formRef.current.formRender?.setValues(e), R.current = T.cloneDeep(L.current.formRef.current.formRender?.values);
1361
1362
  }
1362
1363
  !e.closeAutoRequest && X({});
@@ -1395,22 +1396,22 @@ var Dt = (e) => {
1395
1396
  n.$timerange !== void 0 && delete n.$timerange, V.current?.cancel({
1396
1397
  code: 601,
1397
1398
  message: "取消上一次请求"
1398
- }), V.current = k();
1399
+ }), V.current = O.getCancelTokenSource();
1399
1400
  let r = E(n);
1400
1401
  return b && r.pageSize === Infinity && (r[x] = !0, r.pageSize = void 0), q?.getList(r, {}, { cancelToken: V.current?.token }).then((t) => {
1401
1402
  V.current = null, j(t.list), A(t.pagination?.total), e.onGetListEnd && e.onGetListEnd(t), P(!1);
1402
1403
  }).catch((e) => {
1403
- let t = ee || O.isCancel;
1404
+ let t = O.isCancel || k.isCancel;
1404
1405
  return typeof t == "function" && t(e) ? (console.info("请求已取消:", "", e.message), Promise.reject(e)) : (Y(e?._message), P(!1), Promise.reject(e));
1405
1406
  });
1406
1407
  });
1407
1408
  }
1408
- function ce(e, t) {
1409
+ function se(e, t) {
1409
1410
  q && !q.query && (q.query = {}), z.current = {
1410
1411
  pageNum: e,
1411
1412
  pageSize: t
1412
- }, _ && Ze({
1413
- ...$e(v),
1413
+ }, _ && Xe({
1414
+ ...Qe(v),
1414
1415
  ...z.current
1415
1416
  }, v), X();
1416
1417
  }
@@ -1424,90 +1425,90 @@ var Dt = (e) => {
1424
1425
  ...e
1425
1426
  }), X(e);
1426
1427
  }
1427
- function le(e, t) {
1428
- return ae(e), _ && (t ? Qe(v, "", !0) : Ze(e, v)), R.current = e, Z(e);
1428
+ function ce(e, t) {
1429
+ return ie(e), _ && (t ? Ze(v, "", !0) : Xe(e, v)), R.current = e, Z(e);
1429
1430
  }
1430
- function ue(e, t) {
1431
+ function le(e, t) {
1431
1432
  if (_) try {
1432
1433
  let { componentType: t, value: n, path: r } = e;
1433
- if (Se.includes(t) && (n === "" || n?.length === 0 || n === void 0)) {
1434
+ if (xe.includes(t) && (n === "" || n?.length === 0 || n === void 0)) {
1434
1435
  let e = r.entire;
1435
- e && Qe(v, e);
1436
+ e && Ze(v, e);
1436
1437
  }
1437
1438
  } catch (e) {
1438
1439
  console.error("url参数清除失败", e);
1439
1440
  }
1440
1441
  }
1441
- function de() {
1442
+ function ue() {
1442
1443
  j((e) => T.cloneDeep(e));
1443
1444
  }
1444
- function fe() {
1445
+ function de() {
1445
1446
  M("create");
1446
1447
  let t = e.formInitialValues?.[p?.title?.createKey] || p?.title?.createText || "新增";
1447
1448
  F.current.show(e.formInitialValues, t);
1448
1449
  }
1449
- async function pe(t) {
1450
+ async function fe(t) {
1450
1451
  let n = t;
1451
- return typeof q?.createMap == "function" && (n = await q.createMap(t)), B && (n = Ne(n)), q?.create(n).then((t) => {
1452
+ return typeof q?.createMap == "function" && (n = await q.createMap(t)), B && (n = Me(n)), q?.create(n).then((t) => {
1452
1453
  X(), w.success(t._message || "新增成功"), e.onCreateSuc && e.onCreateSuc(t);
1453
1454
  }).catch((e) => (console.error("err", e), Y(e._message), Promise.reject(e)));
1454
1455
  }
1455
- function me(t, n) {
1456
+ function pe(t, n) {
1456
1457
  if (e.fetchOnEdit !== !1) {
1457
1458
  let n = {};
1458
1459
  e.fetchById === !1 ? n[a] = t[a] : n.id = t[a], q.get(n).then((e) => {
1459
- he(e, t[a]);
1460
+ me(e, t[a]);
1460
1461
  }).catch((e) => (console.error("err", e), Y(e._message), Promise.reject(e)));
1461
- } else he(t, t[a]);
1462
+ } else me(t, t[a]);
1462
1463
  }
1463
- function he(e, t) {
1464
+ function me(e, t) {
1464
1465
  let n = e[p?.title?.detailKey] || p?.title?.detailText || "详情";
1465
1466
  I.current.show(e, n);
1466
1467
  }
1467
- function ge(t, n) {
1468
+ function he(t, n) {
1468
1469
  if (M("edit"), e.fetchOnEdit !== !1) {
1469
1470
  let n = {};
1470
- return e.fetchById === !1 ? n[a] = t[a] : n.id = t[a], q.get(n).then((e) => (_e(e, t[a]), e)).catch((e) => (console.error("err", e), Y(e._message), Promise.reject(e)));
1471
+ return e.fetchById === !1 ? n[a] = t[a] : n.id = t[a], q.get(n).then((e) => (ge(e, t[a]), e)).catch((e) => (console.error("err", e), Y(e._message), Promise.reject(e)));
1471
1472
  }
1472
- return _e(t, t[a]), Promise.resolve(t);
1473
+ return ge(t, t[a]), Promise.resolve(t);
1473
1474
  }
1474
- function _e(t, n) {
1475
+ function ge(t, n) {
1475
1476
  let { editMode: r = "modal" } = e;
1476
- if (r == "line") return U.current.onEditByTable(t, n);
1477
+ if (r == "line") return H.current.onEditByTable(t, n);
1477
1478
  if (r === "modal") {
1478
1479
  let e = t[p?.title?.editKey] || p?.title?.editText || "编辑";
1479
1480
  F.current.show(t, e, "edit");
1480
1481
  }
1481
1482
  }
1482
- async function ve(t, n) {
1483
+ async function _e(t, n) {
1483
1484
  let r = t;
1484
- return m ? typeof q?.patchMap == "function" && (r = await q.patchMap(t, n)) : typeof q?.updateMap == "function" && (r = await q.updateMap(t, n)), e.onEditReqVerify && await e.onEditReqVerify(r), B && (r = Ne(r)), (m ? q?.patch : q?.update).bind(q)(r, { id: t[a] }).then((t) => {
1485
+ return m ? typeof q?.patchMap == "function" && (r = await q.patchMap(t, n)) : typeof q?.updateMap == "function" && (r = await q.updateMap(t, n)), e.onEditReqVerify && await e.onEditReqVerify(r), B && (r = Me(r)), (m ? q?.patch : q?.update).bind(q)(r, { id: t[a] }).then((t) => {
1485
1486
  X(), w.success(t?._message || "编辑成功"), e.onEditSuc && e.onEditSuc(t);
1486
1487
  }).catch((e) => (console.error("err", e), Y(e._message), Promise.reject(e)));
1487
1488
  }
1488
- function ye(t, n) {
1489
+ function ve(t, n) {
1489
1490
  return q?.delete({ id: t[a] }).then((t) => {
1490
1491
  w.success(t._message || "删除成功"), e.onDelSuc && e.onDelSuc(t), X();
1491
1492
  }).catch((e) => (Y(e._message), Promise.reject(e)));
1492
1493
  }
1493
- let { Slots: Q = {} } = e, be = {
1494
+ let { Slots: Q = {} } = e, ye = {
1494
1495
  ...e.dialogConf,
1495
1496
  ...p
1496
- }, $ = {
1497
+ }, be = {
1497
1498
  ...e.dialogFormProps,
1498
1499
  ...e.modalFormProps
1499
- }, Ce = e.onFormDialogClose ?? e.onFormModalClose, we = {
1500
+ }, Se = e.onFormDialogClose ?? e.onFormModalClose, Ce = {
1500
1501
  ...e.dialogProps,
1501
1502
  ...e.modalProps
1502
- }, Te = e.dialogFormMount ?? e.modalFormMount, Ee = () => {
1503
- re(!H);
1503
+ }, we = e.dialogFormMount ?? e.modalFormMount, Te = () => {
1504
+ re(!ne);
1504
1505
  };
1505
1506
  return /* @__PURE__ */ K("div", {
1506
1507
  className: `list-render ${e.className}`,
1507
1508
  children: [
1508
1509
  /* @__PURE__ */ K("div", {
1509
1510
  className: `list-header ${e.verticalHeader ? "vertical-header" : ""}`,
1510
- children: [e.hasQuery !== !1 && H ? /* @__PURE__ */ G(st, {
1511
+ children: [e.hasQuery !== !1 && ne ? /* @__PURE__ */ G(ot, {
1511
1512
  ref: L,
1512
1513
  schema: W,
1513
1514
  search: e.search,
@@ -1517,28 +1518,28 @@ var Dt = (e) => {
1517
1518
  ...d,
1518
1519
  ...u ? q.query : {}
1519
1520
  },
1520
- onSearch: le,
1521
- onReset: le,
1521
+ onSearch: ce,
1522
+ onReset: ce,
1522
1523
  schemaScope: e.schemaScope,
1523
1524
  components: e.components,
1524
- onFieldValueChange: ue,
1525
+ onFieldValueChange: le,
1525
1526
  i18n: l
1526
1527
  }) : /* @__PURE__ */ G("div", { className: "query-render" }), /* @__PURE__ */ K("div", {
1527
1528
  className: "header-actions-render",
1528
1529
  children: [
1529
1530
  Q.headerActionPrefix && /* @__PURE__ */ G(Q.headerActionPrefix, {
1530
- onCreate: fe,
1531
+ onCreate: de,
1531
1532
  onSearch: Z,
1532
1533
  getList: X,
1533
1534
  i18n: l
1534
1535
  }),
1535
1536
  e.hasCreate === !1 ? null : /* @__PURE__ */ G(c, {
1536
- onClick: fe,
1537
+ onClick: de,
1537
1538
  type: "primary",
1538
1539
  children: C || "新增"
1539
1540
  }),
1540
1541
  Q.headerActionSuffix && /* @__PURE__ */ G(Q.headerActionSuffix, {
1541
- onCreate: fe,
1542
+ onCreate: de,
1542
1543
  onSearch: Z,
1543
1544
  getList: X,
1544
1545
  i18n: l
@@ -1546,8 +1547,8 @@ var Dt = (e) => {
1546
1547
  ]
1547
1548
  })]
1548
1549
  }),
1549
- y && /* @__PURE__ */ G(Dt, {
1550
- searchQuery: ie,
1550
+ y && /* @__PURE__ */ G(Et, {
1551
+ searchQuery: U,
1551
1552
  schema: W,
1552
1553
  queryRef: L,
1553
1554
  onSearch: Z
@@ -1556,18 +1557,18 @@ var Dt = (e) => {
1556
1557
  onSearch: Z,
1557
1558
  getList: X
1558
1559
  }),
1559
- n === "card" ? /* @__PURE__ */ G(_t, {
1560
+ n === "card" ? /* @__PURE__ */ G(gt, {
1560
1561
  idKey: a,
1561
1562
  schema: W,
1562
- list: te,
1563
+ list: ee,
1563
1564
  config: e.cardConf,
1564
1565
  cardProps: e.cardProps,
1565
1566
  hasAction: e.hasAction,
1566
1567
  query: q?.query,
1567
1568
  Slots: e.Slots,
1568
- onEdit: ge,
1569
- onDel: ye,
1570
- onDetail: me,
1569
+ onEdit: he,
1570
+ onDel: ve,
1571
+ onDetail: pe,
1571
1572
  onSearch: Z,
1572
1573
  getList: X,
1573
1574
  loading: N,
@@ -1575,11 +1576,11 @@ var Dt = (e) => {
1575
1576
  schemaScope: e.schemaScope,
1576
1577
  i18n: l
1577
1578
  }) : null,
1578
- n === "default" ? /* @__PURE__ */ G(gt, {
1579
+ n === "default" ? /* @__PURE__ */ G(ht, {
1579
1580
  idKey: a,
1580
- ref: U,
1581
+ ref: H,
1581
1582
  schema: W?.schema,
1582
- list: te,
1583
+ list: ee,
1583
1584
  config: e.tableConf,
1584
1585
  hasAction: e.hasAction,
1585
1586
  query: {
@@ -1587,13 +1588,13 @@ var Dt = (e) => {
1587
1588
  ...z.current
1588
1589
  },
1589
1590
  Slots: e.Slots,
1590
- onEdit: ge,
1591
- onDel: ye,
1591
+ onEdit: he,
1592
+ onDel: ve,
1592
1593
  setList: j,
1593
- onDetail: me,
1594
+ onDetail: pe,
1594
1595
  onSearch: Z,
1595
1596
  getList: X,
1596
- setShowSearch: Ee,
1597
+ setShowSearch: Te,
1597
1598
  loading: N,
1598
1599
  tableProps: e.tableProps,
1599
1600
  getFieldListOpt: {
@@ -1603,13 +1604,13 @@ var Dt = (e) => {
1603
1604
  components: e.components,
1604
1605
  schemaScope: e.schemaScope,
1605
1606
  i18n: l,
1606
- onEditSubmit: ve,
1607
+ onEditSubmit: _e,
1607
1608
  topProps: e,
1608
1609
  cellEditTableProps: e?.cellEditTableProps
1609
1610
  }) : null,
1610
- e.hasPagination === !1 ? null : /* @__PURE__ */ G(ct, {
1611
+ e.hasPagination === !1 ? null : /* @__PURE__ */ G(st, {
1611
1612
  layout: n,
1612
- onChange: ce,
1613
+ onChange: se,
1613
1614
  total: D,
1614
1615
  query: {
1615
1616
  ...q?.query,
@@ -1619,23 +1620,23 @@ var Dt = (e) => {
1619
1620
  pageSizeOptions: S,
1620
1621
  i18n: l
1621
1622
  }),
1622
- /* @__PURE__ */ G(xt, {
1623
+ /* @__PURE__ */ G(bt, {
1623
1624
  ref: F,
1624
1625
  schema: W,
1625
1626
  formInitialValues: e.formInitialValues,
1626
1627
  components: e.components,
1627
1628
  schemaScope: e.schemaScope,
1628
- formProps: $,
1629
+ formProps: be,
1629
1630
  modalMode: h,
1630
- modalConf: be,
1631
- onClose: Ce,
1632
- onSubmit: ne === "edit" ? ve : pe,
1631
+ modalConf: ye,
1632
+ onClose: Se,
1633
+ onSubmit: te === "edit" ? _e : fe,
1633
1634
  Slots: e.Slots,
1634
- modalProps: we,
1635
- modalFormMount: Te,
1635
+ modalProps: Ce,
1636
+ modalFormMount: we,
1636
1637
  i18n: l
1637
1638
  }),
1638
- /* @__PURE__ */ G(Tt, {
1639
+ /* @__PURE__ */ G(wt, {
1639
1640
  ref: I,
1640
1641
  schema: W,
1641
1642
  formInitialValues: e.formInitialValues,
@@ -1643,18 +1644,18 @@ var Dt = (e) => {
1643
1644
  schemaScope: e.schemaScope,
1644
1645
  detailProps: e.dialogDetailProps || e.modalDetailProps,
1645
1646
  modalMode: h,
1646
- modalConf: be,
1647
- onClose: Ce,
1647
+ modalConf: ye,
1648
+ onClose: Se,
1648
1649
  Slots: e.Slots,
1649
- modalProps: we,
1650
- modalFormMount: Te
1650
+ modalProps: Ce,
1651
+ modalFormMount: we
1651
1652
  })
1652
1653
  ]
1653
1654
  });
1654
1655
  });
1655
- kt.defaultProps = { model: { query: {} } };
1656
+ Ot.defaultProps = { model: { query: {} } };
1656
1657
  //#endregion
1657
1658
  //#region src/index.js
1658
- var At = kt;
1659
+ var kt = Ot;
1659
1660
  //#endregion
1660
- export { At as default };
1661
+ export { kt as default };