@shaonq/vue 1.1.10 → 1.1.11

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