@shaonq/vue 1.1.11 → 1.1.12

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 (3) hide show
  1. package/lib/index.d.ts +127 -120
  2. package/lib/index.js +1336 -1325
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1,56 +1,56 @@
1
- import uo from "vxe-table";
1
+ import ao from "vxe-table";
2
2
  import "vxe-table/lib/style.css";
3
- import { ref as q, inject as St, defineComponent as U, computed as M, shallowRef as rt, watch as ne, onUnmounted as Dt, resolveComponent as g, openBlock as r, createElementBlock as B, createBlock as y, withCtx as p, renderSlot as le, createElementVNode as R, toDisplayString as J, createVNode as f, createTextVNode as te, unref as b, createCommentVNode as N, mergeProps as I, Fragment as Q, renderList as de, createSlots as ao, isVNode as yt, resolveDynamicComponent as be, normalizeStyle as oe, reactive as zt, provide as Pt, toRefs as Ce, nextTick as io, normalizeProps as xe, guardReactiveProps as ct, isRef as Vt, normalizeClass as Be, withModifiers as Ke, toRef as ot, Transition as so, onMounted as dt, Teleport as ro } from "vue";
4
- import Qe from "xe-utils";
5
- import ze from "vuedraggable";
6
- import { Message as jt, Modal as co } from "@arco-design/web-vue";
3
+ import { ref as K, inject as St, defineComponent as N, computed as M, shallowRef as ct, watch as le, onUnmounted as Dt, resolveComponent as m, openBlock as i, createElementBlock as k, createBlock as w, withCtx as p, renderSlot as oe, createElementVNode as R, toDisplayString as J, createVNode as f, createTextVNode as te, unref as y, createCommentVNode as U, mergeProps as I, Fragment as Q, renderList as de, createSlots as zt, isVNode as yt, resolveDynamicComponent as ge, normalizeStyle as ne, reactive as Vt, provide as Pt, toRefs as Ae, nextTick as io, normalizeProps as we, guardReactiveProps as Le, isRef as jt, normalizeClass as Be, withModifiers as Ke, toRef as nt, Transition as so, onMounted as dt, Teleport as ro } from "vue";
4
+ import Je from "xe-utils";
5
+ import De from "vuedraggable";
6
+ import { Message as Rt, Modal as co, Button as po } from "@arco-design/web-vue";
7
7
  import ht from "html2pdf.js";
8
- import po from "bwip-js";
9
- import { useI18n as fo } from "vue-i18n";
10
- import mo from "quill";
8
+ import fo from "bwip-js";
9
+ import { useI18n as mo } from "vue-i18n";
10
+ import go from "quill";
11
11
  import "quill/dist/quill.core.css";
12
12
  import "quill/dist/quill.snow.css";
13
13
  import "@arco-design/web-vue/es/form/context";
14
- function ve(e) {
14
+ function be(e) {
15
15
  return typeof e == "function";
16
16
  }
17
17
  function ke(e, o) {
18
18
  var n;
19
- const a = (n = e[o.dataIndex]) != null ? n : "";
20
- return o.format && ve(o.format) ? o.format(a, e) : a;
19
+ const u = (n = e[o.dataIndex]) != null ? n : "";
20
+ return o.format && be(o.format) ? o.format(u, e) : u;
21
21
  }
22
- function Je(e, o) {
23
- return ve(o.style) ? o.style(e) : { ...o.style };
22
+ function Xe(e, o) {
23
+ return be(o.style) ? o.style(e) : { ...o.style };
24
24
  }
25
- function nt(e) {
25
+ function lt(e) {
26
26
  return (e == null ? void 0 : e.rowKey) || "_X_ROW_KEY";
27
27
  }
28
- function go(e, o) {
29
- return { disabledList: q({
28
+ function _o(e, o) {
29
+ return { disabledList: K({
30
30
  highlight: !0,
31
31
  reserve: e.option.reserve,
32
32
  checkMethod: ({ row: t }) => !t.disabled
33
- }), selectChangeEvent: ({ $table: t, checked: s, row: u }) => {
34
- const { option: d } = e, { fullData: i } = t.getTableData();
35
- if (u && d.checkboxKey) {
36
- const C = d.checkboxKey, v = i.filter((h) => h[C] && h[C] === u[C]);
33
+ }), selectChangeEvent: ({ $table: t, checked: s, row: a }) => {
34
+ const { option: c } = e, { fullData: r } = t.getTableData();
35
+ if (a && c.checkboxKey) {
36
+ const b = c.checkboxKey, v = r.filter((h) => h[b] && h[b] === a[b]);
37
37
  v.length && t.setCheckboxRow(v, s);
38
38
  }
39
- const c = t.getCheckboxRecords().concat(t.getCheckboxReserveRecords()), m = nt(e.option);
40
- m && o(
39
+ const d = t.getCheckboxRecords().concat(t.getCheckboxReserveRecords()), g = lt(e.option);
40
+ g && o(
41
41
  "update:selectedKeys",
42
- c.map((C) => C[m])
42
+ d.map((b) => b[g])
43
43
  );
44
44
  }, radioChangeEvent: ({ row: t }) => {
45
- const s = [t], u = nt(e.option);
46
- u && o(
45
+ const s = [t], a = lt(e.option);
46
+ a && o(
47
47
  "update:selectedKeys",
48
- s.map((d) => d[u])
48
+ s.map((c) => c[a])
49
49
  );
50
50
  } };
51
51
  }
52
- const H = q(/* @__PURE__ */ Object.create({}));
53
- function Rt(e) {
52
+ const H = K(/* @__PURE__ */ Object.create({}));
53
+ function Tt(e) {
54
54
  const o = {
55
55
  ...e,
56
56
  ref: (n) => {
@@ -62,7 +62,7 @@ function Rt(e) {
62
62
  $grid: H,
63
63
  $gridTwo: {
64
64
  getRowKey() {
65
- return nt(e);
65
+ return lt(e);
66
66
  },
67
67
  getRowIndex(n) {
68
68
  return H.value.getRowIndex(n);
@@ -99,11 +99,11 @@ function Rt(e) {
99
99
  H.value && (o.selectedType === "checkbox" && (e.reserve && H.value.clearCheckboxReserve(), H.value.clearCheckboxRow()), o.selectedType === "radio" && (e.reserve && H.value.clearRadioReserve(), H.value.clearRadioRow()));
100
100
  },
101
101
  insertRow(n, l, t = !0) {
102
- var d;
102
+ var c;
103
103
  const s = this.getRowKey();
104
104
  if (l && typeof l == "object" && t) {
105
- const i = H.value.getRowIndex(l);
106
- i >= 0 && (l = (d = this.getTableData()[i + 1]) != null ? d : -1);
105
+ const r = H.value.getRowIndex(l);
106
+ r >= 0 && (l = (c = this.getTableData()[r + 1]) != null ? c : -1);
107
107
  }
108
108
  return n[s] && delete n[s], H.value.insertAt(n, l);
109
109
  },
@@ -121,9 +121,9 @@ function Rt(e) {
121
121
  let l = "";
122
122
  const t = await H.value.validate(n);
123
123
  return t && Object.values(t).forEach((s) => {
124
- s.forEach(({ rowIndex: u, column: d, rules: i }) => {
125
- i.forEach((c) => {
126
- l = `\u5E8F\u53F7${u + 1} ${d.title} ${c.message}`;
124
+ s.forEach(({ rowIndex: a, column: c, rules: r }) => {
125
+ r.forEach((d) => {
126
+ l = `\u5E8F\u53F7${a + 1} ${c.title} ${d.message}`;
127
127
  });
128
128
  });
129
129
  }), [l, n];
@@ -131,34 +131,34 @@ function Rt(e) {
131
131
  }
132
132
  };
133
133
  }
134
- const Tt = Symbol("OrcConfigProvider");
135
- function _o() {
136
- return St(Tt, {
134
+ const Wt = Symbol("OrcConfigProvider");
135
+ function vo() {
136
+ return St(Wt, {
137
137
  useErrData: void 0
138
138
  });
139
139
  }
140
- const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)", "font-weight": "500" } }, yo = { class: "u-card orc-table__setting" }, ho = {
140
+ const bo = { class: "orc-table" }, yo = { style: { color: "var(--color-text-1)", "font-weight": "500" } }, ho = { class: "u-card orc-table__setting" }, wo = {
141
141
  class: "u-card__hd",
142
142
  style: { height: "auto", padding: "4px 12px", "line-height": "28px" }
143
- }, wo = /* @__PURE__ */ R("span", { style: { "font-size": "14px" } }, "\u8BBE\u7F6E", -1), Co = {
143
+ }, Co = /* @__PURE__ */ R("span", { style: { "font-size": "14px" } }, "\u8BBE\u7F6E", -1), Ao = {
144
144
  class: "u-card__floor",
145
145
  style: { padding: "0" }
146
- }, Ao = { class: "orc-table__draggable" }, Eo = { class: "orc-table__draggable-item" }, xo = {
146
+ }, Eo = { class: "orc-table__draggable" }, xo = { class: "orc-table__draggable-item" }, Fo = {
147
147
  key: 0,
148
148
  class: "u-flex"
149
- }, Fo = ["title"], ko = { style: { padding: "0 0.75em" } }, Bo = {
149
+ }, ko = ["title"], Bo = { style: { padding: "0 0.75em" } }, $o = {
150
150
  key: 1,
151
151
  class: "orc-table__draggable-moving"
152
- }, $o = {
152
+ }, Oo = {
153
153
  class: "u-card__floor u-flex",
154
154
  style: { padding: "6px 12px" }
155
- }, Oo = {
155
+ }, So = {
156
156
  key: 0,
157
157
  class: "orc-table__light-text"
158
- }, So = {
158
+ }, Do = {
159
159
  key: 1,
160
160
  class: "orc-table__pagination"
161
- }, Do = { class: "u-flex u-flex--start" }, zo = { class: "u-flex__item" }, Po = { style: { width: "500px" } }, Vo = /* @__PURE__ */ U({
161
+ }, zo = { class: "u-flex u-flex--start" }, Vo = { class: "u-flex__item" }, Po = { style: { width: "500px" } }, jo = /* @__PURE__ */ N({
162
162
  __name: "table",
163
163
  props: {
164
164
  title: String,
@@ -178,179 +178,179 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
178
178
  hook: Object
179
179
  },
180
180
  emits: ["update:selectedKeys", "cellClick", "onReset", "change", "confirm"],
181
- setup(e, { expose: o, emit: a }) {
181
+ setup(e, { expose: o, emit: u }) {
182
182
  var $e;
183
- const n = _o(), l = M(() => n.useErrData), t = e, s = a;
184
- function u(x, D) {
185
- return (K) => {
186
- typeof K == "object" ? Object.keys(K).forEach((W) => {
187
- x[W] = K[W];
188
- }) : x[D] = K;
183
+ const n = vo(), l = M(() => n.useErrData), t = e, s = u;
184
+ function a(F, D) {
185
+ return (q) => {
186
+ typeof q == "object" ? Object.keys(q).forEach((W) => {
187
+ F[W] = q[W];
188
+ }) : F[D] = q;
189
189
  };
190
190
  }
191
- const d = M(() => {
192
- var x, D;
193
- return (D = (x = t.option) == null ? void 0 : x.pageSize) != null ? D : 50;
194
- }), i = M(() => {
195
- var x, D;
196
- return (D = (x = t.option) == null ? void 0 : x.pageSizeOptions) != null ? D : [10, 20, 50, 100, 200];
197
- }), c = q({ page: 1, size: d.value }), { disabledList: m, selectChangeEvent: C, radioChangeEvent: v } = go(t, s), { $grid: h, $gridTwo: F } = Rt(t.option);
198
- function O(x) {
199
- s("cellClick", x);
191
+ const c = M(() => {
192
+ var F, D;
193
+ return (D = (F = t.option) == null ? void 0 : F.pageSize) != null ? D : 50;
194
+ }), r = M(() => {
195
+ var F, D;
196
+ return (D = (F = t.option) == null ? void 0 : F.pageSizeOptions) != null ? D : [10, 20, 50, 100, 200];
197
+ }), d = K({ page: 1, size: c.value }), { disabledList: g, selectChangeEvent: b, radioChangeEvent: v } = _o(t, s), { $grid: h, $gridTwo: x } = Tt(t.option);
198
+ function B(F) {
199
+ s("cellClick", F);
200
200
  }
201
- function w(x, D, K) {
202
- var ce, _e;
203
- const W = (ce = x[D]) != null ? ce : {}, Z = (_e = x[D - 1]) != null ? _e : {};
204
- return ["string", "number"].includes(typeof W[K]) ? t.option.skinRow && typeof t.option.skinRow == "string" ? W[t.option.skinRow] === Z[t.option.skinRow] && W[K] === Z[K] : W[K] === Z[K] : !1;
201
+ function C(F, D, q) {
202
+ var ce, ve;
203
+ const W = (ce = F[D]) != null ? ce : {}, Z = (ve = F[D - 1]) != null ? ve : {};
204
+ return ["string", "number"].includes(typeof W[q]) ? t.option.skinRow && typeof t.option.skinRow == "string" ? W[t.option.skinRow] === Z[t.option.skinRow] && W[q] === Z[q] : W[q] === Z[q] : !1;
205
205
  }
206
- function A(x, D, K) {
206
+ function E(F, D, q) {
207
207
  let W = {};
208
208
  try {
209
- W = D > 0 && !w(x, D, K) && t.option.skinRow && x[D][String(t.option.skinRow)] === x[D - 1][String(t.option.skinRow)] ? t.option.skinRowStyle : {};
209
+ W = D > 0 && !C(F, D, q) && t.option.skinRow && F[D][String(t.option.skinRow)] === F[D - 1][String(t.option.skinRow)] ? t.option.skinRowStyle : {};
210
210
  } catch {
211
211
  }
212
212
  return W;
213
213
  }
214
- const S = q([]);
215
- function $() {
216
- const x = [...t.option.columns], D = t.option.resolveColumns && ve(t.option.resolveColumns) ? t.option.resolveColumns(x) : x;
214
+ const S = K([]);
215
+ function O() {
216
+ const F = [...t.option.columns], D = t.option.resolveColumns && be(t.option.resolveColumns) ? t.option.resolveColumns(F) : F;
217
217
  return Object.assign([], D).filter((W) => Boolean(W)).map((W) => {
218
218
  var Z;
219
219
  return W.show = (Z = W.show) != null ? Z : !0, W.tooltip && (W.ellipsis = !0), W;
220
220
  });
221
221
  }
222
- const k = M(() => {
223
- const x = $(), D = Object.assign([], S.value);
222
+ const $ = M(() => {
223
+ const F = O(), D = Object.assign([], S.value);
224
224
  return [
225
225
  ...new Set(
226
- [...D].map((W) => W.dataIndex).filter((W) => x.find((Z) => Z.dataIndex === W)).concat([...x].map((W) => W.dataIndex)).filter((W) => !!W)
226
+ [...D].map((W) => W.dataIndex).filter((W) => F.find((Z) => Z.dataIndex === W)).concat([...F].map((W) => W.dataIndex)).filter((W) => !!W)
227
227
  )
228
228
  ].map((W) => {
229
- var _e;
230
- const Z = x.find((Ae) => Ae.dataIndex === W), ce = (_e = D.find((Ae) => Ae.dataIndex === W)) != null ? _e : /* @__PURE__ */ Object.create({});
229
+ var ve;
230
+ const Z = F.find((Ee) => Ee.dataIndex === W), ce = (ve = D.find((Ee) => Ee.dataIndex === W)) != null ? ve : /* @__PURE__ */ Object.create({});
231
231
  return { ...Z, ...ce };
232
232
  });
233
- }), P = M(() => t.option.resolvePage && ve(t.option.resolvePage) ? t.option.resolvePage(c.value) : t.option.resolvePage), j = M(() => Boolean(t.option.url)), T = q(!1), Y = q(!1), ie = q(0), L = rt(($e = t.data) != null ? $e : []), ue = new AbortController();
233
+ }), V = M(() => t.option.resolvePage && be(t.option.resolvePage) ? t.option.resolvePage(d.value) : t.option.resolvePage), j = M(() => Boolean(t.option.url)), T = K(!1), Y = K(!1), ie = K(0), L = ct(($e = t.data) != null ? $e : []), ue = new AbortController();
234
234
  function _() {
235
235
  var Z, ce;
236
- const x = (Z = t.option.useErrData) != null ? Z : l.value;
237
- if (typeof x != "function")
236
+ const F = (Z = t.option.useErrData) != null ? Z : l.value;
237
+ if (typeof F != "function")
238
238
  return console.error("useErrData not declared"), [!0, { rows: [] }];
239
239
  let D = /* @__PURE__ */ Object.create({});
240
- P.value ? ve(t.option.resolvePage) ? D = { ...P.value } : D = { page: c.value } : D = {};
241
- const K = {
240
+ V.value ? be(t.option.resolvePage) ? D = { ...V.value } : D = { page: d.value } : D = {};
241
+ const q = {
242
242
  [String(t.option.method).toUpperCase() === "GET" ? "params" : "data"]: { ...D, ...t.option.data }
243
- }, W = { url: t.option.url, method: (ce = t.option.method) != null ? ce : "GET", ...K, signal: ue.signal };
244
- return t.option.timeout && (W.timeout = t.option.timeout), x(W);
243
+ }, W = { url: t.option.url, method: (ce = t.option.method) != null ? ce : "GET", ...q, signal: ue.signal };
244
+ return t.option.timeout && (W.timeout = t.option.timeout), F(W);
245
245
  }
246
- const E = M({
246
+ const A = M({
247
247
  get: () => t.selectedKeys,
248
- set: (x) => {
249
- s("update:selectedKeys", x);
248
+ set: (F) => {
249
+ s("update:selectedKeys", F);
250
250
  }
251
251
  });
252
- function V(x = !0) {
253
- T.value = x;
252
+ function P(F = !0) {
253
+ T.value = F;
254
254
  }
255
255
  const re = async () => {
256
- var x, D, K, W, Z, ce, _e;
256
+ var F, D, q, W, Z, ce, ve;
257
257
  if (j.value) {
258
- V(!0);
259
- const [Ae, fe] = await _();
260
- if (V(!1), Ae)
261
- ve(t.option.error) && ((_e = (ce = t.option).error) == null || _e.call(ce, fe));
258
+ P(!0);
259
+ const [Ee, fe] = await _();
260
+ if (P(!1), Ee)
261
+ be(t.option.error) && ((ve = (ce = t.option).error) == null || ve.call(ce, fe));
262
262
  else {
263
- const Ie = t.option.resolveData && ve(t.option.resolveData) ? t.option.resolveData(fe, { ...c.value }) : (D = (x = fe == null ? void 0 : fe.rows) != null ? x : fe) != null ? D : [];
264
- Object.prototype.toString.call(Ie).slice(8, -1) !== "Array" && console.warn(new Error("[orc-table] :Not in Array format data ")), L.value = Object.assign([], Ie), ie.value = t.option.resolveTotal && ve(t.option.resolveTotal) ? t.option.resolveTotal(fe) : (K = fe == null ? void 0 : fe.total) != null ? K : 0, ve(t.option.success) && ((Z = (W = t.option).success) == null || Z.call(W, fe));
263
+ const We = t.option.resolveData && be(t.option.resolveData) ? t.option.resolveData(fe, { ...d.value }) : (D = (F = fe == null ? void 0 : fe.rows) != null ? F : fe) != null ? D : [];
264
+ Object.prototype.toString.call(We).slice(8, -1) !== "Array" && console.warn(new Error("[orc-table] :Not in Array format data ")), L.value = Object.assign([], We), ie.value = t.option.resolveTotal && be(t.option.resolveTotal) ? t.option.resolveTotal(fe) : (q = fe == null ? void 0 : fe.total) != null ? q : 0, be(t.option.success) && ((Z = (W = t.option).success) == null || Z.call(W, fe));
265
265
  }
266
266
  }
267
267
  };
268
268
  async function X() {
269
269
  T.value || (s("onReset"), await re());
270
270
  }
271
- function me(x, D = !1) {
272
- x && (c.value.page = x), (!t.option.reserve || D) && (E.value = [], F.clearSelection()), re();
271
+ function me(F, D = !1) {
272
+ F && (d.value.page = F), (!t.option.reserve || D) && (A.value = [], x.clearSelection()), re();
273
273
  }
274
- async function ge(x) {
275
- c.value.size = x, me(1, !0);
274
+ async function _e(F) {
275
+ d.value.size = F, me(1, !0);
276
276
  }
277
- const ye = q(/* @__PURE__ */ Object.create({})), pe = q({
277
+ const ye = K(/* @__PURE__ */ Object.create({})), pe = K({
278
278
  loading: !1,
279
279
  columns: [],
280
280
  tempWidth: /* @__PURE__ */ Object.create({})
281
281
  });
282
282
  async function G() {
283
- var x;
284
- if (typeof ((x = t.hook) == null ? void 0 : x.getColumn) == "function") {
285
- const [D, K] = await t.hook.getColumn();
286
- !D && K && (S.value = K);
283
+ var F;
284
+ if (typeof ((F = t.hook) == null ? void 0 : F.getColumn) == "function") {
285
+ const [D, q] = await t.hook.getColumn();
286
+ !D && q && (S.value = q);
287
287
  }
288
288
  }
289
289
  G();
290
- const je = (x = !1) => {
291
- !ye.value || (x ? ye.value.togglePanel() : ye.value.showPanel(), pe.value.columns = Object.assign([], [...k.value]).map((D) => {
292
- const K = pe.value.tempWidth[D.dataIndex];
293
- return K && (D.width = K), D;
290
+ const Pe = (F = !1) => {
291
+ !ye.value || (F ? ye.value.togglePanel() : ye.value.showPanel(), pe.value.columns = Object.assign([], [...$.value]).map((D) => {
292
+ const q = pe.value.tempWidth[D.dataIndex];
293
+ return q && (D.width = q), D;
294
294
  }));
295
295
  }, Fe = () => {
296
296
  !ye.value || ye.value.hidePanel();
297
297
  };
298
- function Re() {
299
- pe.value.loading = !0, S.value = [], pe.value.tempWidth = /* @__PURE__ */ Object.create({}), pe.value.columns = $(), je(), setTimeout(() => {
298
+ function je() {
299
+ pe.value.loading = !0, S.value = [], pe.value.tempWidth = /* @__PURE__ */ Object.create({}), pe.value.columns = O(), Pe(), setTimeout(() => {
300
300
  pe.value.loading = !1;
301
301
  }, 500);
302
302
  }
303
- function Te(x) {
304
- let D = x.column.property;
305
- !D && x.column.type === "seq" && (D = "index"), D && x.column.resizeWidth > 0 && (pe.value.tempWidth[D] = x.column.resizeWidth, Fe());
303
+ function Re(F) {
304
+ let D = F.column.property;
305
+ !D && F.column.type === "seq" && (D = "index"), D && F.column.resizeWidth > 0 && (pe.value.tempWidth[D] = F.column.resizeWidth, Fe());
306
306
  }
307
- const We = () => {
308
- var x;
309
- !ye.value || (S.value = pe.value.columns, s("confirm", k.value), typeof ((x = t.hook) == null ? void 0 : x.setColumn) == "function" && t.hook.setColumn(k.value), pe.value.tempWidth = /* @__PURE__ */ Object.create({}), Fe());
307
+ const Te = () => {
308
+ var F;
309
+ !ye.value || (S.value = pe.value.columns, s("confirm", $.value), typeof ((F = t.hook) == null ? void 0 : F.setColumn) == "function" && t.hook.setColumn($.value), pe.value.tempWidth = /* @__PURE__ */ Object.create({}), Fe());
310
310
  };
311
- return t.option.firstLoad !== !1 && re(), ne(
311
+ return t.option.firstLoad !== !1 && re(), le(
312
312
  () => t.option.firstLoad,
313
- (x) => {
314
- x === !0 && re();
313
+ (F) => {
314
+ F === !0 && re();
315
315
  }
316
316
  ), Dt(() => {
317
317
  ue.abort();
318
318
  }), o({
319
319
  loading: T,
320
- setLoading: V,
321
- dataInit(x) {
322
- return x !== !1 && (c.value.page = 1), E.value = [], F.clearSelection(), re();
320
+ setLoading: P,
321
+ dataInit(F) {
322
+ return F !== !1 && (d.value.page = 1), A.value = [], x.clearSelection(), re();
323
323
  },
324
- loadData(x) {
325
- h.value && (h.value.reloadData(x), L.value = x);
324
+ loadData(F) {
325
+ h.value && (h.value.reloadData(F), L.value = F);
326
326
  },
327
- ...F
328
- }), (x, D) => {
327
+ ...x
328
+ }), (F, D) => {
329
329
  var bt;
330
- const K = g("a-switch"), W = g("a-tooltip"), Z = g("icon-refresh"), ce = g("a-button"), _e = g("icon-settings"), Ae = g("icon-drag-dot-vertical"), fe = g("a-checkbox");
331
- g("a-input-number");
332
- const Ie = g("a-divider"), _t = g("vxe-button"), Yt = g("vxe-pulldown"), vt = g("a-space"), Zt = g("vxe-toolbar"), Me = g("vxe-column"), eo = g("a-empty"), to = g("a-spin"), oo = g("vxe-table"), no = g("a-pagination");
333
- return r(), B("div", vo, [
334
- t.hideToolbar ? N("", !0) : (r(), y(Zt, {
330
+ const q = m("a-switch"), W = m("a-tooltip"), Z = m("icon-refresh"), ce = m("a-button"), ve = m("icon-settings"), Ee = m("icon-drag-dot-vertical"), fe = m("a-checkbox");
331
+ m("a-input-number");
332
+ const We = m("a-divider"), _t = m("vxe-button"), Zt = m("vxe-pulldown"), vt = m("a-space"), eo = m("vxe-toolbar"), Ie = m("vxe-column"), to = m("a-empty"), oo = m("a-spin"), no = m("vxe-table"), lo = m("a-pagination");
333
+ return i(), k("div", bo, [
334
+ t.hideToolbar ? U("", !0) : (i(), w(eo, {
335
335
  key: 0,
336
336
  size: "mini",
337
337
  "class-name": "orc-table__toolbar"
338
338
  }, {
339
339
  buttons: p(() => [
340
- le(x.$slots, "default", {}, () => [
341
- R("div", bo, J(t.title), 1)
340
+ oe(F.$slots, "default", {}, () => [
341
+ R("div", yo, J(t.title), 1)
342
342
  ])
343
343
  ]),
344
344
  tools: p(() => [
345
345
  f(vt, { size: "small" }, {
346
346
  default: p(() => [
347
- le(x.$slots, "tools"),
347
+ oe(F.$slots, "tools"),
348
348
  f(W, {
349
349
  content: "\u8868\u683C\u6591\u9A6C\u7EB9",
350
350
  mini: ""
351
351
  }, {
352
352
  default: p(() => [
353
- f(K, {
353
+ f(q, {
354
354
  modelValue: Y.value,
355
355
  "onUpdate:modelValue": D[0] || (D[0] = (se) => Y.value = se),
356
356
  size: "small"
@@ -386,7 +386,7 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
386
386
  ]),
387
387
  _: 1
388
388
  }),
389
- f(Yt, {
389
+ f(Zt, {
390
390
  ref_key: "settingRef",
391
391
  ref: ye,
392
392
  transfer: ""
@@ -403,9 +403,9 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
403
403
  style: { border: "0" }
404
404
  }, {
405
405
  icon: p(() => [
406
- f(_e, {
406
+ f(ve, {
407
407
  size: 16,
408
- onClick: D[2] || (D[2] = (se) => je(!0))
408
+ onClick: D[2] || (D[2] = (se) => Pe(!0))
409
409
  })
410
410
  ]),
411
411
  _: 1
@@ -415,9 +415,9 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
415
415
  })
416
416
  ]),
417
417
  dropdown: p(() => [
418
- R("div", yo, [
419
- R("div", ho, [
420
- wo,
418
+ R("div", ho, [
419
+ R("div", wo, [
420
+ Co,
421
421
  f(W, {
422
422
  content: "\u91CD\u7F6E",
423
423
  mini: ""
@@ -428,7 +428,7 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
428
428
  class: "arco-btn-light",
429
429
  style: { border: "0" },
430
430
  loading: pe.value.loading,
431
- onClick: D[3] || (D[3] = (se) => Re())
431
+ onClick: D[3] || (D[3] = (se) => je())
432
432
  }, {
433
433
  icon: p(() => [
434
434
  f(Z)
@@ -439,9 +439,9 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
439
439
  _: 1
440
440
  })
441
441
  ]),
442
- R("div", Co, [
443
- R("div", Ao, [
444
- f(b(ze), {
442
+ R("div", Ao, [
443
+ R("div", Eo, [
444
+ f(y(De), {
445
445
  list: pe.value.columns,
446
446
  style: { "user-select": "none" },
447
447
  class: "orc-table__draggable-list",
@@ -454,22 +454,22 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
454
454
  handle: ".orc-table__draggable-moving"
455
455
  }, {
456
456
  item: p(({ element: se }) => [
457
- R("div", Eo, [
458
- se.title ? (r(), B("div", xo, [
459
- f(Ae, { class: "orc-table__draggable-moving" }),
457
+ R("div", xo, [
458
+ se.title ? (i(), k("div", Fo, [
459
+ f(Ee, { class: "orc-table__draggable-moving" }),
460
460
  f(fe, {
461
461
  modelValue: se.show,
462
- "onUpdate:modelValue": (Ne) => se.show = Ne
462
+ "onUpdate:modelValue": (Me) => se.show = Me
463
463
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
464
464
  R("label", {
465
465
  class: "u-flex__item u-clamp",
466
466
  title: se.title
467
467
  }, [
468
- R("span", ko, J(se.title), 1)
469
- ], 8, Fo),
470
- N("", !0)
471
- ])) : (r(), B("div", Bo, [
472
- f(Ie, {
468
+ R("span", Bo, J(se.title), 1)
469
+ ], 8, ko),
470
+ U("", !0)
471
+ ])) : (i(), k("div", $o, [
472
+ f(We, {
473
473
  margin: 6,
474
474
  type: "dashed"
475
475
  })
@@ -480,7 +480,7 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
480
480
  }, 8, ["list"])
481
481
  ])
482
482
  ]),
483
- R("div", $o, [
483
+ R("div", Oo, [
484
484
  f(_t, {
485
485
  size: "mini",
486
486
  class: "u-flex__item",
@@ -498,7 +498,7 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
498
498
  class: "u-flex__item",
499
499
  type: "text",
500
500
  status: "primary",
501
- onClick: D[5] || (D[5] = (se) => We())
501
+ onClick: D[5] || (D[5] = (se) => Te())
502
502
  }, {
503
503
  default: p(() => [
504
504
  te("\u786E\u8BA4")
@@ -516,7 +516,7 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
516
516
  ]),
517
517
  _: 3
518
518
  })),
519
- f(oo, I({
519
+ f(no, I({
520
520
  ref: t.option.ref,
521
521
  data: L.value,
522
522
  height: t.height,
@@ -529,10 +529,10 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
529
529
  "show-header-overflow": t.option.tooltip || "tooltip",
530
530
  size: t.size,
531
531
  loading: T.value,
532
- "radio-config": b(m),
533
- "checkbox-config": { ...b(m), checkField: t.option.checkKey },
532
+ "radio-config": y(g),
533
+ "checkbox-config": { ...y(g), checkField: t.option.checkKey },
534
534
  "header-cell-style": t.option.headerStyle,
535
- "show-footer": b(ve)(t.option.footerMethod),
535
+ "show-footer": y(be)(t.option.footerMethod),
536
536
  "footer-method": t.option.footerMethod,
537
537
  "footer-cell-style": t.option.footerStyle,
538
538
  "merge-footer-items": t.option.mergeFooter,
@@ -541,34 +541,34 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
541
541
  "scroll-y": t.option.scrollY,
542
542
  "scroll-x": t.option.scrollX
543
543
  }, t.option.tableProps, {
544
- onCheckboxChange: b(C),
545
- onCheckboxAll: b(C),
546
- onRadioChange: b(v),
547
- onResizableChange: Te,
548
- onCellClick: O
544
+ onCheckboxChange: y(b),
545
+ onCheckboxAll: y(b),
546
+ onRadioChange: y(v),
547
+ onResizableChange: Re,
548
+ onCellClick: B
549
549
  }), {
550
550
  empty: p(() => [
551
- f(eo)
551
+ f(to)
552
552
  ]),
553
553
  loading: p(() => [
554
- f(to)
554
+ f(oo)
555
555
  ]),
556
556
  default: p(() => {
557
- var se, Ne;
557
+ var se, Me;
558
558
  return [
559
- ["checkbox"].includes((se = t.option.selectedType) != null ? se : "") ? (r(), y(Me, I({
559
+ ["checkbox"].includes((se = t.option.selectedType) != null ? se : "") ? (i(), w(Ie, I({
560
560
  key: 0,
561
561
  type: "checkbox",
562
562
  width: "30",
563
563
  fixed: "left"
564
- }, t.option.selectedProps), null, 16)) : ["radio"].includes((Ne = t.option.selectedType) != null ? Ne : "") ? (r(), y(Me, I({
564
+ }, t.option.selectedProps), null, 16)) : ["radio"].includes((Me = t.option.selectedType) != null ? Me : "") ? (i(), w(Ie, I({
565
565
  key: 1,
566
566
  type: "radio",
567
567
  width: "30",
568
568
  fixed: "left"
569
- }, t.option.selectedProps), null, 16)) : N("", !0),
570
- (r(!0), B(Q, null, de(k.value.filter((z) => z.show), (z, lo) => (r(), B(Q, { key: lo }, [
571
- ["index"].includes(z.dataIndex) ? (r(), y(Me, I({
569
+ }, t.option.selectedProps), null, 16)) : U("", !0),
570
+ (i(!0), k(Q, null, de($.value.filter((z) => z.show), (z, uo) => (i(), k(Q, { key: uo }, [
571
+ ["index"].includes(z.dataIndex) ? (i(), w(Ie, I({
572
572
  key: 0,
573
573
  type: "seq",
574
574
  field: z.dataIndex,
@@ -583,7 +583,7 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
583
583
  fixed: z.fixed,
584
584
  "title-prefix": z.help,
585
585
  ref_for: !0
586
- }, z.columnProps), null, 16, ["field", "width", "title", "sortable", "header-align", "footer-align", "align", "show-header-overflow", "show-overflow", "fixed", "title-prefix"])) : (r(), y(Me, I({
586
+ }, z.columnProps), null, 16, ["field", "width", "title", "sortable", "header-align", "footer-align", "align", "show-header-overflow", "show-overflow", "fixed", "title-prefix"])) : (i(), w(Ie, I({
587
587
  key: 1,
588
588
  field: z.dataIndex,
589
589
  width: z.width,
@@ -598,64 +598,64 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
598
598
  "title-prefix": z.help,
599
599
  "edit-render": { enabled: Boolean(z.cell), placeholder: z.placeholder },
600
600
  ref_for: !0
601
- }, z.columnProps), ao({ _: 2 }, [
601
+ }, z.columnProps), zt({ _: 2 }, [
602
602
  z.cell ? {
603
603
  name: "edit",
604
- fn: p(({ row: ee, rowIndex: Ee, columnIndex: Ge }) => [
605
- le(x.$slots, "cell", {
604
+ fn: p(({ row: ee, rowIndex: xe, columnIndex: Qe }) => [
605
+ oe(F.$slots, "cell", {
606
606
  record: ee,
607
607
  dataIndex: z.dataIndex,
608
- rowIndex: Ee,
609
- columnIndex: Ge,
608
+ rowIndex: xe,
609
+ columnIndex: Qe,
610
610
  value: ee[z.dataIndex],
611
- updateValue: u(ee, z.dataIndex),
612
- formatValue: b(ke)(ee, z)
611
+ updateValue: a(ee, z.dataIndex),
612
+ formatValue: y(ke)(ee, z)
613
613
  }, () => [
614
- yt(z.cell) ? (r(), y(be(z.cell), {
614
+ yt(z.cell) ? (i(), w(ge(z.cell), {
615
615
  key: 0,
616
616
  record: ee
617
- }, null, 8, ["record"])) : (r(), B("span", {
617
+ }, null, 8, ["record"])) : (i(), k("span", {
618
618
  key: 1,
619
- style: oe(b(Je)(ee, z))
620
- }, J(b(ke)(ee, z)), 5))
619
+ style: ne(y(Xe)(ee, z))
620
+ }, J(y(ke)(ee, z)), 5))
621
621
  ])
622
622
  ]),
623
623
  key: "0"
624
624
  } : void 0,
625
625
  z.cell && z.div ? {
626
626
  name: "default",
627
- fn: p(({ row: ee, rowIndex: Ee, columnIndex: Ge }) => [
628
- le(x.$slots, "cell", {
627
+ fn: p(({ row: ee, rowIndex: xe, columnIndex: Qe }) => [
628
+ oe(F.$slots, "cell", {
629
629
  record: ee,
630
630
  dataIndex: z.dataIndex,
631
- rowIndex: Ee,
632
- columnIndex: Ge,
631
+ rowIndex: xe,
632
+ columnIndex: Qe,
633
633
  value: ee[z.dataIndex],
634
- updateValue: u(ee, z.dataIndex),
635
- formatValue: b(ke)(ee, z)
634
+ updateValue: a(ee, z.dataIndex),
635
+ formatValue: y(ke)(ee, z)
636
636
  }, () => [
637
- yt(z.cell) ? (r(), y(be(z.cell), {
637
+ yt(z.cell) ? (i(), w(ge(z.cell), {
638
638
  key: 0,
639
639
  record: ee
640
- }, null, 8, ["record"])) : (r(), B("span", {
640
+ }, null, 8, ["record"])) : (i(), k("span", {
641
641
  key: 1,
642
- style: oe(b(Je)(ee, z))
643
- }, J(b(ke)(ee, z)), 5))
642
+ style: ne(y(Xe)(ee, z))
643
+ }, J(y(ke)(ee, z)), 5))
644
644
  ])
645
645
  ]),
646
646
  key: "1"
647
647
  } : {
648
648
  name: "default",
649
- fn: p(({ row: ee, rowIndex: Ee }) => [
650
- t.option.skinRow && !z.cell ? (r(), B(Q, { key: 0 }, [
651
- Ee > 0 && w(L.value, Ee, z.dataIndex) && z.width ? (r(), B("span", Oo, J(t.option.skinRowText), 1)) : (r(), B("span", {
649
+ fn: p(({ row: ee, rowIndex: xe }) => [
650
+ t.option.skinRow && !z.cell ? (i(), k(Q, { key: 0 }, [
651
+ xe > 0 && C(L.value, xe, z.dataIndex) && z.width ? (i(), k("span", So, J(t.option.skinRowText), 1)) : (i(), k("span", {
652
652
  key: 1,
653
- style: oe(A(L.value, Ee, z.dataIndex))
654
- }, J(b(ke)(ee, z)), 5))
655
- ], 64)) : (r(), B("span", {
653
+ style: ne(E(L.value, xe, z.dataIndex))
654
+ }, J(y(ke)(ee, z)), 5))
655
+ ], 64)) : (i(), k("span", {
656
656
  key: 1,
657
- style: oe(b(Je)(ee, z))
658
- }, J(b(ke)(ee, z)), 5))
657
+ style: ne(y(Xe)(ee, z))
658
+ }, J(y(ke)(ee, z)), 5))
659
659
  ]),
660
660
  key: "2"
661
661
  }
@@ -665,10 +665,10 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
665
665
  }),
666
666
  _: 3
667
667
  }, 16, ["data", "height", "stripe", "row-config", "show-overflow", "show-header-overflow", "size", "loading", "radio-config", "checkbox-config", "header-cell-style", "show-footer", "footer-method", "footer-cell-style", "merge-footer-items", "show-footer-overflow", "edit-rules", "scroll-y", "scroll-x", "onCheckboxChange", "onCheckboxAll", "onRadioChange"]),
668
- j.value && !t.hidePagination ? (r(), B("div", So, [
669
- R("div", Do, [
670
- R("div", zo, [
671
- le(x.$slots, "footer")
668
+ j.value && !t.hidePagination ? (i(), k("div", Do, [
669
+ R("div", zo, [
670
+ R("div", Vo, [
671
+ oe(F.$slots, "footer")
672
672
  ]),
673
673
  R("div", Po, [
674
674
  f(vt, {
@@ -677,22 +677,22 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
677
677
  align: "end"
678
678
  }, {
679
679
  default: p(() => [
680
- f(no, {
681
- current: c.value.page,
682
- "default-page-size": c.value.size,
680
+ f(lo, {
681
+ current: d.value.page,
682
+ "default-page-size": d.value.size,
683
683
  total: ie.value,
684
684
  "auto-adjust": !1,
685
685
  size: t.size,
686
686
  "show-total": "",
687
687
  "show-page-size": "",
688
- "page-size-options": i.value,
689
- onPageSizeChange: ge,
688
+ "page-size-options": r.value,
689
+ onPageSizeChange: _e,
690
690
  onChange: me
691
691
  }, {
692
692
  total: p(() => [
693
- E.value.length ? (r(), B(Q, { key: 0 }, [
694
- te(" \u9009 " + J(E.value.length), 1)
695
- ], 64)) : N("", !0),
693
+ A.value.length ? (i(), k(Q, { key: 0 }, [
694
+ te(" \u9009 " + J(A.value.length), 1)
695
+ ], 64)) : U("", !0),
696
696
  te(" \u5171 " + J(ie.value) + " \u6761 ", 1)
697
697
  ]),
698
698
  _: 1
@@ -702,53 +702,53 @@ const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)",
702
702
  })
703
703
  ])
704
704
  ])
705
- ])) : N("", !0)
705
+ ])) : U("", !0)
706
706
  ]);
707
707
  };
708
708
  }
709
709
  });
710
- const jo = {
710
+ const Ro = {
711
711
  tf: (e, o) => {
712
712
  if (typeof e != "number")
713
713
  return e;
714
714
  if (typeof o != "number") {
715
- const a = String(e).split(".");
716
- a.length === 2 && (o = a[1].length);
715
+ const u = String(e).split(".");
716
+ u.length === 2 && (o = u[1].length);
717
717
  }
718
- return Qe.commafy(e, { digits: o });
718
+ return Je.commafy(e, { digits: o });
719
719
  },
720
- t: (e) => Qe.toDateString(e, "yyyy-MM-dd"),
721
- time: (e, o = "yyyy-MM-dd HH:mm:ss") => Qe.toDateString(e, o),
722
- p: (e, o, a = "%") => typeof e != "number" ? e : (typeof o != "number" && (o = 2), (e * 100).toFixed(o) + a)
723
- }, Jl = (e) => {
724
- const o = q(/* @__PURE__ */ Object.create({})), a = q([]), { tableOption: n, $grid: l, $gridTwo: t } = Rt(e), s = {
720
+ t: (e) => Je.toDateString(e, "yyyy-MM-dd"),
721
+ time: (e, o = "yyyy-MM-dd HH:mm:ss") => Je.toDateString(e, o),
722
+ p: (e, o, u = "%") => typeof e != "number" ? e : (typeof o != "number" && (o = 2), (e * 100).toFixed(o) + u)
723
+ }, Xl = (e) => {
724
+ const o = K(/* @__PURE__ */ Object.create({})), u = K([]), { tableOption: n, $grid: l, $gridTwo: t } = Tt(e), s = {
725
725
  rowKey: t.getRowKey(),
726
- addKey(u) {
727
- var c;
728
- const i = t.getTableData()[u];
729
- if (!i.disabled && l.value) {
730
- const m = t.getRowKey();
726
+ addKey(a) {
727
+ var d;
728
+ const r = t.getTableData()[a];
729
+ if (!r.disabled && l.value) {
730
+ const g = t.getRowKey();
731
731
  if (n.selectedType === "checkbox") {
732
- const C = l.value, { fullData: v } = C.getTableData();
732
+ const b = l.value, { fullData: v } = b.getTableData();
733
733
  if (e.checkboxKey) {
734
- const h = e.checkboxKey, F = v.filter((O) => O[h] && O[h] === i[h]);
735
- F.length && C.setCheckboxRow(F, !0);
734
+ const h = e.checkboxKey, x = v.filter((B) => B[h] && B[h] === r[h]);
735
+ x.length && b.setCheckboxRow(x, !0);
736
736
  } else
737
- l.value.setCheckboxRow(i, !0);
738
- m && (a.value = ((c = l.value.getCheckboxRecords()) != null ? c : []).map((h) => h[m]));
737
+ l.value.setCheckboxRow(r, !0);
738
+ g && (u.value = ((d = l.value.getCheckboxRecords()) != null ? d : []).map((h) => h[g]));
739
739
  }
740
- n.selectedType === "radio" && (l.value.setRadioRow(i), l.value.getRadioRecord() && m && (a.value = [l.value.getRadioRecord()].map((C) => C[m])));
740
+ n.selectedType === "radio" && (l.value.setRadioRow(r), l.value.getRadioRecord() && g && (u.value = [l.value.getRadioRecord()].map((b) => b[g])));
741
741
  }
742
742
  },
743
- setTableData(u) {
744
- l.value && l.value.reloadData(u);
743
+ setTableData(a) {
744
+ l.value && l.value.reloadData(a);
745
745
  },
746
- setTableRow(u, d, i) {
746
+ setTableRow(a, c, r) {
747
747
  if (l.value) {
748
- const c = t.getTableData();
749
- typeof d == "string" ? c[u][d] = i : Object.keys({ ...d }).forEach((m) => {
750
- c[u][m] = d[m];
751
- }), s.addKey(u), typeof e.footerMethod == "function" && l.value.updateFooter();
748
+ const d = t.getTableData();
749
+ typeof c == "string" ? d[a][c] = r : Object.keys({ ...c }).forEach((g) => {
750
+ d[a][g] = c[g];
751
+ }), s.addKey(a), typeof e.footerMethod == "function" && l.value.updateFooter();
752
752
  }
753
753
  }
754
754
  };
@@ -760,11 +760,11 @@ const jo = {
760
760
  ...t
761
761
  },
762
762
  $grid: l,
763
- selectedKeys: a
763
+ selectedKeys: u
764
764
  };
765
- }, lt = (e) => {
765
+ }, ut = (e) => {
766
766
  let o = [];
767
- const a = JSON.stringify(e, (n, l) => {
767
+ const u = JSON.stringify(e, (n, l) => {
768
768
  if (typeof l == "object" && l !== null) {
769
769
  if (o.indexOf(l) !== -1)
770
770
  return null;
@@ -772,48 +772,48 @@ const jo = {
772
772
  }
773
773
  return l;
774
774
  });
775
- return o = null, JSON.parse(a);
775
+ return o = null, JSON.parse(u);
776
776
  };
777
- function ut(e) {
777
+ function at(e) {
778
778
  return Object.prototype.toString.call(e) === "[object Object]";
779
779
  }
780
780
  function wt(e) {
781
781
  return Array.isArray(e) ? e : [e];
782
782
  }
783
- const Ro = () => (Number(new Date()) + Number(String(Math.random()).slice(2, 15))).toString(32);
784
- function To(e) {
785
- const o = Ro();
783
+ const To = () => (Number(new Date()) + Number(String(Math.random()).slice(2, 15))).toString(32);
784
+ function Wo(e) {
785
+ const o = To();
786
786
  return { key: o, model: `${String(e).slice(0, 8)}_${o}` };
787
787
  }
788
788
  function Ct(e, o) {
789
789
  if (!(e != null && e.type))
790
790
  throw new Error(`widget ${e == null ? void 0 : e.key} error`);
791
- o = { ...o, ...To(e.type) };
792
- const a = Object.assign({}, { ...e, ...o, options: { ...e.options, ...o.options } });
793
- return a.category !== "basic" && delete a.model, a;
791
+ o = { ...o, ...Wo(e.type) };
792
+ const u = Object.assign({}, { ...e, ...o, options: { ...e.options, ...o.options } });
793
+ return u.category !== "basic" && delete u.model, u;
794
794
  }
795
- function Wt(e) {
795
+ function It(e) {
796
796
  return Array.isArray(e) ? e : e.replace(/\[/g, ".").replace(/\]/g, "").split(".");
797
797
  }
798
- function It(e, o, a) {
799
- return typeof e != "object" ? a : Wt(o).reduce((n, l) => (n || {})[l], { ...e }) || a;
798
+ function Mt(e, o, u) {
799
+ return typeof e != "object" ? u : It(o).reduce((n, l) => (n || {})[l], { ...e }) || u;
800
800
  }
801
- function Wo(e, o, a) {
802
- return typeof e != "object" ? e : (Wt(o).reduce((n, l, t, s) => t === s.length - 1 ? (n[l] = a, null) : (l in n || (n[l] = /^[0-9]{1,}$/.test(s[t + 1]) ? [] : {}), n[l]), e), lt(e));
801
+ function Io(e, o, u) {
802
+ return typeof e != "object" ? e : (It(o).reduce((n, l, t, s) => t === s.length - 1 ? (n[l] = u, null) : (l in n || (n[l] = /^[0-9]{1,}$/.test(s[t + 1]) ? [] : {}), n[l]), e), ut(e));
803
803
  }
804
- function we(e, o, a = "children") {
804
+ function Ce(e, o, u = "children") {
805
805
  const n = e ? `${e}.` : "", l = o !== void 0 ? `[${o}]` : "";
806
- return `${n}${a}${l}`;
806
+ return `${n}${u}${l}`;
807
807
  }
808
- function Xe(e) {
808
+ function Ye(e) {
809
809
  const o = /(.*)\[(.*)$/.exec(e);
810
810
  if (o) {
811
- const [, a, n] = o, l = Number(n.slice(0, -1));
812
- return [a, Number.isNaN(l) ? void 0 : l];
811
+ const [, u, n] = o, l = Number(n.slice(0, -1));
812
+ return [u, Number.isNaN(l) ? void 0 : l];
813
813
  }
814
814
  return ["", void 0];
815
815
  }
816
- function Mt(e, o, a) {
816
+ function Ut(e, o, u) {
817
817
  if (typeof e == "function" || typeof o == "function")
818
818
  throw new Error("Cannot merge config in form of callback");
819
819
  const n = { ...e };
@@ -826,17 +826,17 @@ function Mt(e, o, a) {
826
826
  n[l] = t;
827
827
  else if (Array.isArray(s) || Array.isArray(t))
828
828
  n[l] = [...wt(s), ...wt(t)];
829
- else if (ut(s) && ut(t))
829
+ else if (at(s) && at(t))
830
830
  try {
831
- n[l] = Mt(s, t, a ? `${a}.${l}` : l);
831
+ n[l] = Ut(s, t, u ? `${u}.${l}` : l);
832
832
  } catch {
833
- console.error(`${a} Error: `, t);
833
+ console.error(`${u} Error: `, t);
834
834
  }
835
835
  else
836
836
  n[l] = t;
837
837
  }), n;
838
838
  }
839
- const Se = zt({
839
+ const Se = Vt({
840
840
  children: [],
841
841
  models: {},
842
842
  remoteFuncs: {},
@@ -844,13 +844,13 @@ const Se = zt({
844
844
  readonly: !0,
845
845
  selectPath: null
846
846
  }), Nt = Symbol("SymbolWidgetState");
847
- function Io(e = {}) {
847
+ function Mo(e = {}) {
848
848
  Object.keys(e).forEach((o) => {
849
- ut(e[o]) ? Se[o] = Mt(e[o], Se[o]) : Se[o] = e[o];
849
+ at(e[o]) ? Se[o] = Ut(e[o], Se[o]) : Se[o] = e[o];
850
850
  }), Pt(Nt, Se);
851
851
  }
852
- function Pe() {
853
- return Ce(St(Nt, Se));
852
+ function ze() {
853
+ return Ae(St(Nt, Se));
854
854
  }
855
855
  const he = {
856
856
  animation: 300,
@@ -859,152 +859,152 @@ const he = {
859
859
  chosenClass: "fe-chosen",
860
860
  itemKey: "key",
861
861
  handle: ".fe-moving"
862
- }, Mo = {
862
+ }, Uo = {
863
863
  left: "px",
864
864
  top: "px",
865
865
  options: "select"
866
866
  };
867
867
  function ae() {
868
- const { children: e, models: o, config: a, remoteFuncs: n, selectPath: l } = Pe(), t = () => ({ children: e.value });
868
+ const { children: e, models: o, config: u, remoteFuncs: n, selectPath: l } = ze(), t = () => ({ children: e.value });
869
869
  function s(v, h) {
870
870
  if (v) {
871
871
  if (!/^children/.test(v))
872
872
  throw new Error("Illegal operation attribute");
873
- Wo(t(), v, h);
873
+ Io(t(), v, h);
874
874
  }
875
875
  }
876
- function u(v) {
876
+ function a(v) {
877
877
  if (!v)
878
878
  return null;
879
- const h = It(t(), v);
879
+ const h = Mt(t(), v);
880
880
  return h || null;
881
881
  }
882
- function d(v) {
883
- const { options: h = {}, optionsConfig: F = {} } = v != null ? v : {};
882
+ function c(v) {
883
+ const { options: h = {}, optionsConfig: x = {} } = v != null ? v : {};
884
884
  if (Object.keys(h).length === 0)
885
885
  return null;
886
- const O = { ...F };
887
- return Object.keys(O).forEach((w) => {
888
- O[w] = typeof O[w] != "object" ? { type: O[w], model: w } : O[w];
889
- }), Object.keys(h).forEach((w) => {
890
- var $, k;
891
- let A = { type: "string", model: w }, S = O[w] || Mo[w] || typeof h[w];
892
- (!S || S === "undefined") && (S = "string"), typeof S == "object" ? A = { ...A, ...S } : A.type = S, O[w] = {
893
- ...A,
894
- show: A.show !== !1,
895
- tooltip: ($ = h.tooltip) != null ? $ : A.tooltip,
896
- options: (k = h.options) != null ? k : A.options
886
+ const B = { ...x };
887
+ return Object.keys(B).forEach((C) => {
888
+ B[C] = typeof B[C] != "object" ? { type: B[C], model: C } : B[C];
889
+ }), Object.keys(h).forEach((C) => {
890
+ var O, $;
891
+ let E = { type: "string", model: C }, S = B[C] || Uo[C] || typeof h[C];
892
+ (!S || S === "undefined") && (S = "string"), typeof S == "object" ? E = { ...E, ...S } : E.type = S, B[C] = {
893
+ ...E,
894
+ show: E.show !== !1,
895
+ tooltip: (O = h.tooltip) != null ? O : E.tooltip,
896
+ options: ($ = h.options) != null ? $ : E.options
897
897
  };
898
- }), O;
898
+ }), B;
899
899
  }
900
- function i(v) {
900
+ function r(v) {
901
901
  const h = { len: 0, isDelete: !0, isCopy: !0, isHidden: !1 };
902
902
  if (v) {
903
- const [F] = Xe(v), O = u(F);
904
- Array.isArray(O) && (h.len = O.length);
903
+ const [x] = Ye(v), B = a(x);
904
+ Array.isArray(B) && (h.len = B.length);
905
905
  }
906
906
  return h;
907
907
  }
908
- return { updateRootPathValue: s, getWidget: u, getWidgetProperty: i, getWidgetPanelProperty: d, useField: (v) => {
909
- const h = rt(), F = (S) => {
908
+ return { updateRootPathValue: s, getWidget: a, getWidgetProperty: r, getWidgetPanelProperty: c, useField: (v) => {
909
+ const h = ct(), x = (S) => {
910
910
  h.value = S;
911
- }, O = M(() => u(v.value)), w = () => {
912
- var $, k, P;
913
- const S = O.value;
914
- S && S.model ? F((P = (k = o.value[S.model]) != null ? k : ($ = S.options) == null ? void 0 : $.defaultValue) != null ? P : void 0) : F(void 0);
915
- }, A = () => {
916
- const S = O.value;
911
+ }, B = M(() => a(v.value)), C = () => {
912
+ var O, $, V;
913
+ const S = B.value;
914
+ S && S.model ? x((V = ($ = o.value[S.model]) != null ? $ : (O = S.options) == null ? void 0 : O.defaultValue) != null ? V : void 0) : x(void 0);
915
+ }, E = () => {
916
+ const S = B.value;
917
917
  S && S.model && (o.value[S.model] = h.value);
918
918
  };
919
- return ne(v, w, { immediate: !0 }), ne(() => O.value && O.value.model && o.value[O.value.model], F), ne(h, (S) => {
920
- const $ = O.value;
921
- ($ == null ? void 0 : $.model) && $.options && ($.options.defaultValue = S), A();
919
+ return le(v, C, { immediate: !0 }), le(() => B.value && B.value.model && o.value[B.value.model], x), le(h, (S) => {
920
+ const O = B.value;
921
+ (O == null ? void 0 : O.model) && O.options && (O.options.defaultValue = S), E();
922
922
  }), [h];
923
923
  }, useWidgetOperation: () => {
924
- const v = ($, k) => {
925
- a.value[$] = k;
926
- }, h = ($) => {
927
- l.value = $;
928
- }, F = ($) => l.value === $, O = () => {
924
+ const v = (O, $) => {
925
+ u.value[O] = $;
926
+ }, h = (O) => {
927
+ l.value = O;
928
+ }, x = (O) => l.value === O, B = () => {
929
929
  e.value = [], l.value = null;
930
- }, w = () => ({
931
- config: { ...a.value },
930
+ }, C = () => ({
931
+ config: { ...u.value },
932
932
  children: [...e.value],
933
933
  models: { ...o.value },
934
934
  remoteFuncs: { ...n.value }
935
935
  });
936
- function A($) {
937
- if (!$)
936
+ function E(O) {
937
+ if (!O)
938
938
  return;
939
- const [k, P = 0] = Xe($), j = u(k);
940
- j && Array.isArray(j) && (j.splice(P, 1), s(k, j), j.length > 0 && h(`${k}[${Math.min(P, j.length - 1)}]`));
939
+ const [$, V = 0] = Ye(O), j = a($);
940
+ j && Array.isArray(j) && (j.splice(V, 1), s($, j), j.length > 0 && h(`${$}[${Math.min(V, j.length - 1)}]`));
941
941
  }
942
- function S($) {
943
- if (!$)
942
+ function S(O) {
943
+ if (!O)
944
944
  return;
945
- const k = u($), [P, j = 0] = Xe($), T = u(P);
946
- if (k && T && Array.isArray(T)) {
947
- const Y = Ct(k, {});
948
- T.splice(j, 0, Y), s(P, T), h(`${P}[${j + 1}]`);
945
+ const $ = a(O), [V, j = 0] = Ye(O), T = a(V);
946
+ if ($ && T && Array.isArray(T)) {
947
+ const Y = Ct($, {});
948
+ T.splice(j, 0, Y), s(V, T), h(`${V}[${j + 1}]`);
949
949
  }
950
950
  }
951
- return { setConfig: v, onSelected: h, hasSelected: F, onReset: O, toJson: w, onDelete: A, onCopy: S };
951
+ return { setConfig: v, onSelected: h, hasSelected: x, onReset: B, toJson: C, onDelete: E, onCopy: S };
952
952
  }, useDraggableOperation: (v) => {
953
- function h(A) {
953
+ function h(E) {
954
954
  if (!(v != null && v.value))
955
955
  return {};
956
- const { originalEvent: S } = A, { clientX: $, clientY: k } = S, { top: P, left: j } = v.value.getBoundingClientRect();
957
- return { left: `${$ - j}px`, top: `${k - P}px` };
956
+ const { originalEvent: S } = E, { clientX: O, clientY: $ } = S, { top: V, left: j } = v.value.getBoundingClientRect();
957
+ return { left: `${O - j}px`, top: `${$ - V}px` };
958
958
  }
959
- const F = (A, S) => {
960
- s(A, S), l.value = A;
959
+ const x = (E, S) => {
960
+ s(E, S), l.value = E;
961
961
  };
962
- function O(A, S = null) {
962
+ function B(E, S = null) {
963
963
  var j, T;
964
- if (!A)
964
+ if (!E)
965
965
  return;
966
- const $ = A.newIndex, k = lt(S ? (T = (j = u(S)) == null ? void 0 : j.children) != null ? T : [] : e.value);
967
- k[$] = Ct(k[$], { options: h(A) }), k[$].children && (k[$] = { ...k[$], children: [...k[$].children] });
968
- const P = we(S, $);
969
- F(`${P}`, k[$]);
966
+ const O = E.newIndex, $ = ut(S ? (T = (j = a(S)) == null ? void 0 : j.children) != null ? T : [] : e.value);
967
+ $[O] = Ct($[O], { options: h(E) }), $[O].children && ($[O] = { ...$[O], children: [...$[O].children] });
968
+ const V = Ce(S, O);
969
+ x(`${V}`, $[O]);
970
970
  }
971
- function w(A, S = null) {
971
+ function C(E, S = null) {
972
972
  var j, T;
973
- if (!A)
973
+ if (!E)
974
974
  return;
975
- const $ = A.newIndex, k = lt(S ? (T = (j = u(S)) == null ? void 0 : j.children) != null ? T : [] : e.value);
976
- k[$].options = { ...k[$].options, ...h(A) };
977
- const P = we(S, $);
978
- F(`${P}`, k[$]);
975
+ const O = E.newIndex, $ = ut(S ? (T = (j = a(S)) == null ? void 0 : j.children) != null ? T : [] : e.value);
976
+ $[O].options = { ...$[O].options, ...h(E) };
977
+ const V = Ce(S, O);
978
+ x(`${V}`, $[O]);
979
979
  }
980
980
  return {
981
- onAddWidget: O,
982
- onUpdateWidget: w
981
+ onAddWidget: B,
982
+ onUpdateWidget: C
983
983
  };
984
984
  } };
985
985
  }
986
986
  function No(...e) {
987
- e.forEach((o, a) => console.log(`%c#${a + 1}: %o`, "color: #1672f6 ;", o));
987
+ e.forEach((o, u) => console.log(`%c#${u + 1}: %o`, "color: #1672f6 ;", o));
988
988
  }
989
- function Le(e) {
989
+ function He(e) {
990
990
  return Object.prototype.toString.call(e).slice(8, -1);
991
991
  }
992
- function Uo(e) {
992
+ function qo(e) {
993
993
  return Array.isArray(e);
994
994
  }
995
995
  function At(e) {
996
- return Le(e) === "Object";
996
+ return He(e) === "Object";
997
997
  }
998
- function qo(e) {
999
- return Le(e) === "Number" && String(e) !== "NaN";
998
+ function Ko(e) {
999
+ return He(e) === "Number" && String(e) !== "NaN";
1000
1000
  }
1001
- function at(e) {
1001
+ function it(e) {
1002
1002
  return Array.isArray(e) ? e : [e];
1003
1003
  }
1004
- const Ko = (e) => {
1004
+ const Lo = (e) => {
1005
1005
  try {
1006
1006
  let o = [];
1007
- const a = JSON.stringify(e, (n, l) => {
1007
+ const u = JSON.stringify(e, (n, l) => {
1008
1008
  if (typeof l == "object" && l !== null) {
1009
1009
  if (o.indexOf(l) !== -1)
1010
1010
  return null;
@@ -1012,43 +1012,43 @@ const Ko = (e) => {
1012
1012
  }
1013
1013
  return l;
1014
1014
  });
1015
- return o = null, JSON.parse(a);
1015
+ return o = null, JSON.parse(u);
1016
1016
  } catch {
1017
- return console.log("deepClone error, please use omitObject to remove non data type keys", e), Le(e) !== "Array" ? {} : [];
1017
+ return console.log("deepClone error, please use omitObject to remove non data type keys", e), He(e) !== "Array" ? {} : [];
1018
1018
  }
1019
1019
  };
1020
- function He(e, o = []) {
1020
+ function Ge(e, o = []) {
1021
1021
  typeof o == "string" && (o = [o]);
1022
- const a = /* @__PURE__ */ Object.create({});
1022
+ const u = /* @__PURE__ */ Object.create({});
1023
1023
  return Object.keys(e).forEach((n) => {
1024
- o.includes(n) || (a[n] = e[n]);
1025
- }), a;
1024
+ o.includes(n) || (u[n] = e[n]);
1025
+ }), u;
1026
1026
  }
1027
- function Ut(e, o = []) {
1027
+ function qt(e, o = []) {
1028
1028
  typeof o == "string" && (o = [o]);
1029
- const a = /* @__PURE__ */ Object.create({});
1029
+ const u = /* @__PURE__ */ Object.create({});
1030
1030
  return Object.keys(e).forEach((n) => {
1031
- o.includes(n) && (a[n] = e[n]);
1032
- }), a;
1031
+ o.includes(n) && (u[n] = e[n]);
1032
+ }), u;
1033
1033
  }
1034
- const Lo = (e, o = "") => {
1034
+ const Ho = (e, o = "") => {
1035
1035
  if (/(chrome|safari|firefox)/g.test(navigator.userAgent.toLowerCase())) {
1036
- const a = document.createElement("a");
1037
- if (a.href = e, a.download !== void 0 && (o = o || e.substring(e.lastIndexOf("/") + 1, e.length), a.download = o), console.log(`download: ${o}`), document.createEvent) {
1036
+ const u = document.createElement("a");
1037
+ if (u.href = e, u.download !== void 0 && (o = o || e.substring(e.lastIndexOf("/") + 1, e.length), u.download = o), console.log(`download: ${o}`), document.createEvent) {
1038
1038
  const n = document.createEvent("MouseEvents");
1039
- return n.initEvent("click", !0, !0), a.dispatchEvent(n), !0;
1039
+ return n.initEvent("click", !0, !0), u.dispatchEvent(n), !0;
1040
1040
  }
1041
1041
  }
1042
1042
  return ~e.indexOf("?") || (e += "?download"), window.open(e, "_self"), !0;
1043
1043
  };
1044
- function De(e, o) {
1045
- const a = q(e);
1046
- return [a, (l) => {
1044
+ function Ue(e, o) {
1045
+ const u = K(e);
1046
+ return [u, (l) => {
1047
1047
  var t;
1048
- a.value = { ...e, ...l != null ? l : {} }, o && ((t = o.value) == null ? void 0 : t.resetFields) && o.value.resetFields();
1048
+ u.value = { ...e, ...l != null ? l : {} }, o && ((t = o.value) == null ? void 0 : t.resetFields) && o.value.resetFields();
1049
1049
  }];
1050
1050
  }
1051
- function qt(e, o, a) {
1051
+ function Kt(e, o, u) {
1052
1052
  const n = { ...e };
1053
1053
  for (const l in o) {
1054
1054
  const t = o[l];
@@ -1060,25 +1060,25 @@ function qt(e, o, a) {
1060
1060
  continue;
1061
1061
  }
1062
1062
  if (Array.isArray(s) || Array.isArray(t)) {
1063
- n[l] = [...at(s), ...at(t)];
1063
+ n[l] = [...it(s), ...it(t)];
1064
1064
  continue;
1065
1065
  }
1066
1066
  if (At(s) && At(t)) {
1067
- n[l] = qt(s, t);
1067
+ n[l] = Kt(s, t);
1068
1068
  continue;
1069
1069
  }
1070
1070
  n[l] = t;
1071
1071
  }
1072
1072
  return n;
1073
1073
  }
1074
- function Ho(e, o, a = !0) {
1074
+ function Go(e, o, u = !0) {
1075
1075
  if (typeof e == "function" || typeof o == "function")
1076
1076
  throw new Error("Cannot merge config in form of callback");
1077
- return qt(e, o);
1077
+ return Kt(e, o);
1078
1078
  }
1079
- async function Go(e, o, a) {
1080
- var u;
1081
- const n = { letterRendering: "portrait", html2canvas: {}, jsPDF: {}, className: null, ...a }, l = (u = n.scale) != null ? u : 1.5, t = `${e}.pdf`, s = {
1079
+ async function Qo(e, o, u) {
1080
+ var a;
1081
+ const n = { letterRendering: "portrait", html2canvas: {}, jsPDF: {}, className: null, ...u }, l = (a = n.scale) != null ? a : 1.5, t = `${e}.pdf`, s = {
1082
1082
  margin: [0, 0, -0.5, -0.5],
1083
1083
  filename: t,
1084
1084
  image: { type: "jpeg", quality: 0.95 },
@@ -1097,96 +1097,96 @@ async function Go(e, o, a) {
1097
1097
  ...n.jsPDF
1098
1098
  },
1099
1099
  pagebreak: { mode: ["avoid-all", "css", "legacy"] },
1100
- ...He(n, ["html2canvas", "jsPDF", "letterRendering", "className", "success"])
1100
+ ...Ge(n, ["html2canvas", "jsPDF", "letterRendering", "className", "success"])
1101
1101
  };
1102
- return await io(), new Promise((d, i) => {
1102
+ return await io(), new Promise((c, r) => {
1103
1103
  if (ht && o) {
1104
- let c = ht().set(s);
1105
- const m = a != null && a.className ? o.querySelectorAll(a.className) : null;
1106
- let C = m ? [].slice.call(m) : [o];
1107
- if (C.length || (C = [o]), console.log(`Create a ${C.length}-page file named ${t}`), typeof (a == null ? void 0 : a.success) == "function")
1108
- a.success(c, C);
1104
+ let d = ht().set(s);
1105
+ const g = u != null && u.className ? o.querySelectorAll(u.className) : null;
1106
+ let b = g ? [].slice.call(g) : [o];
1107
+ if (b.length || (b = [o]), console.log(`Create a ${b.length}-page file named ${t}`), typeof (u == null ? void 0 : u.success) == "function")
1108
+ u.success(d, b);
1109
1109
  else {
1110
- let v, h = new Date().getTime(), F = 0, O = 0;
1111
- C.forEach((w, A) => {
1112
- c = c.from(w).toContainer().toCanvas().toPdf().get("pdf").then((S) => {
1113
- if (C.length > 1) {
1114
- const $ = new Date().getTime(), k = $ - h;
1115
- F += k, O += 1;
1116
- const P = F / O, j = C.length - (A + 1), T = (j * P / 1e3).toFixed(2);
1117
- h = $, j === 0 ? v && v.close() : O % 5 === 0 && (v = jt.loading({
1110
+ let v, h = new Date().getTime(), x = 0, B = 0;
1111
+ b.forEach((C, E) => {
1112
+ d = d.from(C).toContainer().toCanvas().toPdf().get("pdf").then((S) => {
1113
+ if (b.length > 1) {
1114
+ const O = new Date().getTime(), $ = O - h;
1115
+ x += $, B += 1;
1116
+ const V = x / B, j = b.length - (E + 1), T = (j * V / 1e3).toFixed(2);
1117
+ h = O, j === 0 ? v && v.close() : B % 5 === 0 && (v = Rt.loading({
1118
1118
  id: "MessageLoadingDownloadPdf",
1119
1119
  content: `\u521B\u5EFA${t},\u7EA6\u5269 ${T}s`,
1120
1120
  duration: 0
1121
1121
  }));
1122
1122
  }
1123
- C && A < C.length - 1 && S.addPage();
1123
+ b && E < b.length - 1 && S.addPage();
1124
1124
  });
1125
- }), c.save();
1125
+ }), d.save();
1126
1126
  }
1127
- d();
1127
+ c();
1128
1128
  } else
1129
- i();
1129
+ r();
1130
1130
  });
1131
1131
  }
1132
- function Kt(e) {
1133
- var a, n, l, t, s, u;
1132
+ function Lt(e) {
1133
+ var u, n, l, t, s, a;
1134
1134
  if (!e.bcid)
1135
1135
  return "";
1136
1136
  const o = document.createElement("canvas");
1137
- return o.height = 1, o.width = 1, po.toCanvas(o, {
1137
+ return o.height = 1, o.width = 1, fo.toCanvas(o, {
1138
1138
  bcid: e.bcid,
1139
- text: (a = e.defaultValue) != null ? a : "Unknown",
1139
+ text: (u = e.defaultValue) != null ? u : "Unknown",
1140
1140
  height: e.height,
1141
1141
  scaleX: (l = (n = e.scaleX) != null ? n : e.scale) != null ? l : 2,
1142
1142
  scaleY: (s = (t = e.scaleY) != null ? t : e.scale) != null ? s : 2,
1143
1143
  width: e.width,
1144
- padding: (u = e.padding) != null ? u : 0,
1144
+ padding: (a = e.padding) != null ? a : 0,
1145
1145
  ...e.bcid === "qrcode" ? { eclevel: "H" } : {}
1146
1146
  }), o.toDataURL();
1147
1147
  }
1148
- const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", Lt = /* @__PURE__ */ U({
1148
+ const Jo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", Ht = /* @__PURE__ */ N({
1149
1149
  __name: "qrcode",
1150
1150
  props: {
1151
1151
  path: {},
1152
1152
  isEdit: { type: Boolean }
1153
1153
  },
1154
1154
  setup(e) {
1155
- const o = e, { path: a } = Ce(o), { useField: n, getWidget: l } = ae(), t = M(() => l(a.value)), [s] = n(a), u = M(() => {
1156
- var i;
1157
- return (i = t == null ? void 0 : t.value) == null ? void 0 : i.options;
1155
+ const o = e, { path: u } = Ae(o), { useField: n, getWidget: l } = ae(), t = M(() => l(u.value)), [s] = n(u), a = M(() => {
1156
+ var r;
1157
+ return (r = t == null ? void 0 : t.value) == null ? void 0 : r.options;
1158
1158
  });
1159
- function d() {
1160
- var c;
1161
- const i = (c = u.value) != null ? c : {};
1162
- if (!(i != null && i.bcid))
1159
+ function c() {
1160
+ var d;
1161
+ const r = (d = a.value) != null ? d : {};
1162
+ if (!(r != null && r.bcid))
1163
1163
  return "";
1164
1164
  try {
1165
- return Kt({ ...i, defaultValue: s == null ? void 0 : s.value });
1166
- } catch (m) {
1167
- return console.error(String(m)), Et;
1165
+ return Lt({ ...r, defaultValue: s == null ? void 0 : s.value });
1166
+ } catch (g) {
1167
+ return console.error(String(g)), Et;
1168
1168
  }
1169
1169
  }
1170
- return (i, c) => u.value ? (r(), B("img", {
1170
+ return (r, d) => a.value ? (i(), k("img", {
1171
1171
  key: 0,
1172
- src: d(),
1173
- style: oe({ display: "block", background: "#fff", width: u.value.width + "px", height: u.value.height + "px" }),
1172
+ src: c(),
1173
+ style: ne({ display: "block", background: "#fff", width: a.value.width + "px", height: a.value.height + "px" }),
1174
1174
  draggable: "false",
1175
1175
  onerror: `this.src='${Et}'`
1176
- }, null, 12, Qo)) : N("", !0);
1176
+ }, null, 12, Jo)) : U("", !0);
1177
1177
  }
1178
- }), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1178
+ }), Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1179
1179
  __proto__: null,
1180
- default: Lt
1181
- }, Symbol.toStringTag, { value: "Module" })), Xo = {
1180
+ default: Ht
1181
+ }, Symbol.toStringTag, { value: "Module" })), Yo = {
1182
1182
  __name: "barcode",
1183
1183
  setup(e) {
1184
- return (o, a) => (r(), y(Lt, xe(ct(o.$props)), null, 16));
1184
+ return (o, u) => (i(), w(Ht, we(Le(o.$props)), null, 16));
1185
1185
  }
1186
- }, Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1186
+ }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1187
1187
  __proto__: null,
1188
- default: Xo
1189
- }, Symbol.toStringTag, { value: "Module" })), pt = /* @__PURE__ */ U({
1188
+ default: Yo
1189
+ }, Symbol.toStringTag, { value: "Module" })), pt = /* @__PURE__ */ N({
1190
1190
  __name: "view",
1191
1191
  props: {
1192
1192
  path: {},
@@ -1194,49 +1194,49 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1194
1194
  isView: { type: Boolean }
1195
1195
  },
1196
1196
  setup(e) {
1197
- const o = e, { getWidget: a, useDraggableOperation: n } = ae(), l = M(() => a(o.path)), { onAddWidget: t } = n(), s = (u, d, i) => {
1198
- var c;
1199
- return o.isView ? !0 : ((c = i == null ? void 0 : i.dataset) == null ? void 0 : c.category) === "basic";
1197
+ const o = e, { getWidget: u, useDraggableOperation: n } = ae(), l = M(() => u(o.path)), { onAddWidget: t } = n(), s = (a, c, r) => {
1198
+ var d;
1199
+ return o.isView ? !0 : ((d = r == null ? void 0 : r.dataset) == null ? void 0 : d.category) === "basic";
1200
1200
  };
1201
- return (u, d) => l.value && l.value.children ? (r(), y(b(ze), I({
1201
+ return (a, c) => l.value && l.value.children ? (i(), w(y(De), I({
1202
1202
  key: 0,
1203
1203
  list: l.value.children,
1204
1204
  class: { "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
1205
1205
  style: { paddingBottom: "0px", minHeight: "50px" },
1206
1206
  disabled: !o.isEdit,
1207
1207
  group: { name: "orchisky", put: s }
1208
- }, b(he), {
1209
- onAdd: d[0] || (d[0] = (i) => b(t)(i, o.path))
1208
+ }, y(he), {
1209
+ onAdd: c[0] || (c[0] = (r) => y(t)(r, o.path))
1210
1210
  }), {
1211
- item: p(({ element: i, index: c }) => [
1212
- le(u.$slots, "default", {
1213
- element: i,
1214
- index: c
1211
+ item: p(({ element: r, index: d }) => [
1212
+ oe(a.$slots, "default", {
1213
+ element: r,
1214
+ index: d
1215
1215
  }, () => [
1216
1216
  f(Ve, {
1217
- path: b(we)(o.path, c),
1217
+ path: y(Ce)(o.path, d),
1218
1218
  "is-edit": o.isEdit
1219
1219
  }, null, 8, ["path", "is-edit"])
1220
1220
  ])
1221
1221
  ]),
1222
1222
  footer: p(() => []),
1223
1223
  _: 3
1224
- }, 16, ["list", "class", "disabled", "group"])) : N("", !0);
1224
+ }, 16, ["list", "class", "disabled", "group"])) : U("", !0);
1225
1225
  }
1226
- }), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1226
+ }), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1227
1227
  __proto__: null,
1228
1228
  default: pt
1229
- }, Symbol.toStringTag, { value: "Module" })), en = /* @__PURE__ */ U({
1229
+ }, Symbol.toStringTag, { value: "Module" })), tn = /* @__PURE__ */ N({
1230
1230
  __name: "card",
1231
1231
  props: {
1232
1232
  path: {},
1233
1233
  isEdit: { type: Boolean }
1234
1234
  },
1235
1235
  setup(e) {
1236
- const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
1236
+ const o = e, { getWidget: u } = ae(), n = M(() => u(o.path));
1237
1237
  return (l, t) => {
1238
- const s = g("ACard");
1239
- return n.value && n.value.children ? (r(), y(s, {
1238
+ const s = m("ACard");
1239
+ return n.value && n.value.children ? (i(), w(s, {
1240
1240
  key: 0,
1241
1241
  title: n.value.name,
1242
1242
  size: "small",
@@ -1250,23 +1250,23 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1250
1250
  }, null, 8, ["path", "is-edit"])
1251
1251
  ]),
1252
1252
  _: 1
1253
- }, 8, ["title"])) : N("", !0);
1253
+ }, 8, ["title"])) : U("", !0);
1254
1254
  };
1255
1255
  }
1256
- }), tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1256
+ }), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1257
1257
  __proto__: null,
1258
- default: en
1259
- }, Symbol.toStringTag, { value: "Module" })), on = /* @__PURE__ */ U({
1258
+ default: tn
1259
+ }, Symbol.toStringTag, { value: "Module" })), nn = /* @__PURE__ */ N({
1260
1260
  __name: "form",
1261
1261
  props: {
1262
1262
  path: {},
1263
1263
  isEdit: { type: Boolean }
1264
1264
  },
1265
1265
  setup(e) {
1266
- const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
1266
+ const o = e, { getWidget: u } = ae(), n = M(() => u(o.path));
1267
1267
  return (l, t) => {
1268
- const s = g("ACard");
1269
- return n.value && n.value.children ? (r(), y(s, {
1268
+ const s = m("ACard");
1269
+ return n.value && n.value.children ? (i(), w(s, {
1270
1270
  key: 0,
1271
1271
  title: n.value.name,
1272
1272
  size: "small",
@@ -1279,9 +1279,9 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1279
1279
  "is-view": "",
1280
1280
  class: "arco-row"
1281
1281
  }, {
1282
- item: p(({ index: u }) => [
1282
+ item: p(({ index: a }) => [
1283
1283
  f(Ve, {
1284
- path: b(we)(o.path, u),
1284
+ path: y(Ce)(o.path, a),
1285
1285
  "is-edit": o.isEdit,
1286
1286
  class: "arco-col arco-col-12"
1287
1287
  }, null, 8, ["path", "is-edit"])
@@ -1290,34 +1290,34 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1290
1290
  }, 8, ["path", "is-edit"])
1291
1291
  ]),
1292
1292
  _: 1
1293
- }, 8, ["title"])) : N("", !0);
1293
+ }, 8, ["title"])) : U("", !0);
1294
1294
  };
1295
1295
  }
1296
- }), nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1296
+ }), ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1297
1297
  __proto__: null,
1298
- default: on
1299
- }, Symbol.toStringTag, { value: "Module" })), ln = /* @__PURE__ */ U({
1298
+ default: nn
1299
+ }, Symbol.toStringTag, { value: "Module" })), un = /* @__PURE__ */ N({
1300
1300
  __name: "grid",
1301
1301
  props: {
1302
1302
  path: {},
1303
1303
  isEdit: { type: Boolean }
1304
1304
  },
1305
1305
  setup(e) {
1306
- const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
1306
+ const o = e, { getWidget: u } = ae(), n = M(() => u(o.path));
1307
1307
  return (l, t) => {
1308
- const s = g("a-col"), u = g("a-row");
1309
- return n.value && n.value.key && n.value.children ? (r(), y(u, {
1308
+ const s = m("a-col"), a = m("a-row");
1309
+ return n.value && n.value.key && n.value.children ? (i(), w(a, {
1310
1310
  key: 0,
1311
1311
  gutter: 8
1312
1312
  }, {
1313
1313
  default: p(() => [
1314
- (r(!0), B(Q, null, de(n.value.children, (d, i) => (r(), y(s, {
1315
- key: i,
1314
+ (i(!0), k(Q, null, de(n.value.children, (c, r) => (i(), w(s, {
1315
+ key: r,
1316
1316
  span: 12
1317
1317
  }, {
1318
1318
  default: p(() => [
1319
1319
  f(Ve, {
1320
- path: b(we)(o.path, i),
1320
+ path: y(Ce)(o.path, r),
1321
1321
  "is-edit": o.isEdit
1322
1322
  }, null, 8, ["path", "is-edit"])
1323
1323
  ]),
@@ -1325,77 +1325,77 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1325
1325
  }, 1024))), 128))
1326
1326
  ]),
1327
1327
  _: 1
1328
- })) : N("", !0);
1328
+ })) : U("", !0);
1329
1329
  };
1330
1330
  }
1331
- }), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1331
+ }), an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1332
1332
  __proto__: null,
1333
- default: ln
1334
- }, Symbol.toStringTag, { value: "Module" })), an = /* @__PURE__ */ U({
1333
+ default: un
1334
+ }, Symbol.toStringTag, { value: "Module" })), sn = /* @__PURE__ */ N({
1335
1335
  __name: "hline",
1336
1336
  props: {
1337
1337
  path: {},
1338
1338
  isEdit: { type: Boolean }
1339
1339
  },
1340
1340
  setup(e) {
1341
- const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
1342
- return (l, t) => n.value && n.value.options ? (r(), B("div", {
1341
+ const o = e, { getWidget: u } = ae(), n = M(() => u(o.path));
1342
+ return (l, t) => n.value && n.value.options ? (i(), k("div", {
1343
1343
  key: 0,
1344
- style: oe(n.value.options)
1345
- }, null, 4)) : N("", !0);
1344
+ style: ne(n.value.options)
1345
+ }, null, 4)) : U("", !0);
1346
1346
  }
1347
- }), sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1347
+ }), rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1348
1348
  __proto__: null,
1349
- default: an
1350
- }, Symbol.toStringTag, { value: "Module" })), rn = ["src", "alt", "onerror"], xt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", cn = /* @__PURE__ */ U({
1349
+ default: sn
1350
+ }, Symbol.toStringTag, { value: "Module" })), cn = ["src", "alt", "onerror"], xt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", dn = /* @__PURE__ */ N({
1351
1351
  __name: "image",
1352
1352
  props: {
1353
1353
  path: {},
1354
1354
  isEdit: { type: Boolean }
1355
1355
  },
1356
1356
  setup(e) {
1357
- const o = e, { path: a } = Ce(o), { useField: n, getWidget: l } = ae(), t = M(() => l(a.value)), [s] = n(a);
1358
- return (u, d) => {
1359
- var i;
1360
- return t.value && t.value.options && t.value.model ? (r(), B("img", {
1357
+ const o = e, { path: u } = Ae(o), { useField: n, getWidget: l } = ae(), t = M(() => l(u.value)), [s] = n(u);
1358
+ return (a, c) => {
1359
+ var r;
1360
+ return t.value && t.value.options && t.value.model ? (i(), k("img", {
1361
1361
  key: 0,
1362
- src: (i = b(s)) != null ? i : xt,
1363
- style: oe({ width: t.value.options.width, height: t.value.options.height }),
1362
+ src: (r = y(s)) != null ? r : xt,
1363
+ style: ne({ width: t.value.options.width, height: t.value.options.height }),
1364
1364
  alt: t.value.name,
1365
1365
  draggable: "false",
1366
1366
  onerror: `this.src='${xt}'`
1367
- }, null, 12, rn)) : N("", !0);
1367
+ }, null, 12, cn)) : U("", !0);
1368
1368
  };
1369
1369
  }
1370
- }), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1370
+ }), pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1371
1371
  __proto__: null,
1372
- default: cn
1373
- }, Symbol.toStringTag, { value: "Module" })), pn = {
1372
+ default: dn
1373
+ }, Symbol.toStringTag, { value: "Module" })), fn = {
1374
1374
  key: 0,
1375
1375
  class: "fe--widget-subform"
1376
- }, fn = { class: "u-vxe-table" }, mn = /* @__PURE__ */ U({
1376
+ }, mn = { class: "u-vxe-table" }, gn = /* @__PURE__ */ N({
1377
1377
  __name: "subform",
1378
1378
  props: {
1379
1379
  path: {},
1380
1380
  isEdit: { type: Boolean }
1381
1381
  },
1382
1382
  setup(e) {
1383
- const o = e, { getWidget: a, useDraggableOperation: n } = ae(), l = M(() => a(o.path)), { onAddWidget: t } = n(), s = (u, d, i) => {
1384
- var c;
1385
- return ((c = i == null ? void 0 : i.dataset) == null ? void 0 : c.category) === "basic";
1383
+ const o = e, { getWidget: u, useDraggableOperation: n } = ae(), l = M(() => u(o.path)), { onAddWidget: t } = n(), s = (a, c, r) => {
1384
+ var d;
1385
+ return ((d = r == null ? void 0 : r.dataset) == null ? void 0 : d.category) === "basic";
1386
1386
  };
1387
- return (u, d) => {
1388
- const i = g("a-link"), c = g("a-space");
1389
- return l.value && l.value.children ? (r(), B("div", pn, [
1390
- f(c, null, {
1387
+ return (a, c) => {
1388
+ const r = m("a-link"), d = m("a-space");
1389
+ return l.value && l.value.children ? (i(), k("div", fn, [
1390
+ f(d, null, {
1391
1391
  default: p(() => [
1392
- f(i, null, {
1392
+ f(r, null, {
1393
1393
  default: p(() => [
1394
1394
  te("\u6DFB\u52A0")
1395
1395
  ]),
1396
1396
  _: 1
1397
1397
  }),
1398
- f(i, null, {
1398
+ f(r, null, {
1399
1399
  default: p(() => [
1400
1400
  te("\u5220\u9664")
1401
1401
  ]),
@@ -1404,19 +1404,19 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1404
1404
  ]),
1405
1405
  _: 1
1406
1406
  }),
1407
- R("div", fn, [
1408
- f(b(ze), I({
1407
+ R("div", mn, [
1408
+ f(y(De), I({
1409
1409
  list: l.value.children,
1410
1410
  class: { "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
1411
1411
  style: { paddingBottom: "0px", minHeight: "50px" },
1412
1412
  disabled: !o.isEdit,
1413
1413
  group: { name: "orchisky", put: s }
1414
- }, b(he), {
1415
- onAdd: d[0] || (d[0] = (m) => b(t)(m, o.path))
1414
+ }, y(he), {
1415
+ onAdd: c[0] || (c[0] = (g) => y(t)(g, o.path))
1416
1416
  }), {
1417
- item: p(({ index: m }) => [
1417
+ item: p(({ index: g }) => [
1418
1418
  f(Ve, {
1419
- path: b(we)(o.path, m),
1419
+ path: y(Ce)(o.path, g),
1420
1420
  "is-edit": o.isEdit
1421
1421
  }, null, 8, ["path", "is-edit"])
1422
1422
  ]),
@@ -1424,224 +1424,224 @@ const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
1424
1424
  _: 1
1425
1425
  }, 16, ["list", "class", "disabled", "group"])
1426
1426
  ])
1427
- ])) : N("", !0);
1427
+ ])) : U("", !0);
1428
1428
  };
1429
1429
  }
1430
1430
  });
1431
- const gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1431
+ const _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1432
1432
  __proto__: null,
1433
- default: mn
1434
- }, Symbol.toStringTag, { value: "Module" })), _n = /* @__PURE__ */ U({
1433
+ default: gn
1434
+ }, Symbol.toStringTag, { value: "Module" })), vn = /* @__PURE__ */ N({
1435
1435
  __name: "table",
1436
1436
  props: {
1437
1437
  path: {},
1438
1438
  isEdit: { type: Boolean }
1439
1439
  },
1440
1440
  setup(e) {
1441
- const o = e, { path: a } = Ce(o), { getWidget: n } = ae(), l = M(() => n(a.value)), t = M(() => {
1442
- var u, d;
1443
- return (d = (u = l == null ? void 0 : l.value) == null ? void 0 : u.options) != null ? d : {};
1441
+ const o = e, { path: u } = Ae(o), { getWidget: n } = ae(), l = M(() => n(u.value)), t = M(() => {
1442
+ var a, c;
1443
+ return (c = (a = l == null ? void 0 : l.value) == null ? void 0 : a.options) != null ? c : {};
1444
1444
  }), s = M(() => {
1445
- var d;
1446
- const u = (d = t.value) != null ? d : {};
1445
+ var c;
1446
+ const a = (c = t.value) != null ? c : {};
1447
1447
  return {
1448
- textAlign: u.textAlign,
1449
- fontSize: u.fontSize,
1450
- fontFamily: u.fontFamily
1448
+ textAlign: a.textAlign,
1449
+ fontSize: a.fontSize,
1450
+ fontFamily: a.fontFamily
1451
1451
  };
1452
1452
  });
1453
- return (u, d) => l.value && t.value ? (r(), B("table", {
1453
+ return (a, c) => l.value && t.value ? (i(), k("table", {
1454
1454
  key: 0,
1455
- style: oe([s.value, { width: "100%", height: "100%", "table-layout": "fixed", "border-collapse": "collapse" }])
1455
+ style: ne([s.value, { width: "100%", height: "100%", "table-layout": "fixed", "border-collapse": "collapse" }])
1456
1456
  }, [
1457
- (r(!0), B(Q, null, de(t.value.rowspan, (i) => (r(), B("tr", { key: i }, [
1458
- (r(!0), B(Q, null, de(t.value.colspan, (c) => (r(), B("td", {
1459
- key: c,
1457
+ (i(!0), k(Q, null, de(t.value.rowspan, (r) => (i(), k("tr", { key: r }, [
1458
+ (i(!0), k(Q, null, de(t.value.colspan, (d) => (i(), k("td", {
1459
+ key: d,
1460
1460
  style: { border: "1px solid #000" }
1461
1461
  }))), 128))
1462
1462
  ]))), 128))
1463
- ], 4)) : N("", !0);
1463
+ ], 4)) : U("", !0);
1464
1464
  }
1465
- }), vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1465
+ }), bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1466
1466
  __proto__: null,
1467
- default: _n
1468
- }, Symbol.toStringTag, { value: "Module" })), bn = /* @__PURE__ */ U({
1467
+ default: vn
1468
+ }, Symbol.toStringTag, { value: "Module" })), yn = /* @__PURE__ */ N({
1469
1469
  __name: "text",
1470
1470
  props: {
1471
1471
  path: {},
1472
1472
  isEdit: { type: Boolean }
1473
1473
  },
1474
1474
  setup(e) {
1475
- const o = e, { path: a } = Ce(o), { useField: n, getWidget: l } = ae(), t = M(() => l(a.value)), [s] = n(a), u = M(() => {
1476
- var i;
1477
- return (i = t == null ? void 0 : t.value) == null ? void 0 : i.options;
1478
- }), d = M(() => {
1479
- var c;
1480
- const i = (c = u.value) != null ? c : {};
1475
+ const o = e, { path: u } = Ae(o), { useField: n, getWidget: l } = ae(), t = M(() => l(u.value)), [s] = n(u), a = M(() => {
1476
+ var r;
1477
+ return (r = t == null ? void 0 : t.value) == null ? void 0 : r.options;
1478
+ }), c = M(() => {
1479
+ var d;
1480
+ const r = (d = a.value) != null ? d : {};
1481
1481
  return {
1482
- textAlign: i.textAlign,
1483
- fontSize: i.fontSize,
1484
- fontFamily: i.fontFamily
1482
+ textAlign: r.textAlign,
1483
+ fontSize: r.fontSize,
1484
+ fontFamily: r.fontFamily
1485
1485
  };
1486
1486
  });
1487
- return (i, c) => t.value ? (r(), B("div", {
1487
+ return (r, d) => t.value ? (i(), k("div", {
1488
1488
  key: 0,
1489
- style: oe(d.value)
1490
- }, J(t.value.name) + " " + J(b(s)), 5)) : N("", !0);
1489
+ style: ne(c.value)
1490
+ }, J(t.value.name) + " " + J(y(s)), 5)) : U("", !0);
1491
1491
  }
1492
- }), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1492
+ }), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1493
1493
  __proto__: null,
1494
- default: bn
1495
- }, Symbol.toStringTag, { value: "Module" })), Ht = /* @__PURE__ */ U({
1494
+ default: yn
1495
+ }, Symbol.toStringTag, { value: "Module" })), Gt = /* @__PURE__ */ N({
1496
1496
  __name: "unknown",
1497
1497
  props: {
1498
1498
  path: {},
1499
1499
  isEdit: { type: Boolean }
1500
1500
  },
1501
1501
  setup(e) {
1502
- const o = e, { path: a } = Ce(o), { config: n } = Pe(), { useField: l, getWidget: t } = ae(), s = M(() => t(a.value)), [u] = l(a), d = M(() => {
1503
- var m, C, v, h, F;
1504
- return ((m = s.value) == null ? void 0 : m.options) ? {
1502
+ const o = e, { path: u } = Ae(o), { config: n } = ze(), { useField: l, getWidget: t } = ae(), s = M(() => t(u.value)), [a] = l(u), c = M(() => {
1503
+ var g, b, v, h, x;
1504
+ return ((g = s.value) == null ? void 0 : g.options) ? {
1505
1505
  field: s.value.model,
1506
1506
  label: s.value.name,
1507
- rules: s.value.rules || ((C = s.value.options) != null && C.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${s.value.name}` }] : []),
1507
+ rules: s.value.rules || ((b = s.value.options) != null && b.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${s.value.name}` }] : []),
1508
1508
  tooltip: (v = s.value.options) == null ? void 0 : v.tooltip,
1509
- labelColFlex: (F = (h = s.value.options) == null ? void 0 : h.labelWidth) != null ? F : n.value.labelWidth
1509
+ labelColFlex: (x = (h = s.value.options) == null ? void 0 : h.labelWidth) != null ? x : n.value.labelWidth
1510
1510
  } : {};
1511
- }), i = M(() => {
1512
- var m;
1513
- const c = (m = s.value) == null ? void 0 : m.options;
1514
- return c ? {
1511
+ }), r = M(() => {
1512
+ var g;
1513
+ const d = (g = s.value) == null ? void 0 : g.options;
1514
+ return d ? {
1515
1515
  size: "small",
1516
- placeholder: c.placeholder,
1517
- disabled: c == null ? void 0 : c.disabled,
1518
- options: c == null ? void 0 : c.options,
1516
+ placeholder: d.placeholder,
1517
+ disabled: d == null ? void 0 : d.disabled,
1518
+ options: d == null ? void 0 : d.options,
1519
1519
  style: { width: "100%" }
1520
1520
  } : {};
1521
1521
  });
1522
- return (c, m) => {
1523
- const C = g("AFormItem");
1524
- return s.value ? (r(), y(C, xe(I({ key: 0 }, d.value)), {
1522
+ return (d, g) => {
1523
+ const b = m("AFormItem");
1524
+ return s.value ? (i(), w(b, we(I({ key: 0 }, c.value)), {
1525
1525
  default: p(() => [
1526
- (r(), y(be(s.value.type), I({
1527
- modelValue: b(u),
1528
- "onUpdate:modelValue": m[0] || (m[0] = (v) => Vt(u) ? u.value = v : null),
1526
+ (i(), w(ge(s.value.type), I({
1527
+ modelValue: y(a),
1528
+ "onUpdate:modelValue": g[0] || (g[0] = (v) => jt(a) ? a.value = v : null),
1529
1529
  size: "small"
1530
- }, i.value), null, 16, ["modelValue"]))
1530
+ }, r.value), null, 16, ["modelValue"]))
1531
1531
  ]),
1532
1532
  _: 1
1533
- }, 16)) : N("", !0);
1533
+ }, 16)) : U("", !0);
1534
1534
  };
1535
1535
  }
1536
- }), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1536
+ }), wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1537
1537
  __proto__: null,
1538
- default: Ht
1539
- }, Symbol.toStringTag, { value: "Module" })), Ye = /* @__PURE__ */ Object.assign({ "./barcode.vue": Yo, "./card.vue": tn, "./form.vue": nn, "./grid.vue": un, "./hline.vue": sn, "./image.vue": dn, "./qrcode.vue": Jo, "./subform.vue": gn, "./table.vue": vn, "./text.vue": yn, "./unknown.vue": hn, "./view.vue": Zo });
1538
+ default: Gt
1539
+ }, Symbol.toStringTag, { value: "Module" })), Ze = /* @__PURE__ */ Object.assign({ "./barcode.vue": Zo, "./card.vue": on, "./form.vue": ln, "./grid.vue": an, "./hline.vue": rn, "./image.vue": pn, "./qrcode.vue": Xo, "./subform.vue": _n, "./table.vue": bn, "./text.vue": hn, "./unknown.vue": wn, "./view.vue": en });
1540
1540
  function Ft(e) {
1541
- const o = Object.keys(Ye).find((a) => a.indexOf(`${e}.vue`) !== -1);
1542
- return o && Ye[o] ? Ye[o].default : Ht;
1541
+ const o = Object.keys(Ze).find((u) => u.indexOf(`${e}.vue`) !== -1);
1542
+ return o && Ze[o] ? Ze[o].default : Gt;
1543
1543
  }
1544
- const wn = {
1544
+ const Cn = {
1545
1545
  key: 0,
1546
1546
  class: "fe--widget-tool-btn"
1547
- }, Cn = {
1547
+ }, An = {
1548
1548
  key: 0,
1549
1549
  class: "fe--widget-tool-rb"
1550
- }, Ve = /* @__PURE__ */ U({
1550
+ }, Ve = /* @__PURE__ */ N({
1551
1551
  __name: "widget-item",
1552
1552
  props: {
1553
1553
  path: {},
1554
1554
  isEdit: { type: Boolean }
1555
1555
  },
1556
1556
  setup(e) {
1557
- const o = e, { useWidgetOperation: a } = ae(), { onDelete: n, onSelected: l, hasSelected: t, onCopy: s } = a(), { getWidget: u, getWidgetProperty: d } = ae(), i = M(() => u(o.path)), c = () => {
1558
- var w;
1559
- return ((w = i.value) == null ? void 0 : w.category) === "only";
1560
- }, m = () => t(o.path);
1561
- function C(w) {
1562
- return { "data-type": w.type, "data-category": w.category };
1557
+ const o = e, { useWidgetOperation: u } = ae(), { onDelete: n, onSelected: l, hasSelected: t, onCopy: s } = u(), { getWidget: a, getWidgetProperty: c } = ae(), r = M(() => a(o.path)), d = () => {
1558
+ var C;
1559
+ return ((C = r.value) == null ? void 0 : C.category) === "only";
1560
+ }, g = () => t(o.path);
1561
+ function b(C) {
1562
+ return { "data-type": C.type, "data-category": C.category };
1563
1563
  }
1564
1564
  function v() {
1565
- const w = i.value;
1566
- return !(w != null && w.options) || !w.fixed ? {} : {
1565
+ const C = r.value;
1566
+ return !(C != null && C.options) || !C.fixed ? {} : {
1567
1567
  position: "absolute",
1568
- width: w.options.width,
1569
- height: w.options.height,
1570
- left: w.options.left,
1571
- top: w.options.top,
1572
- zIndex: m() ? "9" : "2"
1568
+ width: C.options.width,
1569
+ height: C.options.height,
1570
+ left: C.options.left,
1571
+ top: C.options.top,
1572
+ zIndex: g() ? "9" : "2"
1573
1573
  };
1574
1574
  }
1575
- function h(w = !1) {
1576
- return { "fe--widget-view": !0, "is-selected": m(), "fe--widget-view-fixed": w };
1575
+ function h(C = !1) {
1576
+ return { "fe--widget-view": !0, "is-selected": g(), "fe--widget-view-fixed": C };
1577
1577
  }
1578
- function F(w = !1) {
1579
- return o.isEdit ? { "fe--widget-item": !0, "fe-cl": !0, "fe--widget-item-fixed": w } : {};
1578
+ function x(C = !1) {
1579
+ return o.isEdit ? { "fe--widget-item": !0, "fe-cl": !0, "fe--widget-item-fixed": C } : {};
1580
1580
  }
1581
- function O() {
1581
+ function B() {
1582
1582
  return o.isEdit ? {} : v();
1583
1583
  }
1584
- return (w, A) => {
1585
- const S = g("icon-drag-dot-vertical"), $ = g("icon-copy"), k = g("icon-delete");
1586
- return i.value ? (r(), B("div", I({ key: 0 }, C(i.value), {
1587
- class: F(i.value.fixed),
1588
- style: O()
1584
+ return (C, E) => {
1585
+ const S = m("icon-drag-dot-vertical"), O = m("icon-copy"), $ = m("icon-delete");
1586
+ return r.value ? (i(), k("div", I({ key: 0 }, b(r.value), {
1587
+ class: x(r.value.fixed),
1588
+ style: B()
1589
1589
  }), [
1590
- o.isEdit ? (r(), B("div", {
1590
+ o.isEdit ? (i(), k("div", {
1591
1591
  key: 0,
1592
- style: oe(v()),
1593
- class: Be(h(i.value.fixed)),
1594
- onClick: A[3] || (A[3] = Ke((P) => b(l)(o.path), ["stop"]))
1592
+ style: ne(v()),
1593
+ class: Be(h(r.value.fixed)),
1594
+ onClick: E[3] || (E[3] = Ke((V) => y(l)(o.path), ["stop"]))
1595
1595
  }, [
1596
- m() ? (r(), B("div", {
1596
+ g() ? (i(), k("div", {
1597
1597
  key: 0,
1598
1598
  class: "fe--widget-tool",
1599
- onClick: A[2] || (A[2] = Ke(() => {
1599
+ onClick: E[2] || (E[2] = Ke(() => {
1600
1600
  }, ["stop"]))
1601
1601
  }, [
1602
1602
  R("div", {
1603
- class: Be(["fe--widget-tool-lt", { "fe-moving": !c() }])
1603
+ class: Be(["fe--widget-tool-lt", { "fe-moving": !d() }])
1604
1604
  }, [
1605
- c() ? N("", !0) : (r(), B("span", wn, [
1605
+ d() ? U("", !0) : (i(), k("span", Cn, [
1606
1606
  f(S)
1607
1607
  ]))
1608
1608
  ], 2),
1609
- c() ? N("", !0) : (r(), B("div", Cn, [
1609
+ d() ? U("", !0) : (i(), k("div", An, [
1610
1610
  R("span", {
1611
1611
  class: "fe--widget-tool-btn",
1612
- onClick: A[0] || (A[0] = (P) => b(s)(o.path))
1612
+ onClick: E[0] || (E[0] = (V) => y(s)(o.path))
1613
1613
  }, [
1614
- f($)
1614
+ f(O)
1615
1615
  ]),
1616
- b(d)(o.path).isDelete ? (r(), B("span", {
1616
+ y(c)(o.path).isDelete ? (i(), k("span", {
1617
1617
  key: 0,
1618
1618
  class: "fe--widget-tool-btn",
1619
- onClick: A[1] || (A[1] = (P) => b(n)(o.path))
1619
+ onClick: E[1] || (E[1] = (V) => y(n)(o.path))
1620
1620
  }, [
1621
- f(k)
1622
- ])) : N("", !0)
1621
+ f($)
1622
+ ])) : U("", !0)
1623
1623
  ]))
1624
- ])) : N("", !0),
1625
- (r(), y(be(b(Ft)(i.value.type)), xe(ct(o)), null, 16))
1626
- ], 6)) : (r(), y(be(b(Ft)(i.value.type)), xe(I({ key: 1 }, o)), null, 16))
1627
- ], 16)) : N("", !0);
1624
+ ])) : U("", !0),
1625
+ (i(), w(ge(y(Ft)(r.value.type)), we(Le(o)), null, 16))
1626
+ ], 6)) : (i(), w(ge(y(Ft)(r.value.type)), we(I({ key: 1 }, o)), null, 16))
1627
+ ], 16)) : U("", !0);
1628
1628
  };
1629
1629
  }
1630
- }), it = /* @__PURE__ */ U({
1630
+ }), st = /* @__PURE__ */ N({
1631
1631
  __name: "preview",
1632
1632
  props: {
1633
1633
  isEdit: { type: Boolean, default: !1 }
1634
1634
  },
1635
1635
  setup(e) {
1636
- const o = e, { useDraggableOperation: a } = ae(), n = q(), { onAddWidget: l, onUpdateWidget: t } = a(n), { children: s, config: u, models: d } = Pe();
1637
- return (i, c) => {
1638
- const m = g("AForm");
1639
- return r(), y(m, {
1636
+ const o = e, { useDraggableOperation: u } = ae(), n = K(), { onAddWidget: l, onUpdateWidget: t } = u(n), { children: s, config: a, models: c } = ze();
1637
+ return (r, d) => {
1638
+ const g = m("AForm");
1639
+ return i(), w(g, {
1640
1640
  class: "fe--widget-form",
1641
- model: b(d),
1642
- "label-col-props": { flex: b(u).labelWidth },
1641
+ model: y(c),
1642
+ "label-col-props": { flex: y(a).labelWidth },
1643
1643
  "label-col-style": { paddingRight: "8px" },
1644
- "label-align": b(u).labelAlign,
1644
+ "label-align": y(a).labelAlign,
1645
1645
  size: "small",
1646
1646
  style: { width: "100%", height: "100%" }
1647
1647
  }, {
@@ -1649,27 +1649,27 @@ const wn = {
1649
1649
  R("div", {
1650
1650
  ref_key: "form$",
1651
1651
  ref: n,
1652
- style: oe([{ display: "block", height: "100%", "min-height": "0", "box-shadow": "0 0 5px rgba(0, 0, 0, 0.08)" }, { width: `${b(u).width}`, height: `${b(u).height}`, margin: "0 auto" }])
1652
+ style: ne([{ display: "block", height: "100%", "min-height": "0", "box-shadow": "0 0 5px rgba(0, 0, 0, 0.08)" }, { width: `${y(a).width}`, height: `${y(a).height}`, margin: "0 auto" }])
1653
1653
  }, [
1654
- f(b(ze), I({
1655
- modelValue: b(s),
1656
- "onUpdate:modelValue": c[0] || (c[0] = (C) => Vt(s) ? s.value = C : null),
1654
+ f(y(De), I({
1655
+ modelValue: y(s),
1656
+ "onUpdate:modelValue": d[0] || (d[0] = (b) => jt(s) ? s.value = b : null),
1657
1657
  class: { "fe--widget-content": !0, "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
1658
1658
  disabled: !o.isEdit,
1659
1659
  group: { name: "orchisky", put: !0 }
1660
- }, b(he), {
1661
- onAdd: c[1] || (c[1] = (C) => b(l)(C)),
1662
- onEnd: c[2] || (c[2] = (C) => b(t)(C))
1660
+ }, y(he), {
1661
+ onAdd: d[1] || (d[1] = (b) => y(l)(b)),
1662
+ onEnd: d[2] || (d[2] = (b) => y(t)(b))
1663
1663
  }), {
1664
- item: p(({ element: C, index: v }) => [
1665
- C && C.key ? (r(), y(Ve, {
1664
+ item: p(({ element: b, index: v }) => [
1665
+ b && b.key ? (i(), w(Ve, {
1666
1666
  key: 0,
1667
- path: b(we)(null, v),
1667
+ path: y(Ce)(null, v),
1668
1668
  "is-edit": o.isEdit
1669
- }, null, 8, ["path", "is-edit"])) : N("", !0)
1669
+ }, null, 8, ["path", "is-edit"])) : U("", !0)
1670
1670
  ]),
1671
1671
  footer: p(() => [
1672
- le(i.$slots, "default")
1672
+ oe(r.$slots, "default")
1673
1673
  ]),
1674
1674
  _: 3
1675
1675
  }, 16, ["modelValue", "class", "disabled"])
@@ -1680,52 +1680,52 @@ const wn = {
1680
1680
  };
1681
1681
  }
1682
1682
  });
1683
- function Gt() {
1684
- const { children: e, selectPath: o } = Pe(), a = () => ({ children: e.value });
1685
- function n(u) {
1686
- if (!u)
1683
+ function Qt() {
1684
+ const { children: e, selectPath: o } = ze(), u = () => ({ children: e.value });
1685
+ function n(a) {
1686
+ if (!a)
1687
1687
  return null;
1688
- const d = It(a(), u);
1689
- return d || null;
1688
+ const c = Mt(u(), a);
1689
+ return c || null;
1690
1690
  }
1691
- const l = (u) => u.name || "[\u672A\u547D\u540D]", t = M(() => {
1692
- const u = [], d = (i, c) => {
1693
- i.forEach((m, C) => {
1691
+ const l = (a) => a.name || "[\u672A\u547D\u540D]", t = M(() => {
1692
+ const a = [], c = (r, d) => {
1693
+ r.forEach((g, b) => {
1694
1694
  var h;
1695
- const v = we(c != null ? c : null, C);
1696
- m.model && u.push({ ...m, key: v, title: l(m) }), (h = m.children) != null && h.length && d(m.children, v);
1695
+ const v = Ce(d != null ? d : null, b);
1696
+ g.model && a.push({ ...g, key: v, title: l(g) }), (h = g.children) != null && h.length && c(g.children, v);
1697
1697
  });
1698
1698
  };
1699
- return d(a().children), u;
1699
+ return c(u().children), a;
1700
1700
  }), s = M(() => {
1701
1701
  if (o.value) {
1702
- const u = String(o.value).split("."), d = [];
1703
- return u.reduce((i, c, m) => {
1704
- const C = [...u].slice(-m).join("."), v = n(C);
1705
- return v && i.push({ ...v, path: C, name: l(v) }), i;
1706
- }, d).reverse();
1702
+ const a = String(o.value).split("."), c = [];
1703
+ return a.reduce((r, d, g) => {
1704
+ const b = [...a].slice(-g).join("."), v = n(b);
1705
+ return v && r.push({ ...v, path: b, name: l(v) }), r;
1706
+ }, c).reverse();
1707
1707
  }
1708
1708
  return [];
1709
1709
  });
1710
1710
  return { widgetArray: t, selectedArrayWidget: s };
1711
1711
  }
1712
- const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn = {
1712
+ const En = { class: "u-h u-card" }, xn = { class: "u-card__hd u-aside__hd" }, Fn = {
1713
1713
  class: "u-flex",
1714
1714
  style: { width: "100%", padding: "0 8px" }
1715
- }, Fn = { class: "u-flex__item" }, kn = { class: "u-main u-aside__bdf" }, Bn = { class: "u-aside__ft" }, $n = { class: "u-aside__ft-content" }, On = { class: "u-main u-h" }, Sn = /* @__PURE__ */ U({
1715
+ }, kn = { class: "u-flex__item" }, Bn = { class: "u-main u-aside__bdf" }, $n = { class: "u-aside__ft" }, On = { class: "u-aside__ft-content" }, Sn = { class: "u-main u-h" }, Dn = /* @__PURE__ */ N({
1716
1716
  __name: "main",
1717
1717
  emits: ["save"],
1718
1718
  setup(e, { emit: o }) {
1719
- const { useWidgetOperation: a } = ae(), { selectedArrayWidget: n } = Gt(), { setConfig: l, toJson: t, onSelected: s, onReset: u } = a(), d = q(!1);
1720
- function i([h, F]) {
1721
- l("width", h), l("height", F);
1719
+ const { useWidgetOperation: u } = ae(), { selectedArrayWidget: n } = Qt(), { setConfig: l, toJson: t, onSelected: s, onReset: a } = u(), c = K(!1);
1720
+ function r([h, x]) {
1721
+ l("width", h), l("height", x);
1722
1722
  }
1723
- function c(h) {
1724
- h === "A4" && i(["210mm", "297mm"]), h === "PC" && i(["1920px", "1080px"]), h === "Auto" && i(["100%", "100%"]), h === "Mobile" && i(["375px", "100%"]);
1723
+ function d(h) {
1724
+ h === "A4" && r(["210mm", "297mm"]), h === "PC" && r(["1920px", "1080px"]), h === "Auto" && r(["100%", "100%"]), h === "Mobile" && r(["375px", "100%"]);
1725
1725
  }
1726
- const m = o;
1727
- function C() {
1728
- m("save", t());
1726
+ const g = o;
1727
+ function b() {
1728
+ g("save", t());
1729
1729
  }
1730
1730
  function v() {
1731
1731
  co.warning({
@@ -1737,56 +1737,56 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1737
1737
  hideCancel: !1,
1738
1738
  okButtonProps: { status: "warning" },
1739
1739
  onOk() {
1740
- u();
1740
+ a();
1741
1741
  }
1742
1742
  });
1743
1743
  }
1744
- return (h, F) => {
1745
- const O = g("icon-desktop"), w = g("a-button"), A = g("icon-computer"), S = g("icon-drive-file"), $ = g("icon-mobile"), k = g("a-space"), P = g("icon-save"), j = g("icon-eye"), T = g("icon-eraser"), Y = g("icon-right"), ie = g("a-link"), L = g("a-breadcrumb-item"), ue = g("a-breadcrumb"), _ = g("a-drawer");
1746
- return r(), B("div", An, [
1747
- R("div", En, [
1748
- R("div", xn, [
1749
- R("div", Fn, [
1750
- le(h.$slots, "setWidthHeight", { setWidthHeight: i }, () => [
1751
- f(k, { size: "mini" }, {
1744
+ return (h, x) => {
1745
+ const B = m("icon-desktop"), C = m("a-button"), E = m("icon-computer"), S = m("icon-drive-file"), O = m("icon-mobile"), $ = m("a-space"), V = m("icon-save"), j = m("icon-eye"), T = m("icon-eraser"), Y = m("icon-right"), ie = m("a-link"), L = m("a-breadcrumb-item"), ue = m("a-breadcrumb"), _ = m("a-drawer");
1746
+ return i(), k("div", En, [
1747
+ R("div", xn, [
1748
+ R("div", Fn, [
1749
+ R("div", kn, [
1750
+ oe(h.$slots, "setWidthHeight", { setWidthHeight: r }, () => [
1751
+ f($, { size: "mini" }, {
1752
1752
  default: p(() => [
1753
- f(w, {
1753
+ f(C, {
1754
1754
  size: "mini",
1755
1755
  title: "\u81EA\u52A8",
1756
- onClick: F[0] || (F[0] = (E) => c("Auto"))
1756
+ onClick: x[0] || (x[0] = (A) => d("Auto"))
1757
1757
  }, {
1758
1758
  icon: p(() => [
1759
- f(O, { size: 14 })
1759
+ f(B, { size: 14 })
1760
1760
  ]),
1761
1761
  _: 1
1762
1762
  }),
1763
- f(w, {
1763
+ f(C, {
1764
1764
  size: "mini",
1765
1765
  title: " \u62A5\u8868",
1766
- onClick: F[1] || (F[1] = (E) => c("PC"))
1766
+ onClick: x[1] || (x[1] = (A) => d("PC"))
1767
1767
  }, {
1768
1768
  icon: p(() => [
1769
- f(A, { size: 14 })
1769
+ f(E, { size: 14 })
1770
1770
  ]),
1771
1771
  _: 1
1772
1772
  }),
1773
- f(w, {
1773
+ f(C, {
1774
1774
  title: "A4",
1775
1775
  size: "mini",
1776
- onClick: F[2] || (F[2] = (E) => c("A4"))
1776
+ onClick: x[2] || (x[2] = (A) => d("A4"))
1777
1777
  }, {
1778
1778
  icon: p(() => [
1779
1779
  f(S, { size: 14 })
1780
1780
  ]),
1781
1781
  _: 1
1782
1782
  }),
1783
- f(w, {
1783
+ f(C, {
1784
1784
  size: "mini",
1785
1785
  title: "\u624B\u673A",
1786
- onClick: F[3] || (F[3] = (E) => c("Mobile"))
1786
+ onClick: x[3] || (x[3] = (A) => d("Mobile"))
1787
1787
  }, {
1788
1788
  icon: p(() => [
1789
- f($, { size: 14 })
1789
+ f(O, { size: 14 })
1790
1790
  ]),
1791
1791
  _: 1
1792
1792
  })
@@ -1796,32 +1796,32 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1796
1796
  ])
1797
1797
  ]),
1798
1798
  R("div", null, [
1799
- f(k, { size: "mini" }, {
1799
+ f($, { size: "mini" }, {
1800
1800
  default: p(() => [
1801
- f(w, {
1801
+ f(C, {
1802
1802
  size: "mini",
1803
1803
  title: "\u4FDD\u5B58",
1804
- onClick: F[4] || (F[4] = (E) => C())
1804
+ onClick: x[4] || (x[4] = (A) => b())
1805
1805
  }, {
1806
1806
  icon: p(() => [
1807
- f(P, { size: 14 })
1807
+ f(V, { size: 14 })
1808
1808
  ]),
1809
1809
  _: 1
1810
1810
  }),
1811
- f(w, {
1811
+ f(C, {
1812
1812
  size: "mini",
1813
1813
  title: "\u9884\u89C8",
1814
- onClick: F[5] || (F[5] = (E) => d.value = !0)
1814
+ onClick: x[5] || (x[5] = (A) => c.value = !0)
1815
1815
  }, {
1816
1816
  icon: p(() => [
1817
1817
  f(j, { size: 14 })
1818
1818
  ]),
1819
1819
  _: 1
1820
1820
  }),
1821
- f(w, {
1821
+ f(C, {
1822
1822
  size: "mini",
1823
1823
  title: "\u6E05\u7A7A",
1824
- onClick: F[6] || (F[6] = (E) => v())
1824
+ onClick: x[6] || (x[6] = (A) => v())
1825
1825
  }, {
1826
1826
  icon: p(() => [
1827
1827
  f(T, { size: 14 })
@@ -1834,20 +1834,20 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1834
1834
  ])
1835
1835
  ])
1836
1836
  ]),
1837
- R("div", kn, [
1838
- f(it, { "is-edit": !0 })
1839
- ]),
1840
1837
  R("div", Bn, [
1841
- R("div", $n, [
1838
+ f(st, { "is-edit": !0 })
1839
+ ]),
1840
+ R("div", $n, [
1841
+ R("div", On, [
1842
1842
  f(ue, {
1843
- onClick: F[7] || (F[7] = Ke(() => {
1843
+ onClick: x[7] || (x[7] = Ke(() => {
1844
1844
  }, ["stop"]))
1845
1845
  }, {
1846
1846
  separator: p(() => [
1847
1847
  f(Y)
1848
1848
  ]),
1849
1849
  default: p(() => {
1850
- var E;
1850
+ var A;
1851
1851
  return [
1852
1852
  f(L, null, {
1853
1853
  default: p(() => [
@@ -1860,20 +1860,20 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1860
1860
  ]),
1861
1861
  _: 1
1862
1862
  }),
1863
- (E = b(n)) != null && E.length ? (r(!0), B(Q, { key: 0 }, de(b(n), (V, re) => (r(), y(L, { key: re }, {
1863
+ (A = y(n)) != null && A.length ? (i(!0), k(Q, { key: 0 }, de(y(n), (P, re) => (i(), w(L, { key: re }, {
1864
1864
  default: p(() => [
1865
- V ? (r(), y(ie, {
1865
+ P ? (i(), w(ie, {
1866
1866
  key: 0,
1867
- onClick: (X) => b(s)(V.path)
1867
+ onClick: (X) => y(s)(P.path)
1868
1868
  }, {
1869
1869
  default: p(() => [
1870
- te(J(V.name), 1)
1870
+ te(J(P.name), 1)
1871
1871
  ]),
1872
1872
  _: 2
1873
- }, 1032, ["onClick"])) : N("", !0)
1873
+ }, 1032, ["onClick"])) : U("", !0)
1874
1874
  ]),
1875
1875
  _: 2
1876
- }, 1024))), 128)) : N("", !0)
1876
+ }, 1024))), 128)) : U("", !0)
1877
1877
  ];
1878
1878
  }),
1879
1879
  _: 1
@@ -1881,8 +1881,8 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1881
1881
  ])
1882
1882
  ]),
1883
1883
  f(_, {
1884
- visible: d.value,
1885
- "onUpdate:visible": F[8] || (F[8] = (E) => d.value = E),
1884
+ visible: c.value,
1885
+ "onUpdate:visible": x[8] || (x[8] = (A) => c.value = A),
1886
1886
  placement: "bottom",
1887
1887
  height: "80%",
1888
1888
  footer: !1,
@@ -1893,8 +1893,8 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1893
1893
  te("\u9884\u89C8")
1894
1894
  ]),
1895
1895
  default: p(() => [
1896
- R("div", On, [
1897
- f(it)
1896
+ R("div", Sn, [
1897
+ f(st)
1898
1898
  ])
1899
1899
  ]),
1900
1900
  _: 1
@@ -1903,16 +1903,16 @@ const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn
1903
1903
  };
1904
1904
  }
1905
1905
  });
1906
- const Dn = { class: "u-card u-h" }, zn = {
1906
+ const zn = { class: "u-card u-h" }, Vn = {
1907
1907
  class: "u-card__hd u-aside__hd",
1908
1908
  style: { "padding-left": "0" }
1909
1909
  }, Pn = {
1910
1910
  class: "u-tabs u-tabs--small",
1911
1911
  style: { border: "0" }
1912
- }, Vn = ["onClick"], jn = {
1912
+ }, jn = ["onClick"], Rn = {
1913
1913
  class: "u-card__bd fe-cl u-aside__bd",
1914
1914
  style: { padding: "0" }
1915
- }, Qt = /* @__PURE__ */ U({
1915
+ }, Jt = /* @__PURE__ */ N({
1916
1916
  __name: "tabs",
1917
1917
  props: {
1918
1918
  list: Array,
@@ -1923,38 +1923,38 @@ const Dn = { class: "u-card u-h" }, zn = {
1923
1923
  },
1924
1924
  emits: ["update:tab-index"],
1925
1925
  setup(e, { emit: o }) {
1926
- const a = o, n = e, l = q(n.tabIndex);
1927
- function t(u) {
1928
- return { "is-active": u === l.value };
1926
+ const u = o, n = e, l = K(n.tabIndex);
1927
+ function t(a) {
1928
+ return { "is-active": a === l.value };
1929
1929
  }
1930
- function s(u) {
1931
- l.value = u, a("update:tab-index", l.value);
1930
+ function s(a) {
1931
+ l.value = a, u("update:tab-index", l.value);
1932
1932
  }
1933
- return ne(
1933
+ return le(
1934
1934
  () => n.tabIndex,
1935
- (u) => {
1936
- l.value = u;
1935
+ (a) => {
1936
+ l.value = a;
1937
1937
  }
1938
- ), (u, d) => (r(), B("div", Dn, [
1939
- R("div", zn, [
1938
+ ), (a, c) => (i(), k("div", zn, [
1939
+ R("div", Vn, [
1940
1940
  R("div", Pn, [
1941
- (r(!0), B(Q, null, de(n.list, (i, c) => (r(), B("div", {
1942
- key: c,
1941
+ (i(!0), k(Q, null, de(n.list, (r, d) => (i(), k("div", {
1942
+ key: d,
1943
1943
  class: "u-tabs__item",
1944
- onClick: (m) => s(c)
1944
+ onClick: (g) => s(d)
1945
1945
  }, [
1946
1946
  R("div", {
1947
- class: Be(["u-tabs__link", t(c)])
1948
- }, J(i), 3)
1949
- ], 8, Vn))), 128))
1947
+ class: Be(["u-tabs__link", t(d)])
1948
+ }, J(r), 3)
1949
+ ], 8, jn))), 128))
1950
1950
  ])
1951
1951
  ]),
1952
- R("div", jn, [
1953
- le(u.$slots, "default", { index: l.value })
1952
+ R("div", Rn, [
1953
+ oe(a.$slots, "default", { index: l.value })
1954
1954
  ])
1955
1955
  ]));
1956
1956
  }
1957
- }), Rn = {
1957
+ }), Tn = {
1958
1958
  title: "\u57FA\u7840\u63A7\u4EF6",
1959
1959
  order: 1,
1960
1960
  children: [
@@ -2045,10 +2045,10 @@ const Dn = { class: "u-card u-h" }, zn = {
2045
2045
  }
2046
2046
  }
2047
2047
  ]
2048
- }, Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2048
+ }, Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2049
2049
  __proto__: null,
2050
- default: Rn
2051
- }, Symbol.toStringTag, { value: "Module" })), Wn = {
2050
+ default: Tn
2051
+ }, Symbol.toStringTag, { value: "Module" })), In = {
2052
2052
  title: "\u6761\u5F62\u7801 ",
2053
2053
  order: 7,
2054
2054
  children: [
@@ -2129,10 +2129,10 @@ const Dn = { class: "u-card u-h" }, zn = {
2129
2129
  }
2130
2130
  }
2131
2131
  ]
2132
- }, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2132
+ }, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2133
2133
  __proto__: null,
2134
- default: Wn
2135
- }, Symbol.toStringTag, { value: "Module" })), Mn = {
2134
+ default: In
2135
+ }, Symbol.toStringTag, { value: "Module" })), Un = {
2136
2136
  title: "\u5E03\u5C40\u63A7\u4EF6",
2137
2137
  order: 8,
2138
2138
  children: [
@@ -2186,88 +2186,88 @@ const Dn = { class: "u-card u-h" }, zn = {
2186
2186
  ]
2187
2187
  }, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2188
2188
  __proto__: null,
2189
- default: Mn
2190
- }, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ Object.assign({ "./module/basic.ts": Tn, "./module/bwip.ts": In, "./module/view.ts": Nn }), ft = [];
2189
+ default: Un
2190
+ }, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ Object.assign({ "./module/basic.ts": Wn, "./module/bwip.ts": Mn, "./module/view.ts": Nn }), ft = [];
2191
2191
  Object.keys(kt).forEach((e) => {
2192
2192
  const o = kt[e].default;
2193
2193
  o && ft.push(o);
2194
2194
  });
2195
2195
  ft.sort((e, o) => e.order - o.order);
2196
- const Un = { class: "u-nos" }, qn = {
2196
+ const qn = { class: "u-nos" }, Kn = {
2197
2197
  key: 0,
2198
2198
  class: "u-card__bd u-aside__bd u-cl",
2199
2199
  style: { "border-bottom": "1px solid var(--color-neutral-2)", "padding-top": "0px" }
2200
- }, Ue = /* @__PURE__ */ U({
2200
+ }, Ne = /* @__PURE__ */ N({
2201
2201
  __name: "card",
2202
2202
  props: { title: String, isFirst: Boolean, show: { type: Boolean, default: !0 } },
2203
2203
  setup(e) {
2204
- const o = e, a = ot(o.show), n = () => {
2205
- a.value = !a.value;
2204
+ const o = e, u = nt(o.show), n = () => {
2205
+ u.value = !u.value;
2206
2206
  };
2207
2207
  return (l, t) => {
2208
- const s = g("icon-down"), u = g("icon-right");
2209
- return r(), B("div", Un, [
2208
+ const s = m("icon-down"), a = m("icon-right");
2209
+ return i(), k("div", qn, [
2210
2210
  R("div", {
2211
2211
  class: "u-card__hd u-aside__hd",
2212
- style: oe([{ borderBottomWidth: a.value ? "0px" : "1px" }, { "line-height": "36px", height: "36px", "border-bottom-color": "var(--color-neutral-2)" }])
2212
+ style: ne([{ borderBottomWidth: u.value ? "0px" : "1px" }, { "line-height": "36px", height: "36px", "border-bottom-color": "var(--color-neutral-2)" }])
2213
2213
  }, [
2214
2214
  R("div", null, [
2215
- le(l.$slots, "title", {}, () => [
2215
+ oe(l.$slots, "title", {}, () => [
2216
2216
  R("strong", null, J(o.title), 1)
2217
2217
  ])
2218
2218
  ]),
2219
2219
  R("span", {
2220
2220
  style: { cursor: "pointer" },
2221
- onClick: t[0] || (t[0] = (d) => n())
2221
+ onClick: t[0] || (t[0] = (c) => n())
2222
2222
  }, [
2223
- a.value ? (r(), y(s, { key: 0 })) : (r(), y(u, { key: 1 }))
2223
+ u.value ? (i(), w(s, { key: 0 })) : (i(), w(a, { key: 1 }))
2224
2224
  ])
2225
2225
  ], 4),
2226
2226
  f(so, null, {
2227
2227
  default: p(() => [
2228
- a.value ? (r(), B("div", qn, [
2229
- le(l.$slots, "default")
2230
- ])) : N("", !0)
2228
+ u.value ? (i(), k("div", Kn, [
2229
+ oe(l.$slots, "default")
2230
+ ])) : U("", !0)
2231
2231
  ]),
2232
2232
  _: 3
2233
2233
  })
2234
2234
  ]);
2235
2235
  };
2236
2236
  }
2237
- }), Kn = /* @__PURE__ */ U({
2237
+ }), Ln = /* @__PURE__ */ N({
2238
2238
  __name: "side-library",
2239
2239
  props: { moduleConfig: Array },
2240
2240
  setup(e) {
2241
2241
  const o = e;
2242
- function a() {
2242
+ function u() {
2243
2243
  return Object.assign([], o.moduleConfig || ft);
2244
2244
  }
2245
2245
  return (n, l) => {
2246
- const t = g("icon-drag-arrow"), s = g("a-button");
2247
- return r(!0), B(Q, null, de(a(), ({ title: u, children: d }, i) => (r(), y(Ue, {
2248
- key: i,
2249
- title: u,
2250
- "is-first": !i
2246
+ const t = m("icon-drag-arrow"), s = m("a-button");
2247
+ return i(!0), k(Q, null, de(u(), ({ title: a, children: c }, r) => (i(), w(Ne, {
2248
+ key: r,
2249
+ title: a,
2250
+ "is-first": !r
2251
2251
  }, {
2252
2252
  default: p(() => [
2253
- f(b(ze), {
2254
- list: d,
2255
- group: { name: "orchisky", pull: "clone", put: !1, animation: b(he).animation },
2253
+ f(y(De), {
2254
+ list: c,
2255
+ group: { name: "orchisky", pull: "clone", put: !1, animation: y(he).animation },
2256
2256
  sort: !1,
2257
- "ghost-class": b(he).ghostClass,
2258
- "chosen-class": b(he).chosenClass,
2259
- "drag-class": b(he).dragClass,
2260
- "item-key": b(he).itemKey
2257
+ "ghost-class": y(he).ghostClass,
2258
+ "chosen-class": y(he).chosenClass,
2259
+ "drag-class": y(he).dragClass,
2260
+ "item-key": y(he).itemKey
2261
2261
  }, {
2262
- item: p(({ element: c }) => [
2262
+ item: p(({ element: d }) => [
2263
2263
  f(s, {
2264
- class: Be(["fe--side-button", { "fe-ghost-fixed": c.fixed }]),
2265
- "data-type": c.type,
2266
- "data-category": c.category,
2264
+ class: Be(["fe--side-button", { "fe-ghost-fixed": d.fixed }]),
2265
+ "data-type": d.type,
2266
+ "data-category": d.category,
2267
2267
  size: "mini"
2268
2268
  }, {
2269
2269
  icon: p(() => [
2270
- (r(), y(be(c.icon), null, {
2270
+ (i(), w(ge(d.icon), null, {
2271
2271
  default: p(() => [
2272
2272
  f(t)
2273
2273
  ]),
@@ -2275,7 +2275,7 @@ const Un = { class: "u-nos" }, qn = {
2275
2275
  }, 1024))
2276
2276
  ]),
2277
2277
  default: p(() => [
2278
- te(" " + J(c.name), 1)
2278
+ te(" " + J(d.name), 1)
2279
2279
  ]),
2280
2280
  _: 2
2281
2281
  }, 1032, ["class", "data-type", "data-category"])
@@ -2288,56 +2288,56 @@ const Un = { class: "u-nos" }, qn = {
2288
2288
  };
2289
2289
  }
2290
2290
  });
2291
- const Ln = { key: 1 }, Hn = {
2291
+ const Hn = { key: 1 }, Gn = {
2292
2292
  key: 0,
2293
2293
  class: "arco-tree arco-tree-size-mini",
2294
2294
  style: { padding: "8px" }
2295
- }, Gn = ["onClick"], Qn = { class: "arco-tree-node-title arco-tree-node-title-block u-flex" }, Jn = { class: "arco-tree-node-icon arco-tree-node-custom-icon" }, Xn = { class: "u-flex__item u-overflow" }, Yn = {
2295
+ }, Qn = ["onClick"], Jn = { class: "arco-tree-node-title arco-tree-node-title-block u-flex" }, Xn = { class: "arco-tree-node-icon arco-tree-node-custom-icon" }, Yn = { class: "u-flex__item u-overflow" }, Zn = {
2296
2296
  style: { "margin-left": "0.2em" },
2297
2297
  class: "arco-tag arco-tag-size-small arco-tag-orange arco-tag-checked"
2298
- }, Zn = /* @__PURE__ */ U({
2298
+ }, el = /* @__PURE__ */ N({
2299
2299
  __name: "side",
2300
2300
  props: { moduleConfig: Array },
2301
2301
  setup(e) {
2302
- const { widgetArray: o } = Gt(), a = e, n = q(!1), { useWidgetOperation: l } = ae(), { onSelected: t, hasSelected: s } = l();
2303
- return (u, d) => {
2304
- const i = g("icon-drag-arrow"), c = g("a-empty"), m = g("icon-right"), C = g("icon-left"), v = g("a-button");
2305
- return r(), B("div", {
2302
+ const { widgetArray: o } = Qt(), u = e, n = K(!1), { useWidgetOperation: l } = ae(), { onSelected: t, hasSelected: s } = l();
2303
+ return (a, c) => {
2304
+ const r = m("icon-drag-arrow"), d = m("a-empty"), g = m("icon-right"), b = m("icon-left"), v = m("a-button");
2305
+ return i(), k("div", {
2306
2306
  class: "fe--side u-page__side",
2307
- style: oe({ width: n.value ? "0px" : "219px" })
2307
+ style: ne({ width: n.value ? "0px" : "219px" })
2308
2308
  }, [
2309
- n.value ? N("", !0) : (r(), y(Qt, {
2309
+ n.value ? U("", !0) : (i(), w(Jt, {
2310
2310
  key: 0,
2311
2311
  list: ["\u7EC4\u4EF6\u5E93", "\u6570\u636E\u6E90"]
2312
2312
  }, {
2313
2313
  default: p(({ index: h }) => [
2314
- h === 0 ? (r(), y(Kn, {
2314
+ h === 0 ? (i(), w(Ln, {
2315
2315
  key: 0,
2316
- "module-config": a.moduleConfig
2317
- }, null, 8, ["module-config"])) : h === 1 ? (r(), B("div", Ln, [
2318
- b(o).length ? (r(), B("div", Hn, [
2319
- (r(!0), B(Q, null, de(b(o), (F, O) => (r(), B("div", {
2320
- key: O,
2316
+ "module-config": u.moduleConfig
2317
+ }, null, 8, ["module-config"])) : h === 1 ? (i(), k("div", Hn, [
2318
+ y(o).length ? (i(), k("div", Gn, [
2319
+ (i(!0), k(Q, null, de(y(o), (x, B) => (i(), k("div", {
2320
+ key: B,
2321
2321
  class: Be(["arco-tree-node arco-tree-node-is-leaf", {
2322
- "arco-tree-node-selected": b(s)(F.key)
2322
+ "arco-tree-node-selected": y(s)(x.key)
2323
2323
  }]),
2324
- onClick: Ke((w) => b(t)(F.key), ["stop"])
2324
+ onClick: Ke((C) => y(t)(x.key), ["stop"])
2325
2325
  }, [
2326
- R("div", Qn, [
2327
- R("div", Jn, [
2328
- (r(), y(be(F.icon), null, {
2326
+ R("div", Jn, [
2327
+ R("div", Xn, [
2328
+ (i(), w(ge(x.icon), null, {
2329
2329
  default: p(() => [
2330
- f(i)
2330
+ f(r)
2331
2331
  ]),
2332
2332
  _: 2
2333
2333
  }, 1024))
2334
2334
  ]),
2335
- R("div", Xn, J(F.title) + J(F.title) + J(F.title), 1),
2336
- R("code", Yn, J(F.model), 1)
2335
+ R("div", Yn, J(x.title) + J(x.title) + J(x.title), 1),
2336
+ R("code", Zn, J(x.model), 1)
2337
2337
  ])
2338
- ], 10, Gn))), 128))
2339
- ])) : (r(), y(c, { key: 1 }))
2340
- ])) : (r(), y(c, { key: 2 }))
2338
+ ], 10, Qn))), 128))
2339
+ ])) : (i(), w(d, { key: 1 }))
2340
+ ])) : (i(), w(d, { key: 2 }))
2341
2341
  ]),
2342
2342
  _: 1
2343
2343
  })),
@@ -2346,18 +2346,18 @@ const Ln = { key: 1 }, Hn = {
2346
2346
  status: "normal",
2347
2347
  size: "mini",
2348
2348
  class: "arco-btn-light u-page__arrow",
2349
- style: oe({ borderLeftWidth: n.value ? "1px" : "0" }),
2350
- onClick: d[0] || (d[0] = (h) => n.value = !n.value)
2349
+ style: ne({ borderLeftWidth: n.value ? "1px" : "0" }),
2350
+ onClick: c[0] || (c[0] = (h) => n.value = !n.value)
2351
2351
  }, {
2352
2352
  icon: p(() => [
2353
- n.value ? (r(), y(m, { key: 0 })) : (r(), y(C, { key: 1 }))
2353
+ n.value ? (i(), w(g, { key: 0 })) : (i(), w(b, { key: 1 }))
2354
2354
  ]),
2355
2355
  _: 1
2356
2356
  }, 8, ["style"])
2357
2357
  ], 4);
2358
2358
  };
2359
2359
  }
2360
- }), Bt = /* @__PURE__ */ U({
2360
+ }), Bt = /* @__PURE__ */ N({
2361
2361
  __name: "string",
2362
2362
  props: {
2363
2363
  elementType: {},
@@ -2369,37 +2369,37 @@ const Ln = { key: 1 }, Hn = {
2369
2369
  },
2370
2370
  emits: ["update:model-value"],
2371
2371
  setup(e, { emit: o }) {
2372
- const a = o, n = e, l = () => {
2373
- var u;
2374
- return (u = n.modelValue) != null ? u : void 0;
2375
- }, t = q(l());
2376
- return ne(() => n.modelValue, () => {
2372
+ const u = o, n = e, l = () => {
2373
+ var a;
2374
+ return (a = n.modelValue) != null ? a : void 0;
2375
+ }, t = K(l());
2376
+ return le(() => n.modelValue, () => {
2377
2377
  t.value = l();
2378
- }), ne(t, (u) => a("update:model-value", u)), (u, d) => {
2379
- const i = g("AInputNumber"), c = g("AInput"), m = g("AFormItem");
2380
- return r(), y(m, I({
2381
- field: u.field,
2382
- label: u.label
2383
- }, u.formProps), {
2378
+ }), le(t, (a) => u("update:model-value", a)), (a, c) => {
2379
+ const r = m("AInputNumber"), d = m("AInput"), g = m("AFormItem");
2380
+ return i(), w(g, I({
2381
+ field: a.field,
2382
+ label: a.label
2383
+ }, a.formProps), {
2384
2384
  default: p(() => [
2385
- typeof t.value == "number" ? (r(), y(i, I({
2385
+ typeof t.value == "number" ? (i(), w(r, I({
2386
2386
  key: 0,
2387
2387
  modelValue: t.value,
2388
- "onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
2388
+ "onUpdate:modelValue": c[0] || (c[0] = (b) => t.value = b),
2389
2389
  mode: "button",
2390
2390
  size: "mini"
2391
- }, u.elementProps), null, 16, ["modelValue"])) : (r(), y(c, I({
2391
+ }, a.elementProps), null, 16, ["modelValue"])) : (i(), w(d, I({
2392
2392
  key: 1,
2393
2393
  modelValue: t.value,
2394
- "onUpdate:modelValue": d[1] || (d[1] = (C) => t.value = C),
2394
+ "onUpdate:modelValue": c[1] || (c[1] = (b) => t.value = b),
2395
2395
  size: "mini"
2396
- }, u.elementProps), null, 16, ["modelValue"]))
2396
+ }, a.elementProps), null, 16, ["modelValue"]))
2397
2397
  ]),
2398
2398
  _: 1
2399
2399
  }, 16, ["field", "label"]);
2400
2400
  };
2401
2401
  }
2402
- }), el = /* @__PURE__ */ U({
2402
+ }), tl = /* @__PURE__ */ N({
2403
2403
  __name: "number",
2404
2404
  props: {
2405
2405
  elementType: {},
@@ -2411,31 +2411,31 @@ const Ln = { key: 1 }, Hn = {
2411
2411
  },
2412
2412
  emits: ["update:model-value"],
2413
2413
  setup(e, { emit: o }) {
2414
- const a = o, n = e, l = () => {
2415
- var u;
2416
- return (u = n.modelValue) != null ? u : void 0;
2417
- }, t = q(l());
2418
- return ne(() => n.modelValue, () => {
2414
+ const u = o, n = e, l = () => {
2415
+ var a;
2416
+ return (a = n.modelValue) != null ? a : void 0;
2417
+ }, t = K(l());
2418
+ return le(() => n.modelValue, () => {
2419
2419
  t.value = l();
2420
- }), ne(t, (u) => a("update:model-value", u)), (u, d) => {
2421
- const i = g("AInputNumber"), c = g("AFormItem");
2422
- return r(), y(c, I({
2423
- field: u.field,
2424
- label: u.label
2425
- }, u.formProps), {
2420
+ }), le(t, (a) => u("update:model-value", a)), (a, c) => {
2421
+ const r = m("AInputNumber"), d = m("AFormItem");
2422
+ return i(), w(d, I({
2423
+ field: a.field,
2424
+ label: a.label
2425
+ }, a.formProps), {
2426
2426
  default: p(() => [
2427
- f(i, I({
2427
+ f(r, I({
2428
2428
  modelValue: t.value,
2429
- "onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
2429
+ "onUpdate:modelValue": c[0] || (c[0] = (g) => t.value = g),
2430
2430
  mode: "button",
2431
2431
  size: "mini"
2432
- }, u.elementProps), null, 16, ["modelValue"])
2432
+ }, a.elementProps), null, 16, ["modelValue"])
2433
2433
  ]),
2434
2434
  _: 1
2435
2435
  }, 16, ["field", "label"]);
2436
2436
  };
2437
2437
  }
2438
- }), tl = /* @__PURE__ */ U({
2438
+ }), ol = /* @__PURE__ */ N({
2439
2439
  __name: "px",
2440
2440
  props: {
2441
2441
  elementType: {},
@@ -2447,48 +2447,48 @@ const Ln = { key: 1 }, Hn = {
2447
2447
  },
2448
2448
  emits: ["update:model-value"],
2449
2449
  setup(e, { emit: o }) {
2450
- const a = o, n = e, l = ["px", "pt", "mm"], t = q("px"), s = q();
2451
- return ne(
2450
+ const u = o, n = e, l = ["px", "pt", "mm"], t = K("px"), s = K();
2451
+ return le(
2452
2452
  () => n.modelValue,
2453
- (u) => {
2454
- if (typeof u == "number")
2455
- t.value = "px", s.value = u;
2456
- else if (u == null)
2453
+ (a) => {
2454
+ if (typeof a == "number")
2455
+ t.value = "px", s.value = a;
2456
+ else if (a == null)
2457
2457
  t.value = "px", s.value = void 0;
2458
2458
  else {
2459
- const d = String(u).slice(-2).toLowerCase();
2460
- l.includes(d) && (t.value = d), s.value = Number.parseFloat(String(u));
2459
+ const c = String(a).slice(-2).toLowerCase();
2460
+ l.includes(c) && (t.value = c), s.value = Number.parseFloat(String(a));
2461
2461
  }
2462
2462
  },
2463
2463
  {
2464
2464
  immediate: !0
2465
2465
  }
2466
- ), ne([s, t], () => a("update:model-value", `${s.value}${t.value}`)), (u, d) => {
2467
- const i = g("AInput"), c = g("AInputNumber"), m = g("ASelect"), C = g("AInputGroup"), v = g("AFormItem");
2468
- return r(), y(v, I({
2469
- field: u.field,
2470
- label: u.label
2471
- }, u.formProps), {
2466
+ ), le([s, t], () => u("update:model-value", `${s.value}${t.value}`)), (a, c) => {
2467
+ const r = m("AInput"), d = m("AInputNumber"), g = m("ASelect"), b = m("AInputGroup"), v = m("AFormItem");
2468
+ return i(), w(v, I({
2469
+ field: a.field,
2470
+ label: a.label
2471
+ }, a.formProps), {
2472
2472
  label: p(() => [
2473
2473
  te(J(n.label), 1)
2474
2474
  ]),
2475
2475
  default: p(() => [
2476
- n.modelValue === "100%" ? (r(), y(i, {
2476
+ n.modelValue === "100%" ? (i(), w(r, {
2477
2477
  key: 0,
2478
2478
  size: "mini",
2479
2479
  disabled: "",
2480
2480
  "model-value": "100%"
2481
- })) : (r(), y(C, { key: 1 }, {
2481
+ })) : (i(), w(b, { key: 1 }, {
2482
2482
  default: p(() => [
2483
- f(c, I({
2483
+ f(d, I({
2484
2484
  modelValue: s.value,
2485
- "onUpdate:modelValue": d[0] || (d[0] = (h) => s.value = h),
2485
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => s.value = h),
2486
2486
  size: "mini",
2487
2487
  mode: "button"
2488
- }, u.elementProps), null, 16, ["modelValue"]),
2489
- f(m, {
2488
+ }, a.elementProps), null, 16, ["modelValue"]),
2489
+ f(g, {
2490
2490
  modelValue: t.value,
2491
- "onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h),
2491
+ "onUpdate:modelValue": c[1] || (c[1] = (h) => t.value = h),
2492
2492
  size: "mini",
2493
2493
  options: l,
2494
2494
  style: { minWidth: "0", width: "68px" },
@@ -2503,7 +2503,7 @@ const Ln = { key: 1 }, Hn = {
2503
2503
  }, 16, ["field", "label"]);
2504
2504
  };
2505
2505
  }
2506
- }), ol = /* @__PURE__ */ U({
2506
+ }), nl = /* @__PURE__ */ N({
2507
2507
  __name: "radio",
2508
2508
  props: {
2509
2509
  elementType: {},
@@ -2515,31 +2515,31 @@ const Ln = { key: 1 }, Hn = {
2515
2515
  },
2516
2516
  emits: ["update:model-value"],
2517
2517
  setup(e, { emit: o }) {
2518
- const a = o, n = e, l = () => {
2519
- var u;
2520
- return (u = n.modelValue) != null ? u : void 0;
2521
- }, t = q(l());
2522
- return ne(() => n.modelValue, () => {
2518
+ const u = o, n = e, l = () => {
2519
+ var a;
2520
+ return (a = n.modelValue) != null ? a : void 0;
2521
+ }, t = K(l());
2522
+ return le(() => n.modelValue, () => {
2523
2523
  t.value = l();
2524
- }), ne(t, (u) => a("update:model-value", u)), (u, d) => {
2525
- const i = g("ARadioGroup"), c = g("AFormItem");
2526
- return r(), y(c, I({
2527
- field: u.field,
2528
- label: u.label
2529
- }, u.formProps), {
2524
+ }), le(t, (a) => u("update:model-value", a)), (a, c) => {
2525
+ const r = m("ARadioGroup"), d = m("AFormItem");
2526
+ return i(), w(d, I({
2527
+ field: a.field,
2528
+ label: a.label
2529
+ }, a.formProps), {
2530
2530
  default: p(() => [
2531
- f(i, I({
2531
+ f(r, I({
2532
2532
  modelValue: t.value,
2533
- "onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
2533
+ "onUpdate:modelValue": c[0] || (c[0] = (g) => t.value = g),
2534
2534
  type: "button",
2535
2535
  size: "mini"
2536
- }, u.elementProps), null, 16, ["modelValue"])
2536
+ }, a.elementProps), null, 16, ["modelValue"])
2537
2537
  ]),
2538
2538
  _: 1
2539
2539
  }, 16, ["field", "label"]);
2540
2540
  };
2541
2541
  }
2542
- }), nl = /* @__PURE__ */ U({
2542
+ }), ll = /* @__PURE__ */ N({
2543
2543
  __name: "select",
2544
2544
  props: {
2545
2545
  elementType: {},
@@ -2551,31 +2551,31 @@ const Ln = { key: 1 }, Hn = {
2551
2551
  },
2552
2552
  emits: ["update:model-value"],
2553
2553
  setup(e, { emit: o }) {
2554
- const a = o, n = e, l = () => {
2555
- var u;
2556
- return (u = n.modelValue) != null ? u : void 0;
2557
- }, t = q(l());
2558
- return ne(() => n.modelValue, () => {
2554
+ const u = o, n = e, l = () => {
2555
+ var a;
2556
+ return (a = n.modelValue) != null ? a : void 0;
2557
+ }, t = K(l());
2558
+ return le(() => n.modelValue, () => {
2559
2559
  t.value = l();
2560
- }), ne(t, (u) => a("update:model-value", u)), (u, d) => {
2561
- const i = g("ASelect"), c = g("AFormItem");
2562
- return r(), y(c, I({
2563
- field: u.field,
2564
- label: u.label
2565
- }, u.formProps), {
2560
+ }), le(t, (a) => u("update:model-value", a)), (a, c) => {
2561
+ const r = m("ASelect"), d = m("AFormItem");
2562
+ return i(), w(d, I({
2563
+ field: a.field,
2564
+ label: a.label
2565
+ }, a.formProps), {
2566
2566
  default: p(() => [
2567
- f(i, I({
2567
+ f(r, I({
2568
2568
  modelValue: t.value,
2569
- "onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
2569
+ "onUpdate:modelValue": c[0] || (c[0] = (g) => t.value = g),
2570
2570
  size: "mini",
2571
2571
  "trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" }
2572
- }, u.elementProps), null, 16, ["modelValue"])
2572
+ }, a.elementProps), null, 16, ["modelValue"])
2573
2573
  ]),
2574
2574
  _: 1
2575
2575
  }, 16, ["field", "label"]);
2576
2576
  };
2577
2577
  }
2578
- }), Oe = /* @__PURE__ */ U({
2578
+ }), Oe = /* @__PURE__ */ N({
2579
2579
  __name: "panel-item",
2580
2580
  props: {
2581
2581
  elementType: { default: "string" },
@@ -2587,149 +2587,149 @@ const Ln = { key: 1 }, Hn = {
2587
2587
  },
2588
2588
  emits: ["update:model-value"],
2589
2589
  setup(e, { emit: o }) {
2590
- const a = e, n = o, l = rt();
2590
+ const u = e, n = o, l = ct();
2591
2591
  function t() {
2592
2592
  var s;
2593
- l.value = (s = { string: Bt, number: el, px: tl, radio: ol, select: nl }[a.elementType]) != null ? s : Bt;
2593
+ l.value = (s = { string: Bt, number: tl, px: ol, radio: nl, select: ll }[u.elementType]) != null ? s : Bt;
2594
2594
  }
2595
- return dt(t), ne(() => a.elementType, t), (s, u) => l.value ? (r(), y(be(l.value), I({ key: 0 }, a, {
2596
- "onUpdate:modelValue": u[0] || (u[0] = (d) => n("update:model-value", d))
2597
- }), null, 16)) : N("", !0);
2595
+ return dt(t), le(() => u.elementType, t), (s, a) => l.value ? (i(), w(ge(l.value), I({ key: 0 }, u, {
2596
+ "onUpdate:modelValue": a[0] || (a[0] = (c) => n("update:model-value", c))
2597
+ }), null, 16)) : U("", !0);
2598
2598
  }
2599
- }), ll = /* @__PURE__ */ U({
2599
+ }), ul = /* @__PURE__ */ N({
2600
2600
  __name: "panel",
2601
2601
  setup(e) {
2602
- const { getWidgetPanelProperty: o, getWidget: a, updateRootPathValue: n } = ae(), { t: l } = fo(), t = q(!1), s = q(0), { config: u, selectPath: d, models: i } = Pe(), c = (O) => {
2603
- s.value = O ? 0 : 1;
2602
+ const { getWidgetPanelProperty: o, getWidget: u, updateRootPathValue: n } = ae(), { t: l } = mo(), t = K(!1), s = K(0), { config: a, selectPath: c, models: r } = ze(), d = (B) => {
2603
+ s.value = B ? 0 : 1;
2604
2604
  };
2605
- c(d.value);
2606
- const m = M(() => a(d.value)), C = (O) => (w) => n(`${d.value}.${O}`, w), v = (O, w) => {
2607
- m.value && O && (O === "defaultValue" && m.value.model && (i.value[m.value.model] = w), C(`options.${O}`)(w));
2605
+ d(c.value);
2606
+ const g = M(() => u(c.value)), b = (B) => (C) => n(`${c.value}.${B}`, C), v = (B, C) => {
2607
+ g.value && B && (B === "defaultValue" && g.value.model && (r.value[g.value.model] = C), b(`options.${B}`)(C));
2608
2608
  }, h = M(
2609
2609
  () => {
2610
- var O;
2611
- return (O = o({
2610
+ var B;
2611
+ return (B = o({
2612
2612
  optionsConfig: {
2613
2613
  width: "px",
2614
2614
  height: "px",
2615
- labelWidth: { type: "px", show: !!u.value.labelWidth, toolbar: "" },
2615
+ labelWidth: { type: "px", show: !!a.value.labelWidth, toolbar: "" },
2616
2616
  labelAlign: {
2617
2617
  type: "radio",
2618
- show: !!u.value.labelAlign,
2618
+ show: !!a.value.labelAlign,
2619
2619
  options: [
2620
2620
  { label: l("fe.config.labelAlignRight"), value: "right" },
2621
2621
  { label: l("fe.config.labelAlignLeft"), value: "left" }
2622
2622
  ]
2623
2623
  }
2624
2624
  },
2625
- options: u.value
2626
- })) != null ? O : {};
2625
+ options: a.value
2626
+ })) != null ? B : {};
2627
2627
  }
2628
- ), F = M(() => {
2629
- const O = o(m.value);
2630
- if (O) {
2631
- const w = [
2628
+ ), x = M(() => {
2629
+ const B = o(g.value);
2630
+ if (B) {
2631
+ const C = [
2632
2632
  {
2633
2633
  title: "\u57FA\u7840\u8BBE\u7F6E",
2634
2634
  sort: 1,
2635
2635
  type: "base",
2636
2636
  list: [],
2637
- filterFunc: (A) => ["defaultValue"].includes(A)
2637
+ filterFunc: (E) => ["defaultValue"].includes(E)
2638
2638
  },
2639
2639
  {
2640
2640
  title: "\u5C5E\u6027\u8BBE\u7F6E",
2641
2641
  sort: 2,
2642
2642
  type: "boolean",
2643
2643
  list: [],
2644
- filterFunc: (A, S) => S.type === "boolean"
2644
+ filterFunc: (E, S) => S.type === "boolean"
2645
2645
  },
2646
2646
  {
2647
2647
  title: "\u4F4D\u7F6E\u8BBE\u7F6E",
2648
2648
  sort: 99,
2649
2649
  type: "position",
2650
2650
  list: [],
2651
- filterFunc: (A) => ["left", "top"].includes(A),
2651
+ filterFunc: (E) => ["left", "top"].includes(E),
2652
2652
  showFunc: () => {
2653
- var A;
2654
- return ((A = m.value) == null ? void 0 : A.fixed) === !0;
2653
+ var E;
2654
+ return ((E = g.value) == null ? void 0 : E.fixed) === !0;
2655
2655
  }
2656
2656
  },
2657
- { title: "\u9AD8\u7EA7\u8BBE\u7F6E", sort: 9, list: [], filterFunc: (A) => !!A }
2657
+ { title: "\u9AD8\u7EA7\u8BBE\u7F6E", sort: 9, list: [], filterFunc: (E) => !!E }
2658
2658
  ];
2659
- return Object.keys(O).forEach((A) => {
2659
+ return Object.keys(B).forEach((E) => {
2660
2660
  let S = !1;
2661
- const $ = O[A];
2662
- w.forEach((k) => {
2663
- !S && k.filterFunc(A, $) && (k.list.push($), S = !0);
2661
+ const O = B[E];
2662
+ C.forEach(($) => {
2663
+ !S && $.filterFunc(E, O) && ($.list.push(O), S = !0);
2664
2664
  });
2665
- }), [...w].filter((A) => typeof A.showFunc != "function" || A.showFunc()).sort((A, S) => A.sort - S.sort).map((A) => (delete A.filterFunc, delete A.showFunc, A));
2665
+ }), [...C].filter((E) => typeof E.showFunc != "function" || E.showFunc()).sort((E, S) => E.sort - S.sort).map((E) => (delete E.filterFunc, delete E.showFunc, E));
2666
2666
  }
2667
2667
  return null;
2668
2668
  });
2669
- return ne(d, c), (O, w) => {
2670
- const A = g("AForm"), S = g("a-checkbox"), $ = g("a-space"), k = g("a-empty"), P = g("icon-right"), j = g("icon-left"), T = g("a-button");
2671
- return r(), B("div", {
2669
+ return le(c, d), (B, C) => {
2670
+ const E = m("AForm"), S = m("a-checkbox"), O = m("a-space"), $ = m("a-empty"), V = m("icon-right"), j = m("icon-left"), T = m("a-button");
2671
+ return i(), k("div", {
2672
2672
  class: "u-page__panel fe--panels",
2673
- style: oe({ width: t.value ? "0px" : "219px" })
2673
+ style: ne({ width: t.value ? "0px" : "219px" })
2674
2674
  }, [
2675
- t.value ? N("", !0) : (r(), y(Qt, {
2675
+ t.value ? U("", !0) : (i(), w(Jt, {
2676
2676
  key: 0,
2677
2677
  "tab-index": s.value,
2678
- "onUpdate:tabIndex": w[2] || (w[2] = (Y) => s.value = Y),
2678
+ "onUpdate:tabIndex": C[2] || (C[2] = (Y) => s.value = Y),
2679
2679
  list: ["\u7EC4\u4EF6\u5C5E\u6027", "\u5168\u5C40\u5C5E\u6027"]
2680
2680
  }, {
2681
2681
  default: p(({ index: Y }) => {
2682
2682
  var ie;
2683
2683
  return [
2684
- Y ? (r(), y(Ue, {
2684
+ Y ? (i(), w(Ne, {
2685
2685
  key: 0,
2686
2686
  title: "\u5168\u5C40\u5C5E\u6027"
2687
2687
  }, {
2688
2688
  default: p(() => [
2689
- f(A, {
2690
- model: b(u),
2689
+ f(E, {
2690
+ model: y(a),
2691
2691
  layout: "vertical"
2692
2692
  }, {
2693
2693
  default: p(() => [
2694
- (r(!0), B(Q, null, de(h.value, (L, ue) => (r(), B(Q, { key: ue }, [
2695
- L.show ? (r(), y(Oe, {
2694
+ (i(!0), k(Q, null, de(h.value, (L, ue) => (i(), k(Q, { key: ue }, [
2695
+ L.show ? (i(), w(Oe, {
2696
2696
  key: 0,
2697
- "model-value": b(u)[ue],
2697
+ "model-value": y(a)[ue],
2698
2698
  type: L.type,
2699
2699
  "element-type": L.type,
2700
2700
  "element-props": { options: L.options },
2701
- label: O.$t(`fe.config.${ue}`),
2702
- "onUpdate:modelValue": (_) => b(u)[ue] = _
2703
- }, null, 8, ["model-value", "type", "element-type", "element-props", "label", "onUpdate:modelValue"])) : N("", !0)
2701
+ label: B.$t(`fe.config.${ue}`),
2702
+ "onUpdate:modelValue": (_) => y(a)[ue] = _
2703
+ }, null, 8, ["model-value", "type", "element-type", "element-props", "label", "onUpdate:modelValue"])) : U("", !0)
2704
2704
  ], 64))), 128))
2705
2705
  ]),
2706
2706
  _: 1
2707
2707
  }, 8, ["model"])
2708
2708
  ]),
2709
2709
  _: 1
2710
- })) : (r(), B(Q, { key: 1 }, [
2711
- (ie = m.value) != null && ie.options ? (r(), y(A, {
2710
+ })) : (i(), k(Q, { key: 1 }, [
2711
+ (ie = g.value) != null && ie.options ? (i(), w(E, {
2712
2712
  key: 0,
2713
- model: m.value,
2713
+ model: g.value,
2714
2714
  layout: "vertical"
2715
2715
  }, {
2716
2716
  default: p(() => [
2717
- (r(!0), B(Q, null, de(F.value, (L, ue) => (r(), B(Q, { key: ue }, [
2718
- L.list.length || L.type === "base" ? (r(), B(Q, { key: 0 }, [
2719
- L.type === "boolean" ? (r(), y(Ue, {
2717
+ (i(!0), k(Q, null, de(x.value, (L, ue) => (i(), k(Q, { key: ue }, [
2718
+ L.list.length || L.type === "base" ? (i(), k(Q, { key: 0 }, [
2719
+ L.type === "boolean" ? (i(), w(Ne, {
2720
2720
  key: 0,
2721
2721
  title: L.title
2722
2722
  }, {
2723
2723
  default: p(() => [
2724
- f($, { wrap: "" }, {
2724
+ f(O, { wrap: "" }, {
2725
2725
  default: p(() => [
2726
- (r(!0), B(Q, null, de(L.list, (_) => (r(), y(S, {
2726
+ (i(!0), k(Q, null, de(L.list, (_) => (i(), w(S, {
2727
2727
  key: _.model,
2728
- "model-value": m.value.options[_.model],
2729
- "onUpdate:modelValue": (E) => C(`options.${_.model}`)(E)
2728
+ "model-value": g.value.options[_.model],
2729
+ "onUpdate:modelValue": (A) => b(`options.${_.model}`)(A)
2730
2730
  }, {
2731
2731
  default: p(() => [
2732
- te(J(b(l)(`fe.panel.${_.model}`)), 1)
2732
+ te(J(y(l)(`fe.panel.${_.model}`)), 1)
2733
2733
  ]),
2734
2734
  _: 2
2735
2735
  }, 1032, ["model-value", "onUpdate:modelValue"]))), 128))
@@ -2738,52 +2738,52 @@ const Ln = { key: 1 }, Hn = {
2738
2738
  }, 1024)
2739
2739
  ]),
2740
2740
  _: 2
2741
- }, 1032, ["title"])) : (r(), y(Ue, {
2741
+ }, 1032, ["title"])) : (i(), w(Ne, {
2742
2742
  key: 1,
2743
2743
  title: L.title
2744
2744
  }, {
2745
2745
  default: p(() => [
2746
- L.type === "base" ? (r(), B(Q, { key: 0 }, [
2746
+ L.type === "base" ? (i(), k(Q, { key: 0 }, [
2747
2747
  f(Oe, {
2748
- "model-value": m.value.type,
2748
+ "model-value": g.value.type,
2749
2749
  field: "type",
2750
2750
  "element-type": "input",
2751
2751
  label: "\u7C7B\u578B",
2752
2752
  disabled: ""
2753
2753
  }, null, 8, ["model-value"]),
2754
2754
  f(Oe, {
2755
- "model-value": m.value.name,
2755
+ "model-value": g.value.name,
2756
2756
  field: "name",
2757
2757
  "element-type": "input",
2758
2758
  label: "\u6807\u9898",
2759
- "onUpdate:modelValue": w[0] || (w[0] = (_) => C("name")(_))
2759
+ "onUpdate:modelValue": C[0] || (C[0] = (_) => b("name")(_))
2760
2760
  }, null, 8, ["model-value"]),
2761
- m.value.category === "basic" ? (r(), y(Oe, {
2761
+ g.value.category === "basic" ? (i(), w(Oe, {
2762
2762
  key: 0,
2763
- "model-value": m.value.model,
2763
+ "model-value": g.value.model,
2764
2764
  field: "model",
2765
2765
  "element-type": "input",
2766
2766
  label: "\u6570\u636E\u6E90",
2767
2767
  "form-props": { tooltip: "\u91CD\u8981\u9009\u9879" },
2768
- "onUpdate:modelValue": w[1] || (w[1] = (_) => C("model")(_))
2769
- }, null, 8, ["model-value"])) : N("", !0)
2770
- ], 64)) : N("", !0),
2771
- (r(!0), B(Q, null, de(L.list, (_, E) => (r(), y(Oe, {
2772
- key: E,
2773
- label: b(l)(`fe.panel.${_.model}`),
2774
- "model-value": m.value.options[_.model],
2768
+ "onUpdate:modelValue": C[1] || (C[1] = (_) => b("model")(_))
2769
+ }, null, 8, ["model-value"])) : U("", !0)
2770
+ ], 64)) : U("", !0),
2771
+ (i(!0), k(Q, null, de(L.list, (_, A) => (i(), w(Oe, {
2772
+ key: A,
2773
+ label: y(l)(`fe.panel.${_.model}`),
2774
+ "model-value": g.value.options[_.model],
2775
2775
  "element-type": _.type,
2776
2776
  "element-props": { options: _.options },
2777
- "onUpdate:modelValue": (V) => v(_.model, V)
2777
+ "onUpdate:modelValue": (P) => v(_.model, P)
2778
2778
  }, null, 8, ["label", "model-value", "element-type", "element-props", "onUpdate:modelValue"]))), 128))
2779
2779
  ]),
2780
2780
  _: 2
2781
2781
  }, 1032, ["title"]))
2782
- ], 64)) : N("", !0)
2782
+ ], 64)) : U("", !0)
2783
2783
  ], 64))), 128))
2784
2784
  ]),
2785
2785
  _: 1
2786
- }, 8, ["model"])) : (r(), y(k, { key: 1 }))
2786
+ }, 8, ["model"])) : (i(), w($, { key: 1 }))
2787
2787
  ], 64))
2788
2788
  ];
2789
2789
  }),
@@ -2794,11 +2794,11 @@ const Ln = { key: 1 }, Hn = {
2794
2794
  status: "normal",
2795
2795
  size: "mini",
2796
2796
  class: "arco-btn-light u-page__arrow",
2797
- style: oe({ borderRightWidth: t.value ? "1px" : "0" }),
2798
- onClick: w[3] || (w[3] = (Y) => t.value = !t.value)
2797
+ style: ne({ borderRightWidth: t.value ? "1px" : "0" }),
2798
+ onClick: C[3] || (C[3] = (Y) => t.value = !t.value)
2799
2799
  }, {
2800
2800
  icon: p(() => [
2801
- t.value ? (r(), y(j, { key: 1 })) : (r(), y(P, { key: 0 }))
2801
+ t.value ? (i(), w(j, { key: 1 })) : (i(), w(V, { key: 0 }))
2802
2802
  ]),
2803
2803
  _: 1
2804
2804
  }, 8, ["style"])
@@ -2806,13 +2806,13 @@ const Ln = { key: 1 }, Hn = {
2806
2806
  };
2807
2807
  }
2808
2808
  });
2809
- const ul = {
2809
+ const al = {
2810
2810
  key: 0,
2811
2811
  class: "u-aside"
2812
- }, al = { class: "u-page u-page--row" }, il = {
2812
+ }, il = { class: "u-page u-page--row" }, sl = {
2813
2813
  class: "u-main",
2814
2814
  style: { padding: "0" }
2815
- }, sl = /* @__PURE__ */ U({
2815
+ }, rl = /* @__PURE__ */ N({
2816
2816
  __name: "index",
2817
2817
  props: {
2818
2818
  readonly: Boolean,
@@ -2838,29 +2838,29 @@ const ul = {
2838
2838
  },
2839
2839
  emits: ["save"],
2840
2840
  setup(e, { emit: o }) {
2841
- const a = o, n = e;
2842
- Io({ ...n.data, models: n.models, remoteFuncs: n.remoteFuncs });
2841
+ const u = o, n = e;
2842
+ Mo({ ...n.data, models: n.models, remoteFuncs: n.remoteFuncs });
2843
2843
  function l(t) {
2844
- n.readonly || a("save", t);
2844
+ n.readonly || u("save", t);
2845
2845
  }
2846
- return (t, s) => n.readonly ? (r(), y(it, { key: 1 })) : (r(), B("div", ul, [
2847
- R("div", al, [
2848
- f(Zn, {
2846
+ return (t, s) => n.readonly ? (i(), w(st, { key: 1 })) : (i(), k("div", al, [
2847
+ R("div", il, [
2848
+ f(el, {
2849
2849
  "module-config": n.moduleConfig
2850
2850
  }, null, 8, ["module-config"]),
2851
- R("div", il, [
2852
- f(Sn, { onSave: l })
2851
+ R("div", sl, [
2852
+ f(Dn, { onSave: l })
2853
2853
  ]),
2854
- f(ll)
2854
+ f(ul)
2855
2855
  ])
2856
2856
  ]));
2857
2857
  }
2858
- }), Ze = {
2858
+ }), et = {
2859
2859
  height: "px",
2860
2860
  width: "px",
2861
2861
  left: "px",
2862
2862
  top: "px"
2863
- }, rl = {
2863
+ }, cl = {
2864
2864
  title: "\u8F85\u52A9\u63A7\u4EF6",
2865
2865
  order: 4,
2866
2866
  children: [
@@ -2876,7 +2876,7 @@ const ul = {
2876
2876
  borderTop: "1px solid #000"
2877
2877
  },
2878
2878
  optionsConfig: {
2879
- ...Ze,
2879
+ ...et,
2880
2880
  borderTop: {
2881
2881
  show: !1
2882
2882
  }
@@ -2894,7 +2894,7 @@ const ul = {
2894
2894
  borderLeft: "1px solid #000"
2895
2895
  },
2896
2896
  optionsConfig: {
2897
- ...Ze,
2897
+ ...et,
2898
2898
  borderLeft: {
2899
2899
  show: !1
2900
2900
  }
@@ -2913,19 +2913,19 @@ const ul = {
2913
2913
  colspan: 2
2914
2914
  },
2915
2915
  optionsConfig: {
2916
- ...Ze
2916
+ ...et
2917
2917
  }
2918
2918
  }
2919
2919
  ]
2920
- }, cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2920
+ }, dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2921
2921
  __proto__: null,
2922
- default: rl
2923
- }, Symbol.toStringTag, { value: "Module" })), et = {
2922
+ default: cl
2923
+ }, Symbol.toStringTag, { value: "Module" })), tt = {
2924
2924
  height: "px",
2925
2925
  width: "px",
2926
2926
  left: "px",
2927
2927
  top: "px"
2928
- }, dl = {
2928
+ }, pl = {
2929
2929
  title: "\u57FA\u7840\u5B57\u6BB5",
2930
2930
  order: 1,
2931
2931
  children: [
@@ -2944,7 +2944,7 @@ const ul = {
2944
2944
  fontFamily: ""
2945
2945
  },
2946
2946
  optionsConfig: {
2947
- ...et,
2947
+ ...tt,
2948
2948
  textAlign: {
2949
2949
  type: "radio",
2950
2950
  options: ["left", "center", "right"]
@@ -2965,7 +2965,7 @@ const ul = {
2965
2965
  fontFamily: ""
2966
2966
  },
2967
2967
  optionsConfig: {
2968
- ...et,
2968
+ ...tt,
2969
2969
  fontSize: "px",
2970
2970
  fontFamily: "string"
2971
2971
  }
@@ -2980,13 +2980,13 @@ const ul = {
2980
2980
  width: "150pt",
2981
2981
  height: "150pt"
2982
2982
  },
2983
- optionsConfig: et
2983
+ optionsConfig: tt
2984
2984
  }
2985
2985
  ]
2986
- }, pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2986
+ }, fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2987
2987
  __proto__: null,
2988
- default: dl
2989
- }, Symbol.toStringTag, { value: "Module" })), fl = {
2988
+ default: pl
2989
+ }, Symbol.toStringTag, { value: "Module" })), ml = {
2990
2990
  title: "\u6761\u5F62\u7801",
2991
2991
  order: 7,
2992
2992
  children: [
@@ -3059,64 +3059,64 @@ const ul = {
3059
3059
  }
3060
3060
  }
3061
3061
  ]
3062
- }, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3062
+ }, gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3063
3063
  __proto__: null,
3064
- default: fl
3065
- }, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ Object.assign({ "./module/assist.ts": cl, "./module/base.ts": pl, "./module/bwip.ts": ml }), mt = [];
3064
+ default: ml
3065
+ }, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ Object.assign({ "./module/assist.ts": dl, "./module/base.ts": fl, "./module/bwip.ts": gl }), mt = [];
3066
3066
  Object.keys($t).forEach((e) => {
3067
3067
  const o = $t[e].default;
3068
3068
  o && mt.push(o);
3069
3069
  });
3070
3070
  mt.sort((e, o) => e.order - o.order);
3071
- const Xl = /* @__PURE__ */ U({
3071
+ const Yl = /* @__PURE__ */ N({
3072
3072
  __name: "index",
3073
3073
  setup(e, { expose: o }) {
3074
- const a = q();
3074
+ const u = K();
3075
3075
  return o({
3076
3076
  getHtml() {
3077
3077
  var n, l, t, s;
3078
- return (s = (t = (l = (n = a.value) == null ? void 0 : n.$el) == null ? void 0 : l.nextElementSibling) == null ? void 0 : t.innerHTML) != null ? s : "";
3078
+ return (s = (t = (l = (n = u.value) == null ? void 0 : n.$el) == null ? void 0 : l.nextElementSibling) == null ? void 0 : t.innerHTML) != null ? s : "";
3079
3079
  }
3080
- }), (n, l) => (r(), y(b(sl), I({
3080
+ }), (n, l) => (i(), w(y(rl), I({
3081
3081
  ref_key: "ref$",
3082
- ref: a,
3083
- "module-config": b(mt)
3082
+ ref: u,
3083
+ "module-config": y(mt)
3084
3084
  }, n.$props), null, 16, ["module-config"]));
3085
3085
  }
3086
3086
  });
3087
3087
  function qe(e) {
3088
- return e.multiple && (e.defaultValue ? Le(e.defaultValue) !== "Array" && (e.defaultValue = String(e.defaultValue).split(",")) : e.defaultValue = []), e;
3088
+ return e.multiple && (e.defaultValue ? He(e.defaultValue) !== "Array" && (e.defaultValue = String(e.defaultValue).split(",")) : e.defaultValue = []), e;
3089
3089
  }
3090
3090
  const gt = (e, o) => {
3091
- const a = e.__vccOpts || e;
3091
+ const u = e.__vccOpts || e;
3092
3092
  for (const [n, l] of o)
3093
- a[n] = l;
3094
- return a;
3095
- }, gl = {};
3096
- function _l(e, o) {
3097
- const a = g("a-date-picker"), n = g("a-range-picker");
3098
- return r(), B("div", null, [
3099
- e.$attrs.multiple !== !0 ? (r(), y(a, xe(I({ key: 0 }, e.$attrs)), null, 16)) : (r(), y(n, xe(I({ key: 1 }, e.$attrs)), null, 16))
3093
+ u[n] = l;
3094
+ return u;
3095
+ }, _l = {};
3096
+ function vl(e, o) {
3097
+ const u = m("a-date-picker"), n = m("a-range-picker");
3098
+ return i(), k("div", null, [
3099
+ e.$attrs.multiple !== !0 ? (i(), w(u, we(I({ key: 0 }, e.$attrs)), null, 16)) : (i(), w(n, we(I({ key: 1 }, e.$attrs)), null, 16))
3100
3100
  ]);
3101
3101
  }
3102
- const vl = /* @__PURE__ */ gt(gl, [["render", _l]]), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3102
+ const bl = /* @__PURE__ */ gt(_l, [["render", vl]]), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3103
3103
  __proto__: null,
3104
- default: vl
3105
- }, Symbol.toStringTag, { value: "Module" })), yl = {};
3106
- function hl(e, o) {
3107
- const a = g("a-input");
3108
- return r(), y(a, xe(ct(e.$attrs)), null, 16);
3104
+ default: bl
3105
+ }, Symbol.toStringTag, { value: "Module" })), hl = {};
3106
+ function wl(e, o) {
3107
+ const u = m("a-input");
3108
+ return i(), w(u, we(Le(e.$attrs)), null, 16);
3109
3109
  }
3110
- const st = /* @__PURE__ */ gt(yl, [["render", hl]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3110
+ const rt = /* @__PURE__ */ gt(hl, [["render", wl]]), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3111
3111
  __proto__: null,
3112
- default: st
3113
- }, Symbol.toStringTag, { value: "Module" })), Cl = {
3112
+ default: rt
3113
+ }, Symbol.toStringTag, { value: "Module" })), Al = {
3114
3114
  key: 0,
3115
3115
  class: "u-flex"
3116
- }, Al = /* @__PURE__ */ R("span", {
3116
+ }, El = /* @__PURE__ */ R("span", {
3117
3117
  class: "arco-picker-separator",
3118
3118
  style: { "min-width": "8px" }
3119
- }, " - ", -1), El = /* @__PURE__ */ U({
3119
+ }, " - ", -1), xl = /* @__PURE__ */ N({
3120
3120
  __name: "Number",
3121
3121
  props: {
3122
3122
  modelValue: [Number, Array],
@@ -3124,53 +3124,53 @@ const st = /* @__PURE__ */ gt(yl, [["render", hl]]), wl = /* @__PURE__ */ Object
3124
3124
  },
3125
3125
  emits: ["update:model-value"],
3126
3126
  setup(e, { emit: o }) {
3127
- const a = o, n = e, { modelValue: l } = Ce(n);
3128
- function t(d) {
3129
- const i = at(l == null ? void 0 : l.value), c = Number(i == null ? void 0 : i[d]);
3130
- return qo(c) ? c : void 0;
3127
+ const u = o, n = e, { modelValue: l } = Ae(n);
3128
+ function t(c) {
3129
+ const r = it(l == null ? void 0 : l.value), d = Number(r == null ? void 0 : r[c]);
3130
+ return Ko(d) ? d : void 0;
3131
3131
  }
3132
- const s = M(() => t(0)), u = M(() => t(1));
3133
- return (d, i) => {
3134
- const c = g("a-input-number");
3135
- return r(), B("span", null, [
3136
- e.multiple === !0 ? (r(), B("div", Cl, [
3137
- f(c, I(d.$attrs, {
3132
+ const s = M(() => t(0)), a = M(() => t(1));
3133
+ return (c, r) => {
3134
+ const d = m("a-input-number");
3135
+ return i(), k("span", null, [
3136
+ e.multiple === !0 ? (i(), k("div", Al, [
3137
+ f(d, I(c.$attrs, {
3138
3138
  style: { width: "auto" },
3139
3139
  "model-value": s.value,
3140
- "onUpdate:modelValue": i[0] || (i[0] = (m) => a("update:model-value", [m, u.value]))
3140
+ "onUpdate:modelValue": r[0] || (r[0] = (g) => u("update:model-value", [g, a.value]))
3141
3141
  }), null, 16, ["model-value"]),
3142
- Al,
3143
- f(c, I(d.$attrs, {
3142
+ El,
3143
+ f(d, I(c.$attrs, {
3144
3144
  style: { width: "auto" },
3145
- "model-value": u.value,
3146
- "onUpdate:modelValue": i[1] || (i[1] = (m) => a("update:model-value", [s.value, m]))
3145
+ "model-value": a.value,
3146
+ "onUpdate:modelValue": r[1] || (r[1] = (g) => u("update:model-value", [s.value, g]))
3147
3147
  }), null, 16, ["model-value"])
3148
- ])) : (r(), y(c, I({ key: 1 }, d.$attrs, {
3148
+ ])) : (i(), w(d, I({ key: 1 }, c.$attrs, {
3149
3149
  "model-value": Number(n.modelValue),
3150
- "onUpdate:modelValue": i[2] || (i[2] = (m) => a("update:model-value", m))
3150
+ "onUpdate:modelValue": r[2] || (r[2] = (g) => u("update:model-value", g))
3151
3151
  }), null, 16, ["model-value"]))
3152
3152
  ]);
3153
3153
  };
3154
3154
  }
3155
- }), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3155
+ }), Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3156
3156
  __proto__: null,
3157
- default: El
3158
- }, Symbol.toStringTag, { value: "Module" })), Fl = {};
3159
- function kl(e, o) {
3160
- const a = g("a-select");
3161
- return r(), y(a, I(e.$attrs, { "trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" } }), null, 16);
3157
+ default: xl
3158
+ }, Symbol.toStringTag, { value: "Module" })), kl = {};
3159
+ function Bl(e, o) {
3160
+ const u = m("a-select");
3161
+ return i(), w(u, I(e.$attrs, { "trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" } }), null, 16);
3162
3162
  }
3163
- const Bl = /* @__PURE__ */ gt(Fl, [["render", kl]]), $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3163
+ const $l = /* @__PURE__ */ gt(kl, [["render", Bl]]), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3164
3164
  __proto__: null,
3165
- default: Bl
3166
- }, Symbol.toStringTag, { value: "Module" })), tt = /* @__PURE__ */ Object.assign({ "./Date.vue": bl, "./Input.vue": wl, "./Number.vue": xl, "./Select.vue": $l });
3167
- function Ol(e) {
3165
+ default: $l
3166
+ }, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Object.assign({ "./Date.vue": yl, "./Input.vue": Cl, "./Number.vue": Fl, "./Select.vue": Ol });
3167
+ function Sl(e) {
3168
3168
  if (!e)
3169
- return st;
3170
- const o = Object.keys(tt).find((a) => String(a).toLowerCase().slice(2, -4) === e);
3171
- return o && tt[o] ? tt[o].default : st;
3169
+ return rt;
3170
+ const o = Object.keys(ot).find((u) => String(u).toLowerCase().slice(2, -4) === e);
3171
+ return o && ot[o] ? ot[o].default : rt;
3172
3172
  }
3173
- const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl = /* @__PURE__ */ U({
3173
+ const Dl = { class: "u-flex u-flex--start" }, zl = { class: "u-flex__item" }, Vl = /* @__PURE__ */ N({
3174
3174
  __name: "search",
3175
3175
  props: {
3176
3176
  loading: Boolean,
@@ -3202,91 +3202,91 @@ const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl
3202
3202
  },
3203
3203
  emits: ["onSearch", "update:model-value"],
3204
3204
  setup(e, { emit: o }) {
3205
- const a = o, n = e, l = q();
3205
+ const u = o, n = e, l = K();
3206
3206
  function t() {
3207
3207
  return Object.assign([], n.options).map(qe);
3208
3208
  }
3209
3209
  function s() {
3210
- return t().filter((k) => k.show !== !1);
3210
+ return t().filter(($) => $.show !== !1);
3211
3211
  }
3212
- function u() {
3213
- const k = {};
3214
- return s().forEach((P) => {
3215
- k[P.name] = qe(P).defaultValue;
3216
- }), k;
3212
+ function a() {
3213
+ const $ = {};
3214
+ return s().forEach((V) => {
3215
+ $[V.name] = qe(V).defaultValue;
3216
+ }), $;
3217
3217
  }
3218
- const d = M(() => n.size), i = q({ ...u(), ...n.modelValue });
3219
- function c() {
3220
- return { "shaonq--search": !0, [`shaonq--search-${d.value}`]: !0 };
3218
+ const c = M(() => n.size), r = K({ ...a(), ...n.modelValue });
3219
+ function d() {
3220
+ return { "shaonq--search": !0, [`shaonq--search-${c.value}`]: !0 };
3221
3221
  }
3222
- const m = q(s());
3223
- function C() {
3224
- return Object.assign([], m.value);
3222
+ const g = K(s());
3223
+ function b() {
3224
+ return Object.assign([], g.value);
3225
3225
  }
3226
3226
  function v() {
3227
- m.value.push({ type: "input", name: "", label: "" });
3227
+ g.value.push({ type: "input", name: "", label: "" });
3228
3228
  }
3229
- function h(k, P) {
3230
- m.value.splice(k, 1), delete i.value[P];
3229
+ function h($, V) {
3230
+ g.value.splice($, 1), delete r.value[V];
3231
3231
  }
3232
- const F = q(!1);
3233
- function O() {
3232
+ const x = K(!1);
3233
+ function B() {
3234
3234
  l.value && l.value.clearValidate();
3235
3235
  }
3236
- function w() {
3237
- F.value = !0, m.value = s(), i.value = { ...u(), ...n.modelValue }, setTimeout(() => {
3238
- O(), F.value = !1;
3236
+ function C() {
3237
+ x.value = !0, g.value = s(), r.value = { ...a(), ...n.modelValue }, setTimeout(() => {
3238
+ B(), x.value = !1;
3239
3239
  }, 200);
3240
3240
  }
3241
- const A = M(() => t().map((k) => ({
3242
- label: k.label,
3243
- value: k.name,
3244
- disabled: C().some((P) => P.name === k.name)
3241
+ const E = M(() => t().map(($) => ({
3242
+ label: $.label,
3243
+ value: $.name,
3244
+ disabled: b().some((V) => V.name === $.name)
3245
3245
  })));
3246
- function S(k, P) {
3247
- const j = t().find((T) => T.name === P);
3248
- j && (m.value[k] = qe(j), i.value[j.name] = m.value[k].defaultValue), i.value = Ut(
3249
- i.value,
3250
- C().map((T) => T.name)
3251
- ), O();
3246
+ function S($, V) {
3247
+ const j = t().find((T) => T.name === V);
3248
+ j && (g.value[$] = qe(j), r.value[j.name] = g.value[$].defaultValue), r.value = qt(
3249
+ r.value,
3250
+ b().map((T) => T.name)
3251
+ ), B();
3252
3252
  }
3253
- async function $() {
3254
- l.value && await new Promise((P) => {
3253
+ async function O() {
3254
+ l.value && await new Promise((V) => {
3255
3255
  var j;
3256
3256
  (j = l.value) == null || j.validate((T) => {
3257
3257
  var ie, L;
3258
3258
  const Y = (L = (ie = Object.values({ ...T })) == null ? void 0 : ie[0]) == null ? void 0 : L.label;
3259
- Y && jt.warning(`\u8BF7\u8F93\u5165${Y}`), P(!T);
3259
+ Y && Rt.warning(`\u8BF7\u8F93\u5165${Y}`), V(!T);
3260
3260
  });
3261
- }) && a(
3261
+ }) && u(
3262
3262
  "onSearch",
3263
- Object.keys(i.value).reduce((P, j) => {
3264
- const T = i.value[j];
3265
- return Uo(T) ? P[j] = T.some((Y) => !!Y) ? T.join(",") : "" : P[j] = T, P;
3263
+ Object.keys(r.value).reduce((V, j) => {
3264
+ const T = r.value[j];
3265
+ return qo(T) ? V[j] = T.some((Y) => !!Y) ? T.join(",") : "" : V[j] = T, V;
3266
3266
  }, {})
3267
3267
  );
3268
3268
  }
3269
- return (k, P) => {
3270
- const j = g("icon-refresh"), T = g("a-button"), Y = g("a-select"), ie = g("a-form-item"), L = g("icon-plus-circle"), ue = g("icon-delete"), _ = g("a-space"), E = g("a-input-group"), V = g("icon-search"), re = g("a-form");
3271
- return r(), B("div", {
3272
- class: Be(c())
3269
+ return ($, V) => {
3270
+ const j = m("icon-refresh"), T = m("a-button"), Y = m("a-select"), ie = m("a-form-item"), L = m("icon-plus-circle"), ue = m("icon-delete"), _ = m("a-space"), A = m("a-input-group"), P = m("icon-search"), re = m("a-form");
3271
+ return i(), k("div", {
3272
+ class: Be(d())
3273
3273
  }, [
3274
- le(k.$slots, "head"),
3275
- R("div", Sl, [
3276
- R("div", Dl, [
3274
+ oe($.$slots, "head"),
3275
+ R("div", Dl, [
3276
+ R("div", zl, [
3277
3277
  f(_, {
3278
3278
  size: 1,
3279
3279
  align: "start"
3280
3280
  }, {
3281
3281
  default: p(() => [
3282
- n.readonly ? N("", !0) : (r(), y(T, {
3282
+ n.readonly ? U("", !0) : (i(), w(T, {
3283
3283
  key: 0,
3284
3284
  type: "outline",
3285
3285
  class: "arco-btn-light",
3286
- size: d.value,
3286
+ size: c.value,
3287
3287
  title: "\u91CD\u7F6E\u641C\u7D22\u6761\u4EF6",
3288
- loading: F.value,
3289
- onClick: P[0] || (P[0] = (X) => w())
3288
+ loading: x.value,
3289
+ onClick: V[0] || (V[0] = (X) => C())
3290
3290
  }, {
3291
3291
  icon: p(() => [
3292
3292
  f(j)
@@ -3296,34 +3296,34 @@ const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl
3296
3296
  f(re, {
3297
3297
  ref_key: "formRef",
3298
3298
  ref: l,
3299
- model: i.value
3299
+ model: r.value
3300
3300
  }, {
3301
3301
  default: p(() => [
3302
3302
  f(_, {
3303
- size: d.value,
3303
+ size: c.value,
3304
3304
  wrap: ""
3305
3305
  }, {
3306
3306
  default: p(() => [
3307
- (r(!0), B(Q, null, de(m.value, (X, me) => (r(), y(E, {
3307
+ (i(!0), k(Q, null, de(g.value, (X, me) => (i(), w(A, {
3308
3308
  key: me,
3309
- size: d.value
3309
+ size: c.value
3310
3310
  }, {
3311
3311
  default: p(() => [
3312
3312
  f(_, { size: 1 }, {
3313
3313
  default: p(() => [
3314
- n.readonly ? (r(), B("div", {
3314
+ n.readonly ? (i(), k("div", {
3315
3315
  key: 1,
3316
- style: oe({ width: n.labelWidth })
3317
- }, J(X.label), 5)) : (r(), y(Y, {
3316
+ style: ne({ width: n.labelWidth })
3317
+ }, J(X.label), 5)) : (i(), w(Y, {
3318
3318
  key: 0,
3319
3319
  "model-value": X.name,
3320
- options: A.value,
3321
- style: oe({ width: n.labelWidth }),
3320
+ options: E.value,
3321
+ style: ne({ width: n.labelWidth }),
3322
3322
  placeholder: "\u5B57\u6BB5\u540D\u79F0",
3323
3323
  "allow-search": "",
3324
- size: d.value,
3324
+ size: c.value,
3325
3325
  "trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" },
3326
- onChange: (ge) => S(me, ge)
3326
+ onChange: (_e) => S(me, _e)
3327
3327
  }, null, 8, ["model-value", "options", "style", "size", "onChange"])),
3328
3328
  f(ie, {
3329
3329
  "no-style": "",
@@ -3333,41 +3333,41 @@ const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl
3333
3333
  rules: X.rules
3334
3334
  }, {
3335
3335
  default: p(() => [
3336
- (r(), y(be(b(Ol)(X.type)), I({
3337
- modelValue: i.value[X.name],
3338
- "onUpdate:modelValue": (ge) => i.value[X.name] = ge,
3339
- size: d.value,
3336
+ (i(), w(ge(y(Sl)(X.type)), I({
3337
+ modelValue: r.value[X.name],
3338
+ "onUpdate:modelValue": (_e) => r.value[X.name] = _e,
3339
+ size: c.value,
3340
3340
  style: { width: n.inputWidth },
3341
3341
  autocomplete: "off",
3342
3342
  readonly: !X.name,
3343
3343
  "allow-clear": "",
3344
3344
  ref_for: !0
3345
- }, b(He)(X, ["label", "defaultValue", "type", "show"]), {
3346
- onPressEnter: P[1] || (P[1] = (ge) => $())
3345
+ }, y(Ge)(X, ["label", "defaultValue", "type", "show"]), {
3346
+ onPressEnter: V[1] || (V[1] = (_e) => O())
3347
3347
  }), null, 16, ["modelValue", "onUpdate:modelValue", "size", "style", "readonly"]))
3348
3348
  ]),
3349
3349
  _: 2
3350
3350
  }, 1032, ["field", "label", "required", "rules"]),
3351
- n.readonly ? N("", !0) : (r(), B(Q, { key: 2 }, [
3352
- me ? (r(), y(T, {
3351
+ n.readonly ? U("", !0) : (i(), k(Q, { key: 2 }, [
3352
+ me ? (i(), w(T, {
3353
3353
  key: 1,
3354
3354
  type: "primary",
3355
3355
  class: "arco-btn-light",
3356
3356
  title: "\u5220\u9664",
3357
- size: d.value,
3358
- onClick: (ge) => h(me, X.name)
3357
+ size: c.value,
3358
+ onClick: (_e) => h(me, X.name)
3359
3359
  }, {
3360
3360
  icon: p(() => [
3361
3361
  f(ue)
3362
3362
  ]),
3363
3363
  _: 2
3364
- }, 1032, ["size", "onClick"])) : (r(), y(T, {
3364
+ }, 1032, ["size", "onClick"])) : (i(), w(T, {
3365
3365
  key: 0,
3366
3366
  type: "primary",
3367
3367
  class: "arco-btn-light",
3368
3368
  title: "\u6DFB\u52A0",
3369
- size: d.value,
3370
- onClick: P[2] || (P[2] = (ge) => v())
3369
+ size: c.value,
3370
+ onClick: V[2] || (V[2] = (_e) => v())
3371
3371
  }, {
3372
3372
  icon: p(() => [
3373
3373
  f(L)
@@ -3381,18 +3381,18 @@ const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl
3381
3381
  ]),
3382
3382
  _: 2
3383
3383
  }, 1032, ["size"]))), 128)),
3384
- le(k.$slots, "default"),
3385
- f(_, { size: d.value }, {
3384
+ oe($.$slots, "default"),
3385
+ f(_, { size: c.value }, {
3386
3386
  default: p(() => [
3387
3387
  f(T, {
3388
3388
  type: "primary",
3389
3389
  loading: n.loading,
3390
3390
  title: "\u641C\u7D22",
3391
- size: d.value,
3392
- onClick: P[3] || (P[3] = (X) => $())
3391
+ size: c.value,
3392
+ onClick: V[3] || (V[3] = (X) => O())
3393
3393
  }, {
3394
3394
  icon: p(() => [
3395
- f(V)
3395
+ f(P)
3396
3396
  ]),
3397
3397
  default: p(() => [
3398
3398
  te(" \u641C\u7D22 ")
@@ -3417,11 +3417,11 @@ const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl
3417
3417
  };
3418
3418
  }
3419
3419
  });
3420
- function Yl(e) {
3420
+ function Zl(e) {
3421
3421
  const o = {};
3422
- return e.forEach((a) => {
3423
- a.show !== !1 && (o[a.name] = qe(a).defaultValue);
3424
- }), [ot(e), ot(o)];
3422
+ return e.forEach((u) => {
3423
+ u.show !== !1 && (o[u.name] = qe(u).defaultValue);
3424
+ }), [nt(e), nt(o)];
3425
3425
  }
3426
3426
  const Pl = {
3427
3427
  textarea: [
@@ -3450,7 +3450,7 @@ const Pl = {
3450
3450
  ["link", "video", "image"],
3451
3451
  ["clean"]
3452
3452
  ]
3453
- }, Zl = /* @__PURE__ */ U({
3453
+ }, eu = /* @__PURE__ */ N({
3454
3454
  __name: "index",
3455
3455
  props: {
3456
3456
  modelValue: { type: String, default: "" },
@@ -3458,20 +3458,20 @@ const Pl = {
3458
3458
  },
3459
3459
  emits: ["update:modelValue"],
3460
3460
  setup(e, { emit: o }) {
3461
- const a = e, n = o, l = q();
3461
+ const u = e, n = o, l = K();
3462
3462
  let t;
3463
3463
  const s = () => {
3464
- var d, i;
3465
- return String((i = (d = t == null ? void 0 : t.root) == null ? void 0 : d.innerHTML) != null ? i : "");
3464
+ var c, r;
3465
+ return String((r = (c = t == null ? void 0 : t.root) == null ? void 0 : c.innerHTML) != null ? r : "");
3466
3466
  };
3467
- function u() {
3467
+ function a() {
3468
3468
  return {
3469
3469
  container: Pl.textarea,
3470
3470
  handlers: {
3471
- link(d) {
3472
- if (d) {
3473
- const i = prompt("Enter the URL");
3474
- t && t.format("link", i);
3471
+ link(c) {
3472
+ if (c) {
3473
+ const r = prompt("Enter the URL");
3474
+ t && t.format("link", r);
3475
3475
  } else
3476
3476
  t && t.format("link", !1);
3477
3477
  }
@@ -3479,34 +3479,34 @@ const Pl = {
3479
3479
  };
3480
3480
  }
3481
3481
  return dt(() => {
3482
- l.value && !t && (t = new mo(l.value, { modules: { toolbar: u() }, theme: "snow" }), t.root.innerHTML = a.modelValue, t.on("text-change", () => {
3482
+ l.value && !t && (t = new go(l.value, { modules: { toolbar: a() }, theme: "snow" }), t.root.innerHTML = u.modelValue, t.on("text-change", () => {
3483
3483
  n("update:modelValue", s());
3484
3484
  }));
3485
3485
  }), Dt(() => {
3486
3486
  t = null;
3487
- }), (d, i) => (r(), B("div", {
3487
+ }), (c, r) => (i(), k("div", {
3488
3488
  ref_key: "divRef",
3489
3489
  ref: l
3490
3490
  }, null, 512));
3491
3491
  }
3492
3492
  });
3493
- const eu = /* @__PURE__ */ U({
3493
+ const tu = /* @__PURE__ */ N({
3494
3494
  __name: "index",
3495
3495
  props: {
3496
3496
  useErrData: {}
3497
3497
  },
3498
3498
  setup(e) {
3499
- const o = e, { useErrData: a } = Ce(o), n = zt({ useErrData: a });
3500
- return Pt(Tt, n), (l, t) => le(l.$slots, "default");
3499
+ const o = e, { useErrData: u } = Ae(o), n = Vt({ useErrData: u });
3500
+ return Pt(Wt, n), (l, t) => oe(l.$slots, "default");
3501
3501
  }
3502
3502
  });
3503
- function Jt(e) {
3503
+ function Xt(e) {
3504
3504
  return e ? typeof e == "string" ? e.split(",") : Object.assign([], e) : [];
3505
3505
  }
3506
- function Vl(e) {
3507
- return Jt(e).join(",");
3506
+ function jl(e) {
3507
+ return Xt(e).join(",");
3508
3508
  }
3509
- const Xt = /* @__PURE__ */ U({
3509
+ const Yt = /* @__PURE__ */ N({
3510
3510
  __name: "form",
3511
3511
  props: {
3512
3512
  config: {
@@ -3542,126 +3542,126 @@ const Xt = /* @__PURE__ */ U({
3542
3542
  }
3543
3543
  },
3544
3544
  emits: ["update:modelValue", "submit", "error"],
3545
- setup(e, { expose: o, emit: a }) {
3545
+ setup(e, { expose: o, emit: u }) {
3546
3546
  const n = e;
3547
3547
  function l(_) {
3548
- const E = { ..._ };
3549
- return n.config.forEach((V) => {
3550
- V.dotNotation && (E[V.model] = Jt(E[V.model]));
3551
- }), E;
3548
+ const A = { ..._ };
3549
+ return n.config.forEach((P) => {
3550
+ P.dotNotation && (A[P.model] = Xt(A[P.model]));
3551
+ }), A;
3552
3552
  }
3553
3553
  function t(_) {
3554
- const E = { ..._ };
3555
- return n.config.forEach((V) => {
3556
- V.dotNotation && (E[V.model] = Vl(E[V.model]));
3557
- }), E;
3554
+ const A = { ..._ };
3555
+ return n.config.forEach((P) => {
3556
+ P.dotNotation && (A[P.model] = jl(A[P.model]));
3557
+ }), A;
3558
3558
  }
3559
- const s = a, u = q(), d = (_) => typeof _ == "string" && ["a-input", "a-textarea"].includes(_) ? { autocomplete: "new-password" } : null;
3560
- function i(_) {
3559
+ const s = u, a = K(), c = (_) => typeof _ == "string" && ["a-input", "a-textarea"].includes(_) ? { autocomplete: "new-password" } : null;
3560
+ function r(_) {
3561
3561
  return Object.fromEntries(
3562
- Object.values(n.config).filter((E) => E.model).map((E) => {
3563
- var V;
3564
- return [E.model, _ ? _(E) : (V = E.defaultValue) != null ? V : ""];
3562
+ Object.values(n.config).filter((A) => A.model).map((A) => {
3563
+ var P;
3564
+ return [A.model, _ ? _(A) : (P = A.defaultValue) != null ? P : ""];
3565
3565
  })
3566
3566
  );
3567
3567
  }
3568
- const [c, m] = De(i(() => [])), [C] = De(i((_) => _.show !== !1)), [v, h] = De(l({ ...i(), ...n.modelValue }), u);
3569
- function F() {
3568
+ const [d, g] = Ue(r(() => [])), [b] = Ue(r((_) => _.show !== !1)), [v, h] = Ue(l({ ...r(), ...n.modelValue }), a);
3569
+ function x() {
3570
3570
  const _ = t(v.value);
3571
3571
  s("update:modelValue", _);
3572
3572
  }
3573
- F();
3574
- function O(_) {
3573
+ x();
3574
+ function B(_) {
3575
3575
  if (_ != null && _.customClass)
3576
3576
  return typeof _.customClass == "function" ? _.customClass(_, v.value) : _;
3577
3577
  }
3578
- function w(_) {
3579
- return c.value[_];
3578
+ function C(_) {
3579
+ return d.value[_];
3580
3580
  }
3581
- function A(_) {
3581
+ function E(_) {
3582
3582
  return v.value[_];
3583
3583
  }
3584
3584
  function S(_) {
3585
- return C.value[_];
3585
+ return b.value[_];
3586
3586
  }
3587
- function $(_, E) {
3588
- c.value[_] = E;
3587
+ function O(_, A) {
3588
+ d.value[_] = A;
3589
3589
  }
3590
- function k(_, E) {
3591
- typeof _ == "string" ? v.value[_] = E : v.value = { ...v.value, ..._ }, F();
3590
+ function $(_, A) {
3591
+ typeof _ == "string" ? v.value[_] = A : v.value = { ...v.value, ..._ }, x();
3592
3592
  }
3593
- function P(_, E) {
3594
- C.value[_] = E;
3593
+ function V(_, A) {
3594
+ b.value[_] = A;
3595
3595
  }
3596
- const j = { getModelOption: w, getModel: A, getShow: S, setModelOption: $, setModel: k, setShow: P };
3596
+ const j = { getModelOption: C, getModel: E, getShow: S, setModelOption: O, setModel: $, setShow: V };
3597
3597
  function T(_) {
3598
- const E = { ..._.componentAttr };
3599
- return Object.keys(E).forEach((V) => {
3600
- typeof E[V] == "function" && (E[V] = E[V](v.value, { ...j, ..._.events }));
3601
- }), E;
3598
+ const A = { ..._.componentAttr };
3599
+ return Object.keys(A).forEach((P) => {
3600
+ typeof A[P] == "function" && (A[P] = A[P](v.value, { ...j, ..._.events }));
3601
+ }), A;
3602
3602
  }
3603
3603
  function Y() {
3604
3604
  n.config.forEach(async (_) => {
3605
- var E;
3606
- if (typeof ((E = _ == null ? void 0 : _.events) == null ? void 0 : E.onMounted) == "function") {
3607
- const V = await _.events.onMounted({ ...j, ..._.events });
3608
- V && $(_.model, V);
3605
+ var A;
3606
+ if (typeof ((A = _ == null ? void 0 : _.events) == null ? void 0 : A.onMounted) == "function") {
3607
+ const P = await _.events.onMounted({ ...j, ..._.events });
3608
+ P && O(_.model, P);
3609
3609
  }
3610
3610
  });
3611
3611
  }
3612
- function ie(_, E) {
3613
- n.config.forEach(async (V) => {
3612
+ function ie(_, A) {
3613
+ n.config.forEach(async (P) => {
3614
3614
  var re;
3615
- if (typeof ((re = V == null ? void 0 : V.events) == null ? void 0 : re.onUpdate) == "function") {
3616
- const X = _ == null ? void 0 : _[V.model], me = E == null ? void 0 : E[V.model];
3617
- X !== me && await V.events.onUpdate(X, me, { ...j, ...V.events, onUpdate: () => {
3615
+ if (typeof ((re = P == null ? void 0 : P.events) == null ? void 0 : re.onUpdate) == "function") {
3616
+ const X = _ == null ? void 0 : _[P.model], me = A == null ? void 0 : A[P.model];
3617
+ X !== me && await P.events.onUpdate(X, me, { ...j, ...P.events, onUpdate: () => {
3618
3618
  } });
3619
3619
  }
3620
3620
  });
3621
3621
  }
3622
- ne(
3622
+ le(
3623
3623
  () => n.modelValue,
3624
- (_, E) => {
3625
- v.value = l(n.modelValue), ie(_, E);
3624
+ (_, A) => {
3625
+ v.value = l(n.modelValue), ie(_, A);
3626
3626
  },
3627
3627
  { deep: !0, immediate: !0 }
3628
- ), ne(
3628
+ ), le(
3629
3629
  () => n.config,
3630
3630
  () => {
3631
- C.value = i((_) => _.show !== !1);
3631
+ b.value = r((_) => _.show !== !1);
3632
3632
  }
3633
3633
  );
3634
- async function L(_, E) {
3635
- var V;
3636
- typeof ((V = E.events) == null ? void 0 : V.onChange) == "function" && await E.events.onChange(_, { ...j, ...E.events });
3634
+ async function L(_, A) {
3635
+ var P;
3636
+ typeof ((P = A.events) == null ? void 0 : P.onChange) == "function" && await A.events.onChange(_, { ...j, ...A.events });
3637
3637
  }
3638
3638
  async function ue() {
3639
3639
  return new Promise((_) => {
3640
- u.value.validate((E) => {
3641
- if (E)
3642
- _([!0, E]), s("error", E);
3640
+ a.value.validate((A) => {
3641
+ if (A)
3642
+ _([!0, A]), s("error", A);
3643
3643
  else {
3644
- const V = t(v.value);
3645
- _([!1, V]), s("update:modelValue", V), s("submit", V);
3644
+ const P = t(v.value);
3645
+ _([!1, P]), s("update:modelValue", P), s("submit", P);
3646
3646
  }
3647
3647
  });
3648
3648
  });
3649
3649
  }
3650
3650
  return dt(() => {
3651
- h(), m(), Y();
3651
+ h(), g(), Y();
3652
3652
  }), o({
3653
3653
  onSubmit: ue,
3654
3654
  onReset: h,
3655
3655
  resetFields() {
3656
3656
  var _;
3657
- (_ = u.value) == null || _.resetFields();
3657
+ (_ = a.value) == null || _.resetFields();
3658
3658
  }
3659
- }), (_, E) => {
3660
- const V = g("a-form-item"), re = g("a-col"), X = g("a-row"), me = g("icon-save"), ge = g("a-button"), ye = g("a-space"), pe = g("a-form");
3661
- return r(), y(pe, I({
3659
+ }), (_, A) => {
3660
+ const P = m("a-form-item"), re = m("a-col"), X = m("a-row"), me = m("icon-save"), _e = m("a-button"), ye = m("a-space"), pe = m("a-form");
3661
+ return i(), w(pe, I({
3662
3662
  ref_key: "formRef",
3663
- ref: u,
3664
- model: b(v),
3663
+ ref: a,
3664
+ model: y(v),
3665
3665
  "label-col-props": { flex: n.labelWidth },
3666
3666
  "label-col-style": { paddingRight: "8px" },
3667
3667
  disabled: n.disabled,
@@ -3673,67 +3673,69 @@ const Xt = /* @__PURE__ */ U({
3673
3673
  gutter: n.gutter
3674
3674
  }, {
3675
3675
  default: p(() => [
3676
- (r(!0), B(Q, null, de(n.config, (G, je) => {
3676
+ (i(!0), k(Q, null, de(n.config, (G, Pe) => {
3677
3677
  var Fe;
3678
- return r(), y(re, I({
3679
- key: je,
3680
- ref_for: !0
3681
- }, n.grid, {
3682
- span: ((Fe = G.options) == null ? void 0 : Fe.span) || n.span
3683
- }), {
3684
- default: p(() => {
3685
- var Re, Te, We;
3686
- return [
3687
- b(C)[G.model] ? (r(), y(V, {
3688
- key: 0,
3689
- field: G.model,
3690
- "row-class": O(G),
3691
- label: G.name,
3692
- "validate-trigger": G.validateTrigger,
3693
- rules: G.rules || ((Re = G.options) != null && Re.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${G.name}` }] : []),
3694
- disabled: Boolean((Te = G.options) == null ? void 0 : Te.disabled),
3695
- tooltip: (We = G.options) == null ? void 0 : We.tooltip,
3696
- "label-col-flex": n.labelWidth,
3697
- "asterisk-position": n.labelAlign === "right" ? "start" : "end"
3698
- }, {
3699
- default: p(() => {
3700
- var $e, x, D;
3701
- return [
3702
- (r(), y(be(G.type), I({
3703
- modelValue: b(v)[G.model],
3704
- "onUpdate:modelValue": (K) => b(v)[G.model] = K,
3705
- size: "small",
3706
- "input-attrs": d(G),
3707
- placeholder: ($e = G == null ? void 0 : G.options) == null ? void 0 : $e.placeholder,
3708
- options: (x = b(c)[G.model]) != null ? x : [],
3709
- disabled: Boolean((D = G.options) == null ? void 0 : D.disabled),
3710
- style: { width: "100%" },
3711
- ref_for: !0
3712
- }, T(G), {
3713
- onChange: (K) => L(K, G)
3714
- }), null, 16, ["modelValue", "onUpdate:modelValue", "input-attrs", "placeholder", "options", "disabled", "onChange"]))
3715
- ];
3716
- }),
3717
- _: 2
3718
- }, 1032, ["field", "row-class", "label", "validate-trigger", "rules", "disabled", "tooltip", "label-col-flex", "asterisk-position"])) : N("", !0)
3719
- ];
3720
- }),
3721
- _: 2
3722
- }, 1040, ["span"]);
3678
+ return i(), k(Q, { key: Pe }, [
3679
+ y(b)[G.model] ? (i(), w(re, I({
3680
+ key: 0,
3681
+ ref_for: !0
3682
+ }, n.grid, {
3683
+ span: ((Fe = G.options) == null ? void 0 : Fe.span) || n.span
3684
+ }), {
3685
+ default: p(() => {
3686
+ var je, Re, Te;
3687
+ return [
3688
+ f(P, {
3689
+ field: G.model,
3690
+ "row-class": B(G),
3691
+ label: G.name,
3692
+ "validate-trigger": G.validateTrigger,
3693
+ rules: G.rules || ((je = G.options) != null && je.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${G.name}` }] : []),
3694
+ disabled: Boolean((Re = G.options) == null ? void 0 : Re.disabled),
3695
+ tooltip: (Te = G.options) == null ? void 0 : Te.tooltip,
3696
+ "label-col-flex": n.labelWidth,
3697
+ "asterisk-position": n.labelAlign === "right" ? "start" : "end"
3698
+ }, {
3699
+ default: p(() => {
3700
+ var $e, F, D;
3701
+ return [
3702
+ (i(), w(ge(G.type), I({
3703
+ modelValue: y(v)[G.model],
3704
+ "onUpdate:modelValue": (q) => y(v)[G.model] = q,
3705
+ size: "small",
3706
+ "input-attrs": c(G),
3707
+ placeholder: ($e = G == null ? void 0 : G.options) == null ? void 0 : $e.placeholder,
3708
+ options: (F = y(d)[G.model]) != null ? F : [],
3709
+ disabled: Boolean((D = G.options) == null ? void 0 : D.disabled),
3710
+ style: { width: "100%" },
3711
+ ref_for: !0
3712
+ }, T(G), {
3713
+ onChange: (q) => L(q, G),
3714
+ "onUpdate:modelValue": A[0] || (A[0] = (q) => x())
3715
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "input-attrs", "placeholder", "options", "disabled", "onChange"]))
3716
+ ];
3717
+ }),
3718
+ _: 2
3719
+ }, 1032, ["field", "row-class", "label", "validate-trigger", "rules", "disabled", "tooltip", "label-col-flex", "asterisk-position"])
3720
+ ];
3721
+ }),
3722
+ _: 2
3723
+ }, 1040, ["span"])) : U("", !0)
3724
+ ], 64);
3723
3725
  }), 128)),
3724
- le(_.$slots, "row")
3726
+ oe(_.$slots, "row")
3725
3727
  ]),
3726
3728
  _: 3
3727
3729
  }, 8, ["gutter"]),
3728
- le(_.$slots, "default", { onSubmit: ue }, () => [
3729
- n.hideSubmit ? N("", !0) : (r(), y(V, { key: 0 }, {
3730
+ oe(_.$slots, "default", { onSubmit: ue }, () => [
3731
+ n.hideSubmit ? U("", !0) : (i(), w(P, { key: 0 }, {
3730
3732
  default: p(() => [
3731
3733
  f(ye, null, {
3732
3734
  default: p(() => [
3733
- f(ge, {
3735
+ f(_e, {
3734
3736
  type: "primary",
3735
3737
  loading: n.loading,
3736
- onClick: E[0] || (E[0] = (G) => ue())
3738
+ onClick: A[1] || (A[1] = (G) => ue())
3737
3739
  }, {
3738
3740
  icon: p(() => [
3739
3741
  f(me)
@@ -3755,9 +3757,10 @@ const Xt = /* @__PURE__ */ U({
3755
3757
  }, 16, ["model", "label-col-props", "disabled", "label-align"]);
3756
3758
  };
3757
3759
  }
3758
- }), jl = /* @__PURE__ */ U({
3760
+ }), Rl = /* @__PURE__ */ N({
3759
3761
  __name: "modal-form",
3760
3762
  props: {
3763
+ isView: { type: Boolean },
3761
3764
  disabled: { type: Boolean },
3762
3765
  title: { default: "\u63D0\u793A" },
3763
3766
  span: {},
@@ -3768,73 +3771,80 @@ const Xt = /* @__PURE__ */ U({
3768
3771
  buttonAttrs: {},
3769
3772
  modalAttrs: {}
3770
3773
  },
3771
- emits: ["submit", "error"],
3774
+ emits: ["update:modelValue", "submit", "error"],
3772
3775
  setup(e, { emit: o }) {
3773
- const a = e, n = o, [l, t] = De({});
3776
+ const u = e, n = o, [l, t] = Ue({});
3774
3777
  function s() {
3775
3778
  t({ visible: !1 });
3776
3779
  }
3777
- const u = q();
3778
- async function d() {
3779
- const [i, c] = await u.value.onSubmit();
3780
- i || n("submit", {
3781
- data: c,
3782
- utils: {
3783
- setVisible(m) {
3784
- l.value.visible = m;
3785
- },
3786
- setLoading(m) {
3787
- l.value.loading = m;
3788
- }
3789
- }
3790
- });
3780
+ function a() {
3781
+ t({ visible: !0 });
3791
3782
  }
3792
- return (i, c) => {
3793
- const m = g("a-button"), C = g("a-modal");
3794
- return r(), B(Q, null, [
3795
- f(m, I({
3796
- disabled: a.disabled,
3797
- type: "primary",
3798
- size: "small"
3799
- }, { ...a.buttonAttrs }, {
3800
- onClick: c[0] || (c[0] = (v) => b(t)({ visible: !0 }))
3801
- }), {
3783
+ function c() {
3784
+ return u.isView ? {} : { disabled: u.disabled, type: "primary", size: "small", ...u.buttonAttrs, onClick: () => a() };
3785
+ }
3786
+ const r = K(), d = {
3787
+ setVisible(b) {
3788
+ l.value.visible = b;
3789
+ },
3790
+ setLoading(b) {
3791
+ l.value.loading = b;
3792
+ }
3793
+ };
3794
+ async function g() {
3795
+ const [b, v] = await r.value.onSubmit();
3796
+ b || n("submit", [v, d]);
3797
+ }
3798
+ return (b, v) => {
3799
+ const h = m("AButton"), x = m("AModal");
3800
+ return i(), k(Q, null, [
3801
+ (i(), w(ge(u.isView ? "div" : y(po)), we(Le(c())), zt({
3802
3802
  default: p(() => [
3803
- le(i.$slots, "default", {}, () => [
3804
- te(J(a.title), 1)
3803
+ oe(b.$slots, "default", {
3804
+ onSubmit: g,
3805
+ onShow: a
3806
+ }, () => [
3807
+ te(J(u.title), 1)
3805
3808
  ])
3806
3809
  ]),
3807
- _: 3
3808
- }, 16, ["disabled"]),
3809
- (r(), y(ro, { to: "body" }, [
3810
- f(C, I({
3811
- visible: b(l).visible,
3812
- title: a.title,
3810
+ _: 2
3811
+ }, [
3812
+ u.isView ? void 0 : {
3813
+ name: "icon",
3814
+ fn: p(() => [
3815
+ oe(b.$slots, "icon")
3816
+ ]),
3817
+ key: "0"
3818
+ }
3819
+ ]), 1040)),
3820
+ (i(), w(ro, { to: "body" }, [
3821
+ f(x, I({
3822
+ visible: y(l).visible,
3823
+ title: u.title,
3813
3824
  "title-align": "start",
3814
3825
  "mask-closable": !1,
3815
3826
  size: "small",
3816
- class: "hamco-drawer",
3817
3827
  "body-style": { minHeight: "280px" },
3818
3828
  "unmount-on-close": ""
3819
- }, a.modalAttrs, {
3829
+ }, u.modalAttrs, {
3820
3830
  onCancel: s,
3821
3831
  onClose: s
3822
3832
  }), {
3823
3833
  footer: p(() => [
3824
- f(m, {
3834
+ f(h, {
3825
3835
  size: "small",
3826
- onClick: c[2] || (c[2] = (v) => s())
3836
+ onClick: v[2] || (v[2] = (B) => s())
3827
3837
  }, {
3828
3838
  default: p(() => [
3829
3839
  te("\u53D6\u6D88 ")
3830
3840
  ]),
3831
3841
  _: 1
3832
3842
  }),
3833
- f(m, {
3843
+ f(h, {
3834
3844
  type: "primary",
3835
3845
  size: "small",
3836
- loading: b(l).loading,
3837
- onClick: c[3] || (c[3] = (v) => d())
3846
+ loading: y(l).loading,
3847
+ onClick: v[3] || (v[3] = (B) => g())
3838
3848
  }, {
3839
3849
  default: p(() => [
3840
3850
  te("\u786E\u8BA4 ")
@@ -3843,13 +3853,14 @@ const Xt = /* @__PURE__ */ U({
3843
3853
  }, 8, ["loading"])
3844
3854
  ]),
3845
3855
  default: p(() => [
3846
- f(Xt, I({
3856
+ f(Yt, I({
3847
3857
  ref_key: "formRef",
3848
- ref: u,
3858
+ ref: r,
3849
3859
  "hide-submit": "",
3850
3860
  "label-align": "left"
3851
- }, { ...b(He)(i.$props, ["buttonAttrs"]) }, {
3852
- onError: c[1] || (c[1] = (v) => n("error", v))
3861
+ }, { ...y(Ge)(b.$props, ["buttonAttrs", "modalAttrs"]) }, {
3862
+ onError: v[0] || (v[0] = (B) => n("error", B)),
3863
+ "onUpdate:modelValue": v[1] || (v[1] = (B) => n("update:modelValue", B))
3853
3864
  }), null, 16)
3854
3865
  ]),
3855
3866
  _: 1
@@ -3858,7 +3869,7 @@ const Xt = /* @__PURE__ */ U({
3858
3869
  ], 64);
3859
3870
  };
3860
3871
  }
3861
- }), tu = /* @__PURE__ */ U({
3872
+ }), ou = /* @__PURE__ */ N({
3862
3873
  __name: "index",
3863
3874
  props: {
3864
3875
  isShow: { type: Boolean },
@@ -3866,14 +3877,14 @@ const Xt = /* @__PURE__ */ U({
3866
3877
  formProps: {}
3867
3878
  },
3868
3879
  setup(e) {
3869
- return (o, a) => (r(), B("div", {
3870
- style: oe(o.isShow ? { display: "block" } : { position: "absolute", clip: "rect(0px, 0px, 0px, 0px)", height: "0px", overflow: "auto" })
3880
+ return (o, u) => (i(), k("div", {
3881
+ style: ne(o.isShow ? { display: "block" } : { position: "absolute", clip: "rect(0px, 0px, 0px, 0px)", height: "0px", overflow: "auto" })
3871
3882
  }, [
3872
3883
  R("div", I({
3873
3884
  ref: "print$",
3874
3885
  style: [{ position: "relative", width: "100%" }, { maxWidth: o.isDirection ? "297mm" : "210mm" }]
3875
3886
  }, o.formProps), [
3876
- le(o.$slots, "default")
3887
+ oe(o.$slots, "default")
3877
3888
  ], 16)
3878
3889
  ], 4));
3879
3890
  }
@@ -4067,35 +4078,35 @@ const Xt = /* @__PURE__ */ U({
4067
4078
  customClass: "\u81EA\u5B9A\u4E49Class"
4068
4079
  }
4069
4080
  }
4070
- }, ou = { enUS: Ot, zhCN: Ot }, nu = {
4071
- formatTable: jo,
4072
- mergeConfig: Ho,
4073
- generateQRcodeBase64: Kt,
4074
- downLoadPdf: Go,
4075
- useState: De,
4076
- findObject: Ut,
4077
- omitObject: He,
4078
- deepClone: Ko,
4079
- download: Lo,
4081
+ }, nu = { enUS: Ot, zhCN: Ot }, lu = {
4082
+ formatTable: Ro,
4083
+ mergeConfig: Go,
4084
+ generateQRcodeBase64: Lt,
4085
+ downLoadPdf: Qo,
4086
+ findObject: qt,
4087
+ omitObject: Ge,
4088
+ deepClone: Lo,
4089
+ download: Ho,
4080
4090
  log: No
4081
- }, lu = {
4091
+ }, uu = {
4082
4092
  install(e) {
4083
- e.use(uo), e.component("OrcTable", Vo), e.component("OrcSearch", zl), e.component("OrcForm", Xt), e.component("OrcFormButton", jl);
4093
+ e.use(ao), e.component("OrcTable", jo), e.component("OrcSearch", Vl), e.component("OrcForm", Yt), e.component("OrcFormButton", Rl);
4084
4094
  }
4085
4095
  };
4086
4096
  export {
4087
- sl as OrcDesign,
4088
- Xl as OrcDesignPrint,
4089
- Xt as OrcForm,
4090
- jl as OrcFormButton,
4091
- tu as OrcHiddenView,
4092
- eu as OrcProvider,
4093
- Zl as OrcQuill,
4094
- zl as OrcSearch,
4095
- Vo as OrcTable,
4096
- lu as default,
4097
- ou as locale,
4098
- Yl as useOrcSearch,
4099
- Jl as useOrcTable,
4100
- nu as utils
4097
+ rl as OrcDesign,
4098
+ Yl as OrcDesignPrint,
4099
+ Yt as OrcForm,
4100
+ Rl as OrcFormButton,
4101
+ ou as OrcHiddenView,
4102
+ tu as OrcProvider,
4103
+ eu as OrcQuill,
4104
+ Vl as OrcSearch,
4105
+ jo as OrcTable,
4106
+ uu as default,
4107
+ nu as locale,
4108
+ Zl as useOrcSearch,
4109
+ Xl as useOrcTable,
4110
+ Ue as useState,
4111
+ lu as utils
4101
4112
  };