@shaonq/vue 1.0.0 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,150 +1,149 @@
1
- import mt from "vxe-table";
1
+ import Xt from "vxe-table";
2
2
  import "vxe-table/lib/style.css";
3
- import { ref as V, defineComponent as E, computed as B, shallowRef as yt, watch as bt, onUnmounted as wt, resolveComponent as m, openBlock as r, createElementBlock as x, createBlock as R, withCtx as f, renderSlot as ae, createElementVNode as y, toDisplayString as M, createVNode as p, createTextVNode as q, unref as g, createCommentVNode as D, Fragment as I, renderList as oe, createSlots as xt, isVNode as Le, resolveDynamicComponent as xe, normalizeStyle as ee, normalizeProps as ke, guardReactiveProps as Ae, mergeProps as Me, normalizeClass as _e, withModifiers as kt } from "vue";
4
- import Pe from "xe-utils";
5
- import Ce from "vuedraggable";
6
- import Ct from "mitt";
7
- import $t from "bwip-js";
8
- const Y = (o) => o && typeof o == "function";
9
- function re(o, t) {
10
- var e;
11
- const l = (e = o[t.dataIndex]) != null ? e : "";
12
- return t.format && Y(t.format) ? t.format(l, o) : l;
3
+ import { ref as U, defineComponent as N, computed as P, shallowRef as Jt, watch as nt, onUnmounted as Gt, resolveComponent as y, openBlock as d, createElementBlock as S, createBlock as B, withCtx as g, renderSlot as ve, createElementVNode as O, toDisplayString as Y, createVNode as _, createTextVNode as le, unref as v, createCommentVNode as M, Fragment as X, renderList as _e, createSlots as Qt, isVNode as gt, resolveDynamicComponent as Be, normalizeStyle as J, hasInjectionContext as Zt, inject as eo, getCurrentInstance as to, reactive as oo, markRaw as Fe, effectScope as no, isRef as Ae, isReactive as st, toRef as Ue, toRaw as so, nextTick as mt, getCurrentScope as io, onScopeDispose as ao, toRefs as vt, normalizeProps as Te, guardReactiveProps as je, mergeProps as it, normalizeClass as ke, withModifiers as uo } from "vue";
4
+ import He from "xe-utils";
5
+ import Pe from "vuedraggable";
6
+ import Dt from "bwip-js";
7
+ const he = (t) => t && typeof t == "function";
8
+ function Ce(t, e) {
9
+ var o;
10
+ const n = (o = t[e.dataIndex]) != null ? o : "";
11
+ return e.format && he(e.format) ? e.format(n, t) : n;
13
12
  }
14
- function ze(o, t) {
15
- return Y(t.style) ? t.style(o) : { ...t.style };
13
+ function qe(t, e) {
14
+ return he(e.style) ? e.style(t) : { ...e.style };
16
15
  }
17
- function Ee(o) {
18
- return (o == null ? void 0 : o.rowKey) || "_X_ROW_KEY";
16
+ function Ze(t) {
17
+ return (t == null ? void 0 : t.rowKey) || "_X_ROW_KEY";
19
18
  }
20
- function St(o, t) {
21
- return { disabledList: V({
19
+ function lo(t, e) {
20
+ return { disabledList: U({
22
21
  highlight: !0,
23
- reserve: o.option.reserve,
22
+ reserve: t.option.reserve,
24
23
  checkMethod: ({ row: i }) => !i.disabled
25
- }), selectChangeEvent: ({ $table: i, checked: a, row: c }) => {
26
- const { option: u } = o, { fullData: C } = i.getTableData();
27
- if (c && u.checkboxKey) {
28
- const S = u.checkboxKey, _ = C.filter((v) => v[S] && v[S] === c[S]);
29
- _.length && i.setCheckboxRow(_, a);
30
- }
31
- const $ = i.getCheckboxRecords().concat(i.getCheckboxReserveRecords()), b = Ee(o.option);
32
- b && t(
24
+ }), selectChangeEvent: ({ $table: i, checked: a, row: u }) => {
25
+ const { option: l } = t, { fullData: r } = i.getTableData();
26
+ if (u && l.checkboxKey) {
27
+ const p = l.checkboxKey, f = r.filter((F) => F[p] && F[p] === u[p]);
28
+ f.length && i.setCheckboxRow(f, a);
29
+ }
30
+ const c = i.getCheckboxRecords().concat(i.getCheckboxReserveRecords()), h = Ze(t.option);
31
+ h && e(
33
32
  "update:selectedKeys",
34
- $.map((S) => S[b])
33
+ c.map((p) => p[h])
35
34
  );
36
35
  }, radioChangeEvent: ({ row: i }) => {
37
- const a = [i], c = Ee(o.option);
38
- c && t(
36
+ const a = [i], u = Ze(t.option);
37
+ u && e(
39
38
  "update:selectedKeys",
40
- a.map((u) => u[c])
39
+ a.map((l) => l[u])
41
40
  );
42
41
  } };
43
42
  }
44
- const P = V(/* @__PURE__ */ Object.create({}));
45
- function Qe(o) {
46
- const t = {
47
- ...o,
48
- ref: (e) => {
49
- e && (P.value = e);
43
+ const I = U(/* @__PURE__ */ Object.create({}));
44
+ function St(t) {
45
+ const e = {
46
+ ...t,
47
+ ref: (o) => {
48
+ o && (I.value = o);
50
49
  }
51
50
  };
52
51
  return {
53
- tableOption: t,
54
- $grid: P,
52
+ tableOption: e,
53
+ $grid: I,
55
54
  $gridTwo: {
56
55
  getRowKey() {
57
- return Ee(o);
56
+ return Ze(t);
58
57
  },
59
- getRowIndex(e) {
60
- return P.value.getRowIndex(e);
58
+ getRowIndex(o) {
59
+ return I.value.getRowIndex(o);
61
60
  },
62
- getRowSeq(e) {
63
- return P.value.getRowSeq(e);
61
+ getRowSeq(o) {
62
+ return I.value.getRowSeq(o);
64
63
  },
65
64
  getTableData() {
66
- var e, n;
67
- return P.value ? (n = (e = P.value) == null ? void 0 : e.getTableData().fullData) != null ? n : [] : [];
65
+ var o, s;
66
+ return I.value ? (s = (o = I.value) == null ? void 0 : o.getTableData().fullData) != null ? s : [] : [];
68
67
  },
69
68
  getSelection() {
70
- return P.value ? t.selectedType === "checkbox" ? P.value.getCheckboxRecords() : t.selectedType === "radio" ? [P.value.getRadioRecord()] : [] : [];
69
+ return I.value ? e.selectedType === "checkbox" ? I.value.getCheckboxRecords() : e.selectedType === "radio" ? [I.value.getRadioRecord()] : [] : [];
71
70
  },
72
71
  getReserveSelection() {
73
- if (P.value) {
74
- if (t.selectedType === "checkbox") {
75
- const e = P.value.getCheckboxRecords();
76
- return o.reserve ? e.concat(P.value.getCheckboxReserveRecords()) : e;
72
+ if (I.value) {
73
+ if (e.selectedType === "checkbox") {
74
+ const o = I.value.getCheckboxRecords();
75
+ return t.reserve ? o.concat(I.value.getCheckboxReserveRecords()) : o;
77
76
  }
78
- if (t.selectedType === "radio") {
79
- let e = P.value.getRadioRecord();
80
- return o.reserve && !e && (e = P.value.getRadioReserveRecord()), e ? [e] : [];
77
+ if (e.selectedType === "radio") {
78
+ let o = I.value.getRadioRecord();
79
+ return t.reserve && !o && (o = I.value.getRadioReserveRecord()), o ? [o] : [];
81
80
  }
82
81
  return [];
83
82
  }
84
83
  return [];
85
84
  },
86
- getCheckboxKeySelection(e) {
87
- const n = o.checkboxKey;
88
- return e || (e = this.getSelection().map((a) => a[n])), this.getTableData().filter((a) => e && e.includes(a[n]));
85
+ getCheckboxKeySelection(o) {
86
+ const s = t.checkboxKey;
87
+ return o || (o = this.getSelection().map((a) => a[s])), this.getTableData().filter((a) => o && o.includes(a[s]));
89
88
  },
90
89
  clearSelection() {
91
- P.value && (t.selectedType === "checkbox" && (o.reserve && P.value.clearCheckboxReserve(), P.value.clearCheckboxRow()), t.selectedType === "radio" && (o.reserve && P.value.clearRadioReserve(), P.value.clearRadioRow()));
90
+ I.value && (e.selectedType === "checkbox" && (t.reserve && I.value.clearCheckboxReserve(), I.value.clearCheckboxRow()), e.selectedType === "radio" && (t.reserve && I.value.clearRadioReserve(), I.value.clearRadioRow()));
92
91
  },
93
- insertRow(e, n, i = !0) {
94
- var u;
92
+ insertRow(o, s, i = !0) {
93
+ var l;
95
94
  const a = this.getRowKey();
96
- if (n && typeof n == "object" && i) {
97
- const C = P.value.getRowIndex(n);
98
- C >= 0 && (n = (u = this.getTableData()[C + 1]) != null ? u : -1);
95
+ if (s && typeof s == "object" && i) {
96
+ const r = I.value.getRowIndex(s);
97
+ r >= 0 && (s = (l = this.getTableData()[r + 1]) != null ? l : -1);
99
98
  }
100
- return e[a] && delete e[a], P.value.insertAt(e, n);
99
+ return o[a] && delete o[a], I.value.insertAt(o, s);
101
100
  },
102
101
  removeRows() {
103
- P.value && (t.selectedType === "checkbox" && P.value.removeCheckboxRow(), t.selectedType === "radio" && P.value.removeRadioRow());
102
+ I.value && (e.selectedType === "checkbox" && I.value.removeCheckboxRow(), e.selectedType === "radio" && I.value.removeRadioRow());
104
103
  },
105
- removerRowIndex(e) {
106
- if (P.value) {
107
- const n = this.getTableData();
108
- n.splice(e, 1), P.value.reloadData(n);
104
+ removerRowIndex(o) {
105
+ if (I.value) {
106
+ const s = this.getTableData();
107
+ s.splice(o, 1), I.value.reloadData(s);
109
108
  }
110
109
  },
111
- async checkRows(e = void 0) {
112
- e = e != null ? e : this.getSelection();
113
- let n = "";
114
- const i = await P.value.validate(e);
110
+ async checkRows(o = void 0) {
111
+ o = o != null ? o : this.getSelection();
112
+ let s = "";
113
+ const i = await I.value.validate(o);
115
114
  return i && Object.values(i).forEach((a) => {
116
- a.forEach(({ rowIndex: c, column: u, rules: C }) => {
117
- C.forEach(($) => {
118
- n = `\u5E8F\u53F7${c + 1} ${u.title} ${$.message}`;
115
+ a.forEach(({ rowIndex: u, column: l, rules: r }) => {
116
+ r.forEach((c) => {
117
+ s = `\u5E8F\u53F7${u + 1} ${l.title} ${c.message}`;
119
118
  });
120
119
  });
121
- }), [n, e];
120
+ }), [s, o];
122
121
  }
123
122
  }
124
123
  };
125
124
  }
126
- const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__setting" }, Pt = {
125
+ const ro = { class: "orchisky-vxe" }, co = { class: "u-card orchisky-vxe__setting" }, fo = {
127
126
  class: "u-card__hd",
128
127
  style: { height: "auto", padding: "4px 12px", "line-height": "28px" }
129
- }, zt = /* @__PURE__ */ y("span", { style: { "font-size": "14px" } }, "\u8BBE\u7F6E", -1), jt = {
128
+ }, po = /* @__PURE__ */ O("span", { style: { "font-size": "14px" } }, "\u8BBE\u7F6E", -1), ho = {
130
129
  class: "u-card__floor",
131
130
  style: { padding: "0" }
132
- }, Tt = { class: "orchisky-vxe__draggable" }, Et = { class: "orchisky-vxe__draggable-item" }, Dt = {
131
+ }, _o = { class: "orchisky-vxe__draggable" }, go = { class: "orchisky-vxe__draggable-item" }, mo = {
133
132
  key: 0,
134
133
  class: "u-flex"
135
- }, At = ["title"], Mt = { style: { padding: "0 0.75em" } }, Bt = {
134
+ }, vo = ["title"], yo = { style: { padding: "0 0.75em" } }, bo = {
136
135
  key: 1,
137
136
  class: "orchisky-vxe__draggable-moving"
138
- }, Ft = {
137
+ }, wo = {
139
138
  class: "u-card__floor u-flex",
140
139
  style: { padding: "6px 12px" }
141
- }, Kt = {
140
+ }, xo = {
142
141
  key: 0,
143
142
  class: "not-light-text"
144
- }, Vt = {
143
+ }, Co = {
145
144
  key: 1,
146
145
  class: "orchisky-vxe__pagination"
147
- }, It = { class: "u-flex u-flex--start" }, Ut = { class: "u-flex__item" }, Wt = { style: { width: "500px" } }, Nt = /* @__PURE__ */ E({
146
+ }, Eo = { class: "u-flex u-flex--start" }, ko = { class: "u-flex__item" }, Do = { style: { width: "500px" } }, So = /* @__PURE__ */ N({
148
147
  __name: "table",
149
148
  props: {
150
149
  title: String,
@@ -164,234 +163,234 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
164
163
  hook: Object
165
164
  },
166
165
  emits: ["update:selectedKeys", "cellClick", "onReset", "change", "confirm"],
167
- setup(o, { expose: t, emit: l }) {
168
- var Ue;
169
- const e = o, n = l;
170
- function i(s, h) {
171
- return (O) => {
172
- typeof O == "object" ? Object.keys(O).forEach((w) => {
173
- s[w] = O[w];
174
- }) : s[h] = O;
166
+ setup(t, { expose: e, emit: n }) {
167
+ var ft;
168
+ const o = t, s = n;
169
+ function i(m, D) {
170
+ return (W) => {
171
+ typeof W == "object" ? Object.keys(W).forEach((A) => {
172
+ m[A] = W[A];
173
+ }) : m[D] = W;
175
174
  };
176
175
  }
177
- const a = B(() => {
178
- var s, h;
179
- return (h = (s = e.option) == null ? void 0 : s.pageSize) != null ? h : 50;
180
- }), c = B(() => {
181
- var s, h;
182
- return (h = (s = e.option) == null ? void 0 : s.pageSizeOptions) != null ? h : [10, 20, 50, 100, 200];
183
- }), u = V({ page: 1, size: a.value }), { disabledList: C, selectChangeEvent: $, radioChangeEvent: b } = St(e, n), { $grid: S, $gridTwo: _ } = Qe(e.option);
184
- function v(s) {
185
- n("cellClick", s);
186
- }
187
- function k(s, h, O) {
188
- var G, X;
189
- const w = (G = s[h]) != null ? G : {}, A = (X = s[h - 1]) != null ? X : {};
190
- return ["string", "number"].includes(typeof w[O]) ? e.option.skinRow && typeof e.option.skinRow == "string" ? w[e.option.skinRow] === A[e.option.skinRow] && w[O] === A[O] : w[O] === A[O] : !1;
191
- }
192
- function j(s, h, O) {
193
- let w = {};
176
+ const a = P(() => {
177
+ var m, D;
178
+ return (D = (m = o.option) == null ? void 0 : m.pageSize) != null ? D : 50;
179
+ }), u = P(() => {
180
+ var m, D;
181
+ return (D = (m = o.option) == null ? void 0 : m.pageSizeOptions) != null ? D : [10, 20, 50, 100, 200];
182
+ }), l = U({ page: 1, size: a.value }), { disabledList: r, selectChangeEvent: c, radioChangeEvent: h } = lo(o, s), { $grid: p, $gridTwo: f } = St(o.option);
183
+ function F(m) {
184
+ s("cellClick", m);
185
+ }
186
+ function z(m, D, W) {
187
+ var de, pe;
188
+ const A = (de = m[D]) != null ? de : {}, Q = (pe = m[D - 1]) != null ? pe : {};
189
+ return ["string", "number"].includes(typeof A[W]) ? o.option.skinRow && typeof o.option.skinRow == "string" ? A[o.option.skinRow] === Q[o.option.skinRow] && A[W] === Q[W] : A[W] === Q[W] : !1;
190
+ }
191
+ function H(m, D, W) {
192
+ let A = {};
194
193
  try {
195
- w = h > 0 && !k(s, h, O) && e.option.skinRow && s[h][String(e.option.skinRow)] === s[h - 1][String(e.option.skinRow)] ? e.option.skinRowStyle : {};
194
+ A = D > 0 && !z(m, D, W) && o.option.skinRow && m[D][String(o.option.skinRow)] === m[D - 1][String(o.option.skinRow)] ? o.option.skinRowStyle : {};
196
195
  } catch {
197
196
  }
198
- return w;
199
- }
200
- const z = V([]);
201
- function L() {
202
- const s = [...e.option.columns], h = e.option.resolveColumns && Y(e.option.resolveColumns) ? e.option.resolveColumns(s) : s;
203
- return Object.assign([], h).filter((w) => Boolean(w)).map((w) => {
204
- var A;
205
- return w.show = (A = w.show) != null ? A : !0, w.tooltip && (w.ellipsis = !0), w;
197
+ return A;
198
+ }
199
+ const G = U([]);
200
+ function fe() {
201
+ const m = [...o.option.columns], D = o.option.resolveColumns && he(o.option.resolveColumns) ? o.option.resolveColumns(m) : m;
202
+ return Object.assign([], D).filter((A) => Boolean(A)).map((A) => {
203
+ var Q;
204
+ return A.show = (Q = A.show) != null ? Q : !0, A.tooltip && (A.ellipsis = !0), A;
206
205
  });
207
206
  }
208
- const J = B(() => {
209
- const s = L(), h = Object.assign([], z.value);
207
+ const T = P(() => {
208
+ const m = fe(), D = Object.assign([], G.value);
210
209
  return [
211
210
  ...new Set(
212
- [...h].map((w) => w.dataIndex).filter((w) => s.find((A) => A.dataIndex === w)).concat([...s].map((w) => w.dataIndex)).filter((w) => !!w)
211
+ [...D].map((A) => A.dataIndex).filter((A) => m.find((Q) => Q.dataIndex === A)).concat([...m].map((A) => A.dataIndex)).filter((A) => !!A)
213
212
  )
214
- ].map((w) => {
215
- var X;
216
- const A = s.find((le) => le.dataIndex === w), G = (X = h.find((le) => le.dataIndex === w)) != null ? X : /* @__PURE__ */ Object.create({});
217
- return { ...A, ...G };
213
+ ].map((A) => {
214
+ var pe;
215
+ const Q = m.find((ge) => ge.dataIndex === A), de = (pe = D.find((ge) => ge.dataIndex === A)) != null ? pe : /* @__PURE__ */ Object.create({});
216
+ return { ...Q, ...de };
218
217
  });
219
- }), ge = B(() => e.option.resolvePage && Y(e.option.resolvePage) ? e.option.resolvePage(u.value) : e.option.resolvePage), ce = B(() => Boolean(e.option.url)), Z = V(!1), de = V(!1), W = V(0), N = yt((Ue = e.data) != null ? Ue : []), ve = new AbortController();
220
- function Ke() {
221
- if (!e.option.useErrData)
218
+ }), E = P(() => o.option.resolvePage && he(o.option.resolvePage) ? o.option.resolvePage(l.value) : o.option.resolvePage), $ = P(() => Boolean(o.option.url)), j = U(!1), x = U(!1), oe = U(0), Z = Jt((ft = o.data) != null ? ft : []), C = new AbortController();
219
+ function b() {
220
+ if (!o.option.useErrData)
222
221
  throw new Error("useErrData is required");
223
- let s = /* @__PURE__ */ Object.create({});
224
- ge.value ? Y(e.option.resolvePage) ? s = { ...ge.value } : s = { page: u.value } : s = {};
225
- const h = {
226
- [String(e.option.method).toUpperCase() === "GET" ? "params" : "data"]: { ...s, ...e.option.data }
227
- }, O = { url: e.option.url, method: e.option.method, ...h, signal: ve.signal };
228
- return e.option.timeout && (O.timeout = e.option.timeout), e.option.useErrData(O);
229
- }
230
- const me = B({
231
- get: () => e.selectedKeys,
232
- set: (s) => {
233
- n("update:selectedKeys", s);
222
+ let m = /* @__PURE__ */ Object.create({});
223
+ E.value ? he(o.option.resolvePage) ? m = { ...E.value } : m = { page: l.value } : m = {};
224
+ const D = {
225
+ [String(o.option.method).toUpperCase() === "GET" ? "params" : "data"]: { ...m, ...o.option.data }
226
+ }, W = { url: o.option.url, method: o.option.method, ...D, signal: C.signal };
227
+ return o.option.timeout && (W.timeout = o.option.timeout), o.option.useErrData(W);
228
+ }
229
+ const R = P({
230
+ get: () => o.selectedKeys,
231
+ set: (m) => {
232
+ s("update:selectedKeys", m);
234
233
  }
235
234
  });
236
- function Se(s = !0) {
237
- Z.value = s;
238
- }
239
- const ue = async () => {
240
- var s, h, O, w, A, G, X;
241
- if (ce.value) {
242
- Se(!0);
243
- const [le, U] = await Ke();
244
- if (Se(!1), le)
245
- Y(e.option.error) && ((X = (G = e.option).error) == null || X.call(G, U));
235
+ function L(m = !0) {
236
+ j.value = m;
237
+ }
238
+ const ie = async () => {
239
+ var m, D, W, A, Q, de, pe;
240
+ if ($.value) {
241
+ L(!0);
242
+ const [ge, ae] = await b();
243
+ if (L(!1), ge)
244
+ he(o.option.error) && ((pe = (de = o.option).error) == null || pe.call(de, ae));
246
245
  else {
247
- const ye = e.option.resolveData && Y(e.option.resolveData) ? e.option.resolveData(U, { ...u.value }) : (h = (s = U == null ? void 0 : U.rows) != null ? s : U) != null ? h : [];
248
- if (Object.prototype.toString.call(ye).slice(8, -1) !== "Array")
246
+ const Ne = o.option.resolveData && he(o.option.resolveData) ? o.option.resolveData(ae, { ...l.value }) : (D = (m = ae == null ? void 0 : ae.rows) != null ? m : ae) != null ? D : [];
247
+ if (Object.prototype.toString.call(Ne).slice(8, -1) !== "Array")
249
248
  throw new Error("[orchisky-vxe] :Not in Array format data ");
250
- N.value = ye, W.value = e.option.resolveTotal && Y(e.option.resolveTotal) ? e.option.resolveTotal(U) : (O = U == null ? void 0 : U.total) != null ? O : 0, Y(e.option.success) && ((A = (w = e.option).success) == null || A.call(w, U));
249
+ Z.value = Ne, oe.value = o.option.resolveTotal && he(o.option.resolveTotal) ? o.option.resolveTotal(ae) : (W = ae == null ? void 0 : ae.total) != null ? W : 0, he(o.option.success) && ((Q = (A = o.option).success) == null || Q.call(A, ae));
251
250
  }
252
251
  }
253
252
  };
254
- async function it() {
255
- Z.value || (n("onReset"), await ue());
253
+ async function De() {
254
+ j.value || (s("onReset"), await ie());
256
255
  }
257
- function Ve(s, h = !1) {
258
- s && (u.value.page = s), (!e.option.reserve || h) && (me.value = [], _.clearSelection()), ue();
256
+ function K(m, D = !1) {
257
+ m && (l.value.page = m), (!o.option.reserve || D) && (R.value = [], f.clearSelection()), ie();
259
258
  }
260
- async function at(s) {
261
- u.value.size = s, Ve(1, !0);
259
+ async function re(m) {
260
+ l.value.size = m, K(1, !0);
262
261
  }
263
- const ne = V(/* @__PURE__ */ Object.create({})), H = V({
262
+ const V = U(/* @__PURE__ */ Object.create({})), ce = U({
264
263
  loading: !1,
265
264
  columns: [],
266
265
  tempWidth: /* @__PURE__ */ Object.create({})
267
266
  });
268
- async function st() {
269
- var s;
270
- if (typeof ((s = e.hook) == null ? void 0 : s.getColumn) == "function") {
271
- const [h, O] = await e.hook.getColumn();
272
- !h && O && (z.value = O);
267
+ async function Rt() {
268
+ var m;
269
+ if (typeof ((m = o.hook) == null ? void 0 : m.getColumn) == "function") {
270
+ const [D, W] = await o.hook.getColumn();
271
+ !D && W && (G.value = W);
273
272
  }
274
273
  }
275
- st();
276
- const Ie = (s = !1) => {
277
- !ne.value || (s ? ne.value.togglePanel() : ne.value.showPanel(), H.value.columns = Object.assign([], [...J.value]).map((h) => {
278
- const O = H.value.tempWidth[h.dataIndex];
279
- return O && (h.width = O), h;
274
+ Rt();
275
+ const dt = (m = !1) => {
276
+ !V.value || (m ? V.value.togglePanel() : V.value.showPanel(), ce.value.columns = Object.assign([], [...T.value]).map((D) => {
277
+ const W = ce.value.tempWidth[D.dataIndex];
278
+ return W && (D.width = W), D;
280
279
  }));
281
- }, Re = () => {
282
- !ne.value || ne.value.hidePanel();
280
+ }, Ve = () => {
281
+ !V.value || V.value.hidePanel();
283
282
  };
284
- function rt() {
285
- H.value.loading = !0, z.value = [], H.value.tempWidth = /* @__PURE__ */ Object.create({}), H.value.columns = L(), Ie(), setTimeout(() => {
286
- H.value.loading = !1;
283
+ function zt() {
284
+ ce.value.loading = !0, G.value = [], ce.value.tempWidth = /* @__PURE__ */ Object.create({}), ce.value.columns = fe(), dt(), setTimeout(() => {
285
+ ce.value.loading = !1;
287
286
  }, 500);
288
287
  }
289
- function ct(s) {
290
- let h = s.column.property;
291
- !h && s.column.type === "seq" && (h = "index"), h && s.column.resizeWidth > 0 && (H.value.tempWidth[h] = s.column.resizeWidth, Re());
288
+ function Wt(m) {
289
+ let D = m.column.property;
290
+ !D && m.column.type === "seq" && (D = "index"), D && m.column.resizeWidth > 0 && (ce.value.tempWidth[D] = m.column.resizeWidth, Ve());
292
291
  }
293
- const dt = () => {
294
- var s;
295
- !ne.value || (z.value = H.value.columns, n("confirm", J.value), typeof ((s = e.hook) == null ? void 0 : s.setColumn) == "function" && e.hook.setColumn(J.value), H.value.tempWidth = /* @__PURE__ */ Object.create({}), Re());
292
+ const It = () => {
293
+ var m;
294
+ !V.value || (G.value = ce.value.columns, s("confirm", T.value), typeof ((m = o.hook) == null ? void 0 : m.setColumn) == "function" && o.hook.setColumn(T.value), ce.value.tempWidth = /* @__PURE__ */ Object.create({}), Ve());
296
295
  };
297
- return e.option.firstLoad !== !1 && ue(), bt(
298
- () => e.option.firstLoad,
299
- (s) => {
300
- s === !0 && ue();
296
+ return o.option.firstLoad !== !1 && ie(), nt(
297
+ () => o.option.firstLoad,
298
+ (m) => {
299
+ m === !0 && ie();
301
300
  }
302
- ), wt(() => {
303
- ve.abort();
304
- }), t({
305
- loading: Z,
306
- setLoading: Se,
307
- dataInit(s) {
308
- return s !== !1 && (u.value.page = 1), me.value = [], _.clearSelection(), ue();
301
+ ), Gt(() => {
302
+ C.abort();
303
+ }), e({
304
+ loading: j,
305
+ setLoading: L,
306
+ dataInit(m) {
307
+ return m !== !1 && (l.value.page = 1), R.value = [], f.clearSelection(), ie();
309
308
  },
310
- loadData(s) {
311
- S.value && (S.value.reloadData(s), N.value = s);
309
+ loadData(m) {
310
+ p.value && (p.value.reloadData(m), Z.value = m);
312
311
  },
313
- ..._
314
- }), (s, h) => {
315
- var qe;
316
- const O = m("a-switch"), w = m("a-tooltip"), A = m("icon-refresh"), G = m("a-button"), X = m("icon-settings"), le = m("icon-drag-dot-vertical"), U = m("a-checkbox");
317
- m("a-input-number");
318
- const ye = m("a-divider"), We = m("vxe-button"), ut = m("vxe-pulldown"), Ne = m("a-space"), pt = m("vxe-toolbar"), be = m("vxe-column"), ft = m("a-empty"), _t = m("a-spin"), ht = m("vxe-table"), gt = m("a-pagination");
319
- return r(), x("div", Rt, [
320
- e.hideToolbar ? D("", !0) : (r(), R(pt, {
312
+ ...f
313
+ }), (m, D) => {
314
+ var _t;
315
+ const W = y("a-switch"), A = y("a-tooltip"), Q = y("icon-refresh"), de = y("a-button"), pe = y("icon-settings"), ge = y("icon-drag-dot-vertical"), ae = y("a-checkbox");
316
+ y("a-input-number");
317
+ const Ne = y("a-divider"), pt = y("vxe-button"), Vt = y("vxe-pulldown"), ht = y("a-space"), Lt = y("vxe-toolbar"), Re = y("vxe-column"), Ut = y("a-empty"), Ht = y("a-spin"), qt = y("vxe-table"), Kt = y("a-pagination");
318
+ return d(), S("div", ro, [
319
+ o.hideToolbar ? M("", !0) : (d(), B(Lt, {
321
320
  key: 0,
322
321
  size: "mini",
323
322
  "class-name": "orchisky-vxe__toolbar"
324
323
  }, {
325
- buttons: f(() => [
326
- ae(s.$slots, "default", {}, () => [
327
- y("div", null, M(e.title), 1)
324
+ buttons: g(() => [
325
+ ve(m.$slots, "default", {}, () => [
326
+ O("div", null, Y(o.title), 1)
328
327
  ])
329
328
  ]),
330
- tools: f(() => [
331
- p(Ne, { size: "small" }, {
332
- default: f(() => [
333
- ae(s.$slots, "tools"),
334
- p(w, {
329
+ tools: g(() => [
330
+ _(ht, { size: "small" }, {
331
+ default: g(() => [
332
+ ve(m.$slots, "tools"),
333
+ _(A, {
335
334
  content: "\u8868\u683C\u6591\u9A6C\u7EB9",
336
335
  mini: ""
337
336
  }, {
338
- default: f(() => [
339
- p(O, {
340
- modelValue: de.value,
341
- "onUpdate:modelValue": h[0] || (h[0] = (F) => de.value = F),
337
+ default: g(() => [
338
+ _(W, {
339
+ modelValue: x.value,
340
+ "onUpdate:modelValue": D[0] || (D[0] = (ee) => x.value = ee),
342
341
  size: "small"
343
342
  }, {
344
- checked: f(() => [
345
- q(" \u5F00 ")
343
+ checked: g(() => [
344
+ le(" \u5F00 ")
346
345
  ]),
347
- unchecked: f(() => [
348
- q(" \u5173 ")
346
+ unchecked: g(() => [
347
+ le(" \u5173 ")
349
348
  ]),
350
349
  _: 1
351
350
  }, 8, ["modelValue"])
352
351
  ]),
353
352
  _: 1
354
353
  }),
355
- p(w, {
354
+ _(A, {
356
355
  content: "\u5237\u65B0",
357
356
  mini: ""
358
357
  }, {
359
- default: f(() => [
360
- p(G, {
361
- loading: Z.value,
358
+ default: g(() => [
359
+ _(de, {
360
+ loading: j.value,
362
361
  size: "small",
363
362
  class: "arco-btn-light",
364
363
  style: { border: "0" },
365
- onClick: h[1] || (h[1] = (F) => it())
364
+ onClick: D[1] || (D[1] = (ee) => De())
366
365
  }, {
367
- icon: f(() => [
368
- p(A, { size: 16 })
366
+ icon: g(() => [
367
+ _(Q, { size: 16 })
369
368
  ]),
370
369
  _: 1
371
370
  }, 8, ["loading"])
372
371
  ]),
373
372
  _: 1
374
373
  }),
375
- p(ut, {
374
+ _(Vt, {
376
375
  ref_key: "settingRef",
377
- ref: ne,
376
+ ref: V,
378
377
  transfer: ""
379
378
  }, {
380
- default: f(() => [
381
- p(w, {
379
+ default: g(() => [
380
+ _(A, {
382
381
  content: "\u8BBE\u7F6E",
383
382
  mini: ""
384
383
  }, {
385
- default: f(() => [
386
- p(G, {
384
+ default: g(() => [
385
+ _(de, {
387
386
  size: "small",
388
387
  class: "arco-btn-light",
389
388
  style: { border: "0" }
390
389
  }, {
391
- icon: f(() => [
392
- p(X, {
390
+ icon: g(() => [
391
+ _(pe, {
393
392
  size: 16,
394
- onClick: h[2] || (h[2] = (F) => Ie(!0))
393
+ onClick: D[2] || (D[2] = (ee) => dt(!0))
395
394
  })
396
395
  ]),
397
396
  _: 1
@@ -400,24 +399,24 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
400
399
  _: 1
401
400
  })
402
401
  ]),
403
- dropdown: f(() => [
404
- y("div", Ot, [
405
- y("div", Pt, [
406
- zt,
407
- p(w, {
402
+ dropdown: g(() => [
403
+ O("div", co, [
404
+ O("div", fo, [
405
+ po,
406
+ _(A, {
408
407
  content: "\u91CD\u7F6E",
409
408
  mini: ""
410
409
  }, {
411
- default: f(() => [
412
- p(G, {
410
+ default: g(() => [
411
+ _(de, {
413
412
  size: "small",
414
413
  class: "arco-btn-light",
415
414
  style: { border: "0" },
416
- loading: H.value.loading,
417
- onClick: h[3] || (h[3] = (F) => rt())
415
+ loading: ce.value.loading,
416
+ onClick: D[3] || (D[3] = (ee) => zt())
418
417
  }, {
419
- icon: f(() => [
420
- p(A)
418
+ icon: g(() => [
419
+ _(Q)
421
420
  ]),
422
421
  _: 1
423
422
  }, 8, ["loading"])
@@ -425,10 +424,10 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
425
424
  _: 1
426
425
  })
427
426
  ]),
428
- y("div", jt, [
429
- y("div", Tt, [
430
- p(g(Ce), {
431
- list: H.value.columns,
427
+ O("div", ho, [
428
+ O("div", _o, [
429
+ _(v(Pe), {
430
+ list: ce.value.columns,
432
431
  style: { "user-select": "none" },
433
432
  class: "orchisky-vxe__draggable-list",
434
433
  group: "toolsGroup",
@@ -439,23 +438,23 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
439
438
  "item-key": "id",
440
439
  handle: ".orchisky-vxe__draggable-moving"
441
440
  }, {
442
- item: f(({ element: F }) => [
443
- y("div", Et, [
444
- F.title ? (r(), x("div", Dt, [
445
- p(le, { class: "orchisky-vxe__draggable-moving" }),
446
- p(U, {
447
- modelValue: F.show,
448
- "onUpdate:modelValue": (we) => F.show = we
441
+ item: g(({ element: ee }) => [
442
+ O("div", go, [
443
+ ee.title ? (d(), S("div", mo, [
444
+ _(ge, { class: "orchisky-vxe__draggable-moving" }),
445
+ _(ae, {
446
+ modelValue: ee.show,
447
+ "onUpdate:modelValue": (ze) => ee.show = ze
449
448
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
450
- y("label", {
449
+ O("label", {
451
450
  class: "u-flex__item u-clamp",
452
- title: F.title
451
+ title: ee.title
453
452
  }, [
454
- y("span", Mt, M(F.title), 1)
455
- ], 8, At),
456
- D("", !0)
457
- ])) : (r(), x("div", Bt, [
458
- p(ye, {
453
+ O("span", yo, Y(ee.title), 1)
454
+ ], 8, vo),
455
+ M("", !0)
456
+ ])) : (d(), S("div", bo, [
457
+ _(Ne, {
459
458
  margin: 6,
460
459
  type: "dashed"
461
460
  })
@@ -466,28 +465,28 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
466
465
  }, 8, ["list"])
467
466
  ])
468
467
  ]),
469
- y("div", Ft, [
470
- p(We, {
468
+ O("div", wo, [
469
+ _(pt, {
471
470
  size: "mini",
472
471
  class: "u-flex__item",
473
472
  type: "text",
474
473
  status: "info",
475
- onClick: h[4] || (h[4] = (F) => Re())
474
+ onClick: D[4] || (D[4] = (ee) => Ve())
476
475
  }, {
477
- default: f(() => [
478
- q("\u53D6\u6D88")
476
+ default: g(() => [
477
+ le("\u53D6\u6D88")
479
478
  ]),
480
479
  _: 1
481
480
  }),
482
- p(We, {
481
+ _(pt, {
483
482
  size: "mini",
484
483
  class: "u-flex__item",
485
484
  type: "text",
486
485
  status: "primary",
487
- onClick: h[5] || (h[5] = (F) => dt())
486
+ onClick: D[5] || (D[5] = (ee) => It())
488
487
  }, {
489
- default: f(() => [
490
- q("\u786E\u8BA4")
488
+ default: g(() => [
489
+ le("\u786E\u8BA4")
491
490
  ]),
492
491
  _: 1
493
492
  })
@@ -502,150 +501,150 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
502
501
  ]),
503
502
  _: 3
504
503
  })),
505
- p(ht, {
506
- ref: e.option.ref,
507
- data: N.value,
508
- height: e.height,
509
- stripe: de.value,
504
+ _(qt, {
505
+ ref: o.option.ref,
506
+ data: Z.value,
507
+ height: o.height,
508
+ stripe: x.value,
510
509
  "keep-source": !1,
511
510
  "edit-config": { trigger: "click", mode: "row", showIcon: !1, autoClear: !1, showStatus: !1 },
512
511
  "column-config": { isCurrent: !1, resizable: !0 },
513
- "row-config": { isHover: !0, isCurrent: !1, keyField: e.option.rowKey },
514
- "show-overflow": e.option.tooltip || "tooltip",
515
- "show-header-overflow": e.option.tooltip || "tooltip",
516
- size: e.size,
517
- loading: Z.value,
518
- "radio-config": g(C),
519
- "checkbox-config": { ...g(C), checkField: e.option.checkKey },
520
- "header-cell-style": e.option.headerStyle,
521
- "show-footer": g(Y)(e.option.footerMethod),
522
- "footer-method": e.option.footerMethod,
523
- "footer-cell-style": e.option.footerStyle,
524
- "merge-footer-items": e.option.mergeFooter,
525
- "show-footer-overflow": (qe = e.option) == null ? void 0 : qe.footerTooltip,
526
- "filter-config": e.option.filterConfig,
527
- "edit-rules": e.option.rules,
528
- "scroll-y": e.option.scrollY,
529
- "scroll-x": e.option.scrollX,
530
- onCheckboxChange: g($),
531
- onCheckboxAll: g($),
532
- onRadioChange: g(b),
533
- onResizableChange: ct,
534
- onCellClick: v
512
+ "row-config": { isHover: !0, isCurrent: !1, keyField: o.option.rowKey },
513
+ "show-overflow": o.option.tooltip || "tooltip",
514
+ "show-header-overflow": o.option.tooltip || "tooltip",
515
+ size: o.size,
516
+ loading: j.value,
517
+ "radio-config": v(r),
518
+ "checkbox-config": { ...v(r), checkField: o.option.checkKey },
519
+ "header-cell-style": o.option.headerStyle,
520
+ "show-footer": v(he)(o.option.footerMethod),
521
+ "footer-method": o.option.footerMethod,
522
+ "footer-cell-style": o.option.footerStyle,
523
+ "merge-footer-items": o.option.mergeFooter,
524
+ "show-footer-overflow": (_t = o.option) == null ? void 0 : _t.footerTooltip,
525
+ "filter-config": o.option.filterConfig,
526
+ "edit-rules": o.option.rules,
527
+ "scroll-y": o.option.scrollY,
528
+ "scroll-x": o.option.scrollX,
529
+ onCheckboxChange: v(c),
530
+ onCheckboxAll: v(c),
531
+ onRadioChange: v(h),
532
+ onResizableChange: Wt,
533
+ onCellClick: F
535
534
  }, {
536
- empty: f(() => [
537
- p(ft)
535
+ empty: g(() => [
536
+ _(Ut)
538
537
  ]),
539
- loading: f(() => [
540
- p(_t)
538
+ loading: g(() => [
539
+ _(Ht)
541
540
  ]),
542
- default: f(() => {
543
- var F, we;
541
+ default: g(() => {
542
+ var ee, ze;
544
543
  return [
545
- ["checkbox"].includes((F = e.option.selectedType) != null ? F : "") ? (r(), R(be, {
544
+ ["checkbox"].includes((ee = o.option.selectedType) != null ? ee : "") ? (d(), B(Re, {
546
545
  key: 0,
547
546
  type: "checkbox",
548
547
  width: "30",
549
548
  fixed: "left"
550
- })) : ["radio"].includes((we = e.option.selectedType) != null ? we : "") ? (r(), R(be, {
549
+ })) : ["radio"].includes((ze = o.option.selectedType) != null ? ze : "") ? (d(), B(Re, {
551
550
  key: 1,
552
551
  type: "radio",
553
552
  width: "30",
554
553
  fixed: "left"
555
- })) : D("", !0),
556
- (r(!0), x(I, null, oe(J.value.filter((d) => d.show), (d, vt) => (r(), x(I, { key: vt }, [
557
- ["index"].includes(d.dataIndex) ? (r(), R(be, {
554
+ })) : M("", !0),
555
+ (d(!0), S(X, null, _e(T.value.filter((w) => w.show), (w, Yt) => (d(), S(X, { key: Yt }, [
556
+ ["index"].includes(w.dataIndex) ? (d(), B(Re, {
558
557
  key: 0,
559
558
  type: "seq",
560
- field: d.dataIndex,
561
- width: d.width,
562
- title: d.title,
563
- sortable: d.sort,
564
- "header-align": d.headerAlign,
565
- "footer-align": d.footerAlign,
566
- align: d.align,
567
- "show-header-overflow": d.tooltip,
568
- "show-overflow": d.tooltip,
569
- fixed: d.fixed,
570
- "title-prefix": d.help,
571
- filters: d.filters,
572
- "filter-multiple": d.filterMultiple,
573
- "filter-method": d.filterMethod
574
- }, null, 8, ["field", "width", "title", "sortable", "header-align", "footer-align", "align", "show-header-overflow", "show-overflow", "fixed", "title-prefix", "filters", "filter-multiple", "filter-method"])) : (r(), R(be, {
559
+ field: w.dataIndex,
560
+ width: w.width,
561
+ title: w.title,
562
+ sortable: w.sort,
563
+ "header-align": w.headerAlign,
564
+ "footer-align": w.footerAlign,
565
+ align: w.align,
566
+ "show-header-overflow": w.tooltip,
567
+ "show-overflow": w.tooltip,
568
+ fixed: w.fixed,
569
+ "title-prefix": w.help,
570
+ filters: w.filters,
571
+ "filter-multiple": w.filterMultiple,
572
+ "filter-method": w.filterMethod
573
+ }, null, 8, ["field", "width", "title", "sortable", "header-align", "footer-align", "align", "show-header-overflow", "show-overflow", "fixed", "title-prefix", "filters", "filter-multiple", "filter-method"])) : (d(), B(Re, {
575
574
  key: 1,
576
- field: d.dataIndex,
577
- width: d.width,
578
- title: d.title,
579
- sortable: d.sort,
580
- "header-align": d.headerAlign,
581
- "footer-align": d.footerAlign,
582
- align: d.align,
583
- "show-header-overflow": d.tooltip,
584
- "show-overflow": d.tooltip,
585
- fixed: d.fixed,
586
- "title-prefix": d.help,
587
- filters: d.filters,
588
- "filter-multiple": d.filterMultiple,
589
- "filter-method": d.filterMethod,
590
- "edit-render": { enabled: Boolean(d.cell), placeholder: d.placeholder }
591
- }, xt({ _: 2 }, [
592
- d.cell ? {
575
+ field: w.dataIndex,
576
+ width: w.width,
577
+ title: w.title,
578
+ sortable: w.sort,
579
+ "header-align": w.headerAlign,
580
+ "footer-align": w.footerAlign,
581
+ align: w.align,
582
+ "show-header-overflow": w.tooltip,
583
+ "show-overflow": w.tooltip,
584
+ fixed: w.fixed,
585
+ "title-prefix": w.help,
586
+ filters: w.filters,
587
+ "filter-multiple": w.filterMultiple,
588
+ "filter-method": w.filterMethod,
589
+ "edit-render": { enabled: Boolean(w.cell), placeholder: w.placeholder }
590
+ }, Qt({ _: 2 }, [
591
+ w.cell ? {
593
592
  name: "edit",
594
- fn: f(({ row: T, rowIndex: ie, columnIndex: Oe }) => [
595
- ae(s.$slots, "cell", {
596
- record: T,
597
- dataIndex: d.dataIndex,
598
- rowIndex: ie,
599
- columnIndex: Oe,
600
- value: T[d.dataIndex],
601
- updateValue: i(T, d.dataIndex),
602
- formatValue: g(re)(T, d)
593
+ fn: g(({ row: q, rowIndex: me, columnIndex: Le }) => [
594
+ ve(m.$slots, "cell", {
595
+ record: q,
596
+ dataIndex: w.dataIndex,
597
+ rowIndex: me,
598
+ columnIndex: Le,
599
+ value: q[w.dataIndex],
600
+ updateValue: i(q, w.dataIndex),
601
+ formatValue: v(Ce)(q, w)
603
602
  }, () => [
604
- Le(d.cell) ? (r(), R(xe(d.cell), {
603
+ gt(w.cell) ? (d(), B(Be(w.cell), {
605
604
  key: 0,
606
- record: T
607
- }, null, 8, ["record"])) : (r(), x("span", {
605
+ record: q
606
+ }, null, 8, ["record"])) : (d(), S("span", {
608
607
  key: 1,
609
- style: ee(g(ze)(T, d))
610
- }, M(g(re)(T, d)), 5))
608
+ style: J(v(qe)(q, w))
609
+ }, Y(v(Ce)(q, w)), 5))
611
610
  ])
612
611
  ]),
613
612
  key: "0"
614
613
  } : void 0,
615
- d.cell && d.div ? {
614
+ w.cell && w.div ? {
616
615
  name: "default",
617
- fn: f(({ row: T, rowIndex: ie, columnIndex: Oe }) => [
618
- ae(s.$slots, "cell", {
619
- record: T,
620
- dataIndex: d.dataIndex,
621
- rowIndex: ie,
622
- columnIndex: Oe,
623
- value: T[d.dataIndex],
624
- updateValue: i(T, d.dataIndex),
625
- formatValue: g(re)(T, d)
616
+ fn: g(({ row: q, rowIndex: me, columnIndex: Le }) => [
617
+ ve(m.$slots, "cell", {
618
+ record: q,
619
+ dataIndex: w.dataIndex,
620
+ rowIndex: me,
621
+ columnIndex: Le,
622
+ value: q[w.dataIndex],
623
+ updateValue: i(q, w.dataIndex),
624
+ formatValue: v(Ce)(q, w)
626
625
  }, () => [
627
- Le(d.cell) ? (r(), R(xe(d.cell), {
626
+ gt(w.cell) ? (d(), B(Be(w.cell), {
628
627
  key: 0,
629
- record: T
630
- }, null, 8, ["record"])) : (r(), x("span", {
628
+ record: q
629
+ }, null, 8, ["record"])) : (d(), S("span", {
631
630
  key: 1,
632
- style: ee(g(ze)(T, d))
633
- }, M(g(re)(T, d)), 5))
631
+ style: J(v(qe)(q, w))
632
+ }, Y(v(Ce)(q, w)), 5))
634
633
  ])
635
634
  ]),
636
635
  key: "1"
637
636
  } : {
638
637
  name: "default",
639
- fn: f(({ row: T, rowIndex: ie }) => [
640
- e.option.skinRow && !d.cell ? (r(), x(I, { key: 0 }, [
641
- ie > 0 && k(N.value, ie, d.dataIndex) && d.width ? (r(), x("span", Kt, M(e.option.skinRowText), 1)) : (r(), x("span", {
638
+ fn: g(({ row: q, rowIndex: me }) => [
639
+ o.option.skinRow && !w.cell ? (d(), S(X, { key: 0 }, [
640
+ me > 0 && z(Z.value, me, w.dataIndex) && w.width ? (d(), S("span", xo, Y(o.option.skinRowText), 1)) : (d(), S("span", {
642
641
  key: 1,
643
- style: ee(j(N.value, ie, d.dataIndex))
644
- }, M(g(re)(T, d)), 5))
645
- ], 64)) : (r(), x("span", {
642
+ style: J(H(Z.value, me, w.dataIndex))
643
+ }, Y(v(Ce)(q, w)), 5))
644
+ ], 64)) : (d(), S("span", {
646
645
  key: 1,
647
- style: ee(g(ze)(T, d))
648
- }, M(g(re)(T, d)), 5))
646
+ style: J(v(qe)(q, w))
647
+ }, Y(v(Ce)(q, w)), 5))
649
648
  ]),
650
649
  key: "2"
651
650
  }
@@ -655,35 +654,35 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
655
654
  }),
656
655
  _: 3
657
656
  }, 8, ["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", "filter-config", "edit-rules", "scroll-y", "scroll-x", "onCheckboxChange", "onCheckboxAll", "onRadioChange"]),
658
- ce.value && !e.hidePagination ? (r(), x("div", Vt, [
659
- y("div", It, [
660
- y("div", Ut, [
661
- ae(s.$slots, "footer")
657
+ $.value && !o.hidePagination ? (d(), S("div", Co, [
658
+ O("div", Eo, [
659
+ O("div", ko, [
660
+ ve(m.$slots, "footer")
662
661
  ]),
663
- y("div", Wt, [
664
- p(Ne, {
662
+ O("div", Do, [
663
+ _(ht, {
665
664
  fill: "",
666
665
  direction: "vertical",
667
666
  align: "end"
668
667
  }, {
669
- default: f(() => [
670
- p(gt, {
671
- current: u.value.page,
672
- "default-page-size": u.value.size,
673
- total: W.value,
668
+ default: g(() => [
669
+ _(Kt, {
670
+ current: l.value.page,
671
+ "default-page-size": l.value.size,
672
+ total: oe.value,
674
673
  "auto-adjust": !1,
675
- size: e.size,
674
+ size: o.size,
676
675
  "show-total": "",
677
676
  "show-page-size": "",
678
- "page-size-options": c.value,
679
- onPageSizeChange: at,
680
- onChange: Ve
677
+ "page-size-options": u.value,
678
+ onPageSizeChange: re,
679
+ onChange: K
681
680
  }, {
682
- total: f(() => [
683
- me.value.length ? (r(), x(I, { key: 0 }, [
684
- q(" \u9009 " + M(me.value.length), 1)
685
- ], 64)) : D("", !0),
686
- q(" \u5171 " + M(W.value) + " \u6761 ", 1)
681
+ total: g(() => [
682
+ R.value.length ? (d(), S(X, { key: 0 }, [
683
+ le(" \u9009 " + Y(R.value.length), 1)
684
+ ], 64)) : M("", !0),
685
+ le(" \u5171 " + Y(oe.value) + " \u6761 ", 1)
687
686
  ]),
688
687
  _: 1
689
688
  }, 8, ["current", "default-page-size", "total", "size", "page-size-options"])
@@ -692,521 +691,1744 @@ const Rt = { class: "orchisky-vxe" }, Ot = { class: "u-card orchisky-vxe__settin
692
691
  })
693
692
  ])
694
693
  ])
695
- ])) : D("", !0)
694
+ ])) : M("", !0)
696
695
  ]);
697
696
  };
698
697
  }
699
698
  });
700
- const hn = {
701
- tf: (o, t) => {
702
- if (typeof o != "number")
703
- return o;
704
- if (typeof t != "number") {
705
- const l = String(o).split(".");
706
- l.length === 2 && (t = l[1].length);
707
- }
708
- return Pe.commafy(o, { digits: t });
699
+ const Js = {
700
+ tf: (t, e) => {
701
+ if (typeof t != "number")
702
+ return t;
703
+ if (typeof e != "number") {
704
+ const n = String(t).split(".");
705
+ n.length === 2 && (e = n[1].length);
706
+ }
707
+ return He.commafy(t, { digits: e });
709
708
  },
710
- t: (o) => Pe.toDateString(o, "yyyy-MM-dd"),
711
- time: (o, t = "yyyy-MM-dd HH:mm:ss") => Pe.toDateString(o, t),
712
- p: (o, t, l = "%") => typeof o != "number" ? o : (typeof t != "number" && (t = 2), (o * 100).toFixed(t) + l)
713
- }, gn = (o) => {
714
- const t = V(/* @__PURE__ */ Object.create({})), l = V([]), { tableOption: e, $grid: n, $gridTwo: i } = Qe(o), a = {
709
+ t: (t) => He.toDateString(t, "yyyy-MM-dd"),
710
+ time: (t, e = "yyyy-MM-dd HH:mm:ss") => He.toDateString(t, e),
711
+ p: (t, e, n = "%") => typeof t != "number" ? t : (typeof e != "number" && (e = 2), (t * 100).toFixed(e) + n)
712
+ }, Gs = (t) => {
713
+ const e = U(/* @__PURE__ */ Object.create({})), n = U([]), { tableOption: o, $grid: s, $gridTwo: i } = St(t), a = {
715
714
  rowKey: i.getRowKey(),
716
- addKey(c) {
717
- var $;
718
- const C = i.getTableData()[c];
719
- if (!C.disabled && n.value) {
720
- const b = i.getRowKey();
721
- if (e.selectedType === "checkbox") {
722
- const S = n.value, { fullData: _ } = S.getTableData();
723
- if (o.checkboxKey) {
724
- const v = o.checkboxKey, k = _.filter((j) => j[v] && j[v] === C[v]);
725
- k.length && S.setCheckboxRow(k, !0);
715
+ addKey(u) {
716
+ var c;
717
+ const r = i.getTableData()[u];
718
+ if (!r.disabled && s.value) {
719
+ const h = i.getRowKey();
720
+ if (o.selectedType === "checkbox") {
721
+ const p = s.value, { fullData: f } = p.getTableData();
722
+ if (t.checkboxKey) {
723
+ const F = t.checkboxKey, z = f.filter((H) => H[F] && H[F] === r[F]);
724
+ z.length && p.setCheckboxRow(z, !0);
726
725
  } else
727
- n.value.setCheckboxRow(C, !0);
728
- b && (l.value = (($ = n.value.getCheckboxRecords()) != null ? $ : []).map((v) => v[b]));
726
+ s.value.setCheckboxRow(r, !0);
727
+ h && (n.value = ((c = s.value.getCheckboxRecords()) != null ? c : []).map((F) => F[h]));
729
728
  }
730
- e.selectedType === "radio" && (n.value.setRadioRow(C), n.value.getRadioRecord() && b && (l.value = [n.value.getRadioRecord()].map((S) => S[b])));
729
+ o.selectedType === "radio" && (s.value.setRadioRow(r), s.value.getRadioRecord() && h && (n.value = [s.value.getRadioRecord()].map((p) => p[h])));
731
730
  }
732
731
  },
733
- setTableData(c) {
734
- n.value && n.value.reloadData(c);
732
+ setTableData(u) {
733
+ s.value && s.value.reloadData(u);
735
734
  },
736
- setTableRow(c, u, C) {
737
- if (n.value) {
738
- const $ = i.getTableData();
739
- typeof u == "string" ? $[c][u] = C : Object.keys({ ...u }).forEach((b) => {
740
- $[c][b] = u[b];
741
- }), a.addKey(c), typeof o.footerMethod == "function" && n.value.updateFooter();
735
+ setTableRow(u, l, r) {
736
+ if (s.value) {
737
+ const c = i.getTableData();
738
+ typeof l == "string" ? c[u][l] = r : Object.keys({ ...l }).forEach((h) => {
739
+ c[u][h] = l[h];
740
+ }), a.addKey(u), typeof t.footerMethod == "function" && s.value.updateFooter();
742
741
  }
743
742
  }
744
743
  };
745
744
  return {
746
- tableRef: t,
747
- tableOptions: e,
745
+ tableRef: e,
746
+ tableOptions: o,
748
747
  tableUtils: {
749
748
  ...a,
750
749
  ...i
751
750
  },
752
- $grid: n,
753
- selectedKeys: l
751
+ $grid: s,
752
+ selectedKeys: n
753
+ };
754
+ };
755
+ var Fo = !1;
756
+ function We(t, e, n) {
757
+ return Array.isArray(t) ? (t.length = Math.max(t.length, e), t.splice(e, 1, n), n) : (t[e] = n, n);
758
+ }
759
+ function Ke(t, e) {
760
+ if (Array.isArray(t)) {
761
+ t.splice(e, 1);
762
+ return;
763
+ }
764
+ delete t[e];
765
+ }
766
+ /*!
767
+ * pinia v2.1.7
768
+ * (c) 2023 Eduardo San Martin Morote
769
+ * @license MIT
770
+ */
771
+ let $e;
772
+ const Ie = (t) => $e = t, $o = process.env.NODE_ENV !== "production" ? Symbol("pinia") : Symbol();
773
+ function be(t) {
774
+ return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
775
+ }
776
+ var Oe;
777
+ (function(t) {
778
+ t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
779
+ })(Oe || (Oe = {}));
780
+ const at = typeof window < "u", Ye = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && at;
781
+ function Ft(t, e) {
782
+ for (const n in e) {
783
+ const o = e[n];
784
+ if (!(n in t))
785
+ continue;
786
+ const s = t[n];
787
+ be(s) && be(o) && !Ae(o) && !st(o) ? t[n] = Ft(s, o) : t[n] = o;
788
+ }
789
+ return t;
790
+ }
791
+ const $t = () => {
792
+ };
793
+ function yt(t, e, n, o = $t) {
794
+ t.push(e);
795
+ const s = () => {
796
+ const i = t.indexOf(e);
797
+ i > -1 && (t.splice(i, 1), o());
798
+ };
799
+ return !n && io() && ao(s), s;
800
+ }
801
+ function Ee(t, ...e) {
802
+ t.slice().forEach((n) => {
803
+ n(...e);
804
+ });
805
+ }
806
+ const Oo = (t) => t();
807
+ function et(t, e) {
808
+ t instanceof Map && e instanceof Map && e.forEach((n, o) => t.set(o, n)), t instanceof Set && e instanceof Set && e.forEach(t.add, t);
809
+ for (const n in e) {
810
+ if (!e.hasOwnProperty(n))
811
+ continue;
812
+ const o = e[n], s = t[n];
813
+ be(s) && be(o) && t.hasOwnProperty(n) && !Ae(o) && !st(o) ? t[n] = et(s, o) : t[n] = o;
814
+ }
815
+ return t;
816
+ }
817
+ const Bo = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : Symbol();
818
+ function Ao(t) {
819
+ return !be(t) || !t.hasOwnProperty(Bo);
820
+ }
821
+ const { assign: ue } = Object;
822
+ function bt(t) {
823
+ return !!(Ae(t) && t.effect);
824
+ }
825
+ function wt(t, e, n, o) {
826
+ const { state: s, actions: i, getters: a } = e, u = n.state.value[t];
827
+ let l;
828
+ function r() {
829
+ !u && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = s ? s() : {});
830
+ const c = process.env.NODE_ENV !== "production" && o ? vt(U(s ? s() : {}).value) : vt(n.state.value[t]);
831
+ return ue(c, i, Object.keys(a || {}).reduce((h, p) => (process.env.NODE_ENV !== "production" && p in c && console.warn(`[\u{1F34D}]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`), h[p] = Fe(P(() => {
832
+ Ie(n);
833
+ const f = n._s.get(t);
834
+ return a[p].call(f, f);
835
+ })), h), {}));
836
+ }
837
+ return l = tt(t, r, e, n, o, !0), l;
838
+ }
839
+ function tt(t, e, n = {}, o, s, i) {
840
+ let a;
841
+ const u = ue({ actions: {} }, n);
842
+ if (process.env.NODE_ENV !== "production" && !o._e.active)
843
+ throw new Error("Pinia destroyed");
844
+ const l = {
845
+ deep: !0
754
846
  };
755
- }, K = Ct(), te = (o) => {
756
- let t = [];
757
- const l = JSON.stringify(o, (e, n) => {
758
- if (typeof n == "object" && n !== null) {
759
- if (t.indexOf(n) !== -1)
847
+ process.env.NODE_ENV !== "production" && !Fo && (l.onTrigger = (C) => {
848
+ r ? f = C : r == !1 && !x._hotUpdating && (Array.isArray(f) ? f.push(C) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
849
+ });
850
+ let r, c, h = [], p = [], f;
851
+ const F = o.state.value[t];
852
+ !i && !F && (process.env.NODE_ENV === "production" || !s) && (o.state.value[t] = {});
853
+ const z = U({});
854
+ let H;
855
+ function G(C) {
856
+ let b;
857
+ r = c = !1, process.env.NODE_ENV !== "production" && (f = []), typeof C == "function" ? (C(o.state.value[t]), b = {
858
+ type: Oe.patchFunction,
859
+ storeId: t,
860
+ events: f
861
+ }) : (et(o.state.value[t], C), b = {
862
+ type: Oe.patchObject,
863
+ payload: C,
864
+ storeId: t,
865
+ events: f
866
+ });
867
+ const R = H = Symbol();
868
+ mt().then(() => {
869
+ H === R && (r = !0);
870
+ }), c = !0, Ee(h, b, o.state.value[t]);
871
+ }
872
+ const fe = i ? function() {
873
+ const { state: b } = n, R = b ? b() : {};
874
+ this.$patch((L) => {
875
+ ue(L, R);
876
+ });
877
+ } : process.env.NODE_ENV !== "production" ? () => {
878
+ throw new Error(`\u{1F34D}: Store "${t}" is built using the setup syntax and does not implement $reset().`);
879
+ } : $t;
880
+ function T() {
881
+ a.stop(), h = [], p = [], o._s.delete(t);
882
+ }
883
+ function E(C, b) {
884
+ return function() {
885
+ Ie(o);
886
+ const R = Array.from(arguments), L = [], ie = [];
887
+ function De(V) {
888
+ L.push(V);
889
+ }
890
+ function K(V) {
891
+ ie.push(V);
892
+ }
893
+ Ee(p, {
894
+ args: R,
895
+ name: C,
896
+ store: x,
897
+ after: De,
898
+ onError: K
899
+ });
900
+ let re;
901
+ try {
902
+ re = b.apply(this && this.$id === t ? this : x, R);
903
+ } catch (V) {
904
+ throw Ee(ie, V), V;
905
+ }
906
+ return re instanceof Promise ? re.then((V) => (Ee(L, V), V)).catch((V) => (Ee(ie, V), Promise.reject(V))) : (Ee(L, re), re);
907
+ };
908
+ }
909
+ const $ = /* @__PURE__ */ Fe({
910
+ actions: {},
911
+ getters: {},
912
+ state: [],
913
+ hotState: z
914
+ }), j = {
915
+ _p: o,
916
+ $id: t,
917
+ $onAction: yt.bind(null, p),
918
+ $patch: G,
919
+ $reset: fe,
920
+ $subscribe(C, b = {}) {
921
+ const R = yt(h, C, b.detached, () => L()), L = a.run(() => nt(() => o.state.value[t], (ie) => {
922
+ (b.flush === "sync" ? c : r) && C({
923
+ storeId: t,
924
+ type: Oe.direct,
925
+ events: f
926
+ }, ie);
927
+ }, ue({}, l, b)));
928
+ return R;
929
+ },
930
+ $dispose: T
931
+ }, x = oo(process.env.NODE_ENV !== "production" || Ye ? ue(
932
+ {
933
+ _hmrPayload: $,
934
+ _customProperties: Fe(/* @__PURE__ */ new Set())
935
+ },
936
+ j
937
+ ) : j);
938
+ o._s.set(t, x);
939
+ const Z = (o._a && o._a.runWithContext || Oo)(() => o._e.run(() => (a = no()).run(e)));
940
+ for (const C in Z) {
941
+ const b = Z[C];
942
+ if (Ae(b) && !bt(b) || st(b))
943
+ process.env.NODE_ENV !== "production" && s ? We(z.value, C, Ue(Z, C)) : i || (F && Ao(b) && (Ae(b) ? b.value = F[C] : et(b, F[C])), o.state.value[t][C] = b), process.env.NODE_ENV !== "production" && $.state.push(C);
944
+ else if (typeof b == "function") {
945
+ const R = process.env.NODE_ENV !== "production" && s ? b : E(C, b);
946
+ Z[C] = R, process.env.NODE_ENV !== "production" && ($.actions[C] = b), u.actions[C] = b;
947
+ } else
948
+ process.env.NODE_ENV !== "production" && bt(b) && ($.getters[C] = i ? n.getters[C] : b, at && (Z._getters || (Z._getters = Fe([]))).push(C));
949
+ }
950
+ if (ue(x, Z), ue(so(x), Z), Object.defineProperty(x, "$state", {
951
+ get: () => process.env.NODE_ENV !== "production" && s ? z.value : o.state.value[t],
952
+ set: (C) => {
953
+ if (process.env.NODE_ENV !== "production" && s)
954
+ throw new Error("cannot set hotState");
955
+ G((b) => {
956
+ ue(b, C);
957
+ });
958
+ }
959
+ }), process.env.NODE_ENV !== "production" && (x._hotUpdate = Fe((C) => {
960
+ x._hotUpdating = !0, C._hmrPayload.state.forEach((b) => {
961
+ if (b in x.$state) {
962
+ const R = C.$state[b], L = x.$state[b];
963
+ typeof R == "object" && be(R) && be(L) ? Ft(R, L) : C.$state[b] = L;
964
+ }
965
+ We(x, b, Ue(C.$state, b));
966
+ }), Object.keys(x.$state).forEach((b) => {
967
+ b in C.$state || Ke(x, b);
968
+ }), r = !1, c = !1, o.state.value[t] = Ue(C._hmrPayload, "hotState"), c = !0, mt().then(() => {
969
+ r = !0;
970
+ });
971
+ for (const b in C._hmrPayload.actions) {
972
+ const R = C[b];
973
+ We(x, b, E(b, R));
974
+ }
975
+ for (const b in C._hmrPayload.getters) {
976
+ const R = C._hmrPayload.getters[b], L = i ? P(() => (Ie(o), R.call(x, x))) : R;
977
+ We(x, b, L);
978
+ }
979
+ Object.keys(x._hmrPayload.getters).forEach((b) => {
980
+ b in C._hmrPayload.getters || Ke(x, b);
981
+ }), Object.keys(x._hmrPayload.actions).forEach((b) => {
982
+ b in C._hmrPayload.actions || Ke(x, b);
983
+ }), x._hmrPayload = C._hmrPayload, x._getters = C._getters, x._hotUpdating = !1;
984
+ })), Ye) {
985
+ const C = {
986
+ writable: !0,
987
+ configurable: !0,
988
+ enumerable: !1
989
+ };
990
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((b) => {
991
+ Object.defineProperty(x, b, ue({ value: x[b] }, C));
992
+ });
993
+ }
994
+ return o._p.forEach((C) => {
995
+ if (Ye) {
996
+ const b = a.run(() => C({
997
+ store: x,
998
+ app: o._a,
999
+ pinia: o,
1000
+ options: u
1001
+ }));
1002
+ Object.keys(b || {}).forEach((R) => x._customProperties.add(R)), ue(x, b);
1003
+ } else
1004
+ ue(x, a.run(() => C({
1005
+ store: x,
1006
+ app: o._a,
1007
+ pinia: o,
1008
+ options: u
1009
+ })));
1010
+ }), process.env.NODE_ENV !== "production" && x.$state && typeof x.$state == "object" && typeof x.$state.constructor == "function" && !x.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
1011
+ state: () => new MyClass()
1012
+ Found in store "${x.$id}".`), F && i && n.hydrate && n.hydrate(x.$state, F), r = !0, c = !0, x;
1013
+ }
1014
+ function To(t, e, n) {
1015
+ let o, s;
1016
+ const i = typeof e == "function";
1017
+ if (typeof t == "string")
1018
+ o = t, s = i ? n : e;
1019
+ else if (s = t, o = t.id, process.env.NODE_ENV !== "production" && typeof o != "string")
1020
+ throw new Error('[\u{1F34D}]: "defineStore()" must be passed a store id as its first argument.');
1021
+ function a(u, l) {
1022
+ const r = Zt();
1023
+ if (u = (process.env.NODE_ENV === "test" && $e && $e._testing ? null : u) || (r ? eo($o, null) : null), u && Ie(u), process.env.NODE_ENV !== "production" && !$e)
1024
+ throw new Error(`[\u{1F34D}]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1025
+ See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1026
+ This will fail in production.`);
1027
+ u = $e, u._s.has(o) || (i ? tt(o, e, s, u) : wt(o, s, u), process.env.NODE_ENV !== "production" && (a._pinia = u));
1028
+ const c = u._s.get(o);
1029
+ if (process.env.NODE_ENV !== "production" && l) {
1030
+ const h = "__hot:" + o, p = i ? tt(h, e, s, u, !0) : wt(h, ue({}, s), u, !0);
1031
+ l._hotUpdate(p), delete u.state.value[h], u._s.delete(h);
1032
+ }
1033
+ if (process.env.NODE_ENV !== "production" && at) {
1034
+ const h = to();
1035
+ if (h && h.proxy && !l) {
1036
+ const p = h.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
1037
+ f[o] = c;
1038
+ }
1039
+ }
1040
+ return c;
1041
+ }
1042
+ return a.$id = o, a;
1043
+ }
1044
+ const ye = (t) => {
1045
+ let e = [];
1046
+ const n = JSON.stringify(t, (o, s) => {
1047
+ if (typeof s == "object" && s !== null) {
1048
+ if (e.indexOf(s) !== -1)
760
1049
  return null;
761
- t.push(n);
1050
+ e.push(s);
762
1051
  }
763
- return n;
1052
+ return s;
764
1053
  });
765
- return t = null, JSON.parse(l);
766
- }, Xe = {
1054
+ return e = null, JSON.parse(n);
1055
+ }, ut = {
767
1056
  animation: 300,
768
1057
  dragClass: "fe-drag",
769
1058
  ghostClass: "fe-ghost",
770
1059
  chosenClass: "fe-chosen",
771
1060
  itemKey: "key",
772
1061
  handle: ".fe-moving"
773
- };
774
- function Q() {
775
- return {
776
- data: {
777
- type: Object,
778
- default: () => ({ children: [] })
779
- },
780
- field: {
781
- type: Object,
782
- default: null
783
- },
784
- fieldIndex: Number,
785
- path: String,
786
- selectedPath: String
787
- };
1062
+ }, jo = () => (Number(new Date()) + Number(String(Math.random()).slice(2, 15))).toString(32);
1063
+ function Po(t) {
1064
+ const e = jo();
1065
+ return { key: e, model: `${t}_${e}` };
788
1066
  }
789
- function He(o) {
790
- return Boolean(o.category && o.category === "child");
1067
+ function lt(t, e) {
1068
+ if (!(t != null && t.type))
1069
+ throw new Error(`widget ${t == null ? void 0 : t.key} error`);
1070
+ return e = { ...e, ...Po(t.type) }, Object.assign({}, { ...t, ...e, options: { ...t.options, ...e.options } });
791
1071
  }
792
- const qt = () => (Number(new Date()) + Number(String(Math.random()).slice(2, 15))).toString(32);
793
- function Lt(o) {
794
- const t = qt();
795
- return { key: t, model: `${o}_${t}` };
1072
+ function Ot(t) {
1073
+ return Array.isArray(t) ? t : t.replace(/\[/g, ".").replace(/\]/g, "").split(".");
796
1074
  }
797
- function Be(o, t) {
798
- if (!(o != null && o.type))
799
- throw new Error(`widget ${o == null ? void 0 : o.key} error`);
800
- return t = { ...t, ...Lt(o.type) }, Object.assign({}, { ...o, ...t, options: { ...o.options, ...t.options } });
1075
+ function Mo(t, e, n) {
1076
+ return typeof t != "object" ? n : Ot(e).reduce((o, s) => (o || {})[s], ye(t)) || n;
801
1077
  }
802
- function Ye(o, t) {
803
- const l = Be(o, t);
804
- return l.children && (l.children = l.children.map((e) => Ye(e, t))), l;
1078
+ function No(t, e, n) {
1079
+ return typeof t != "object" ? t : (Ot(e).reduce((o, s, i, a) => i === a.length - 1 ? (o[s] = n, null) : (s in o || (o[s] = /^[0-9]{1,}$/.test(a[i + 1]) ? [] : {}), o[s]), t), ye(t));
805
1080
  }
806
- function Je(o) {
807
- return Array.isArray(o) ? o : o.replace(/\[/g, ".").replace(/\]/g, "").split(".");
1081
+ function we(t, e, n = "children") {
1082
+ const o = t ? `${t}.` : "", s = e !== void 0 ? `[${e}]` : "";
1083
+ return `${o}${n}${s}`;
808
1084
  }
809
- function se(o, t, l) {
810
- return typeof o != "object" ? l : Je(t).reduce((e, n) => (e || {})[n], te(o)) || l;
811
- }
812
- function pe(o, t, l) {
813
- return typeof o != "object" ? o : (Je(t).reduce((e, n, i, a) => i === a.length - 1 ? (e[n] = l, null) : (n in e || (e[n] = /^[0-9]{1,}$/.test(a[i + 1]) ? [] : {}), e[n]), o), te(o));
814
- }
815
- function he(o, t, l = "children") {
816
- const e = o ? `${o}.` : "", n = t !== void 0 ? `[${t}]` : "";
817
- return `${e}${l}${n}`;
818
- }
819
- function De(o) {
820
- const t = /(.*)\[(.*)$/.exec(o);
821
- if (t) {
822
- const [, l, e] = t, n = +e.slice(0, -1);
823
- return [l, n];
1085
+ function Bt(t) {
1086
+ const e = /(.*)\[(.*)$/.exec(t);
1087
+ if (e) {
1088
+ const [, n, o] = e, s = +o.slice(0, -1);
1089
+ return [n, s];
824
1090
  }
825
1091
  throw new Error("getPathAndIndex: Invalid path");
826
1092
  }
827
- function Ze(o, t) {
828
- const l = {
829
- value: he(o.path, t),
830
- label: o.name,
831
- children: [],
832
- model: o.model
833
- };
834
- return o.children && (l.children = o.children.map((e, n) => Ze(e, n))), l;
835
- }
836
- function Ht(o) {
837
- return () => {
838
- const { data: t, selectedPath: l } = o;
839
- if (!l)
840
- return null;
841
- const e = Ze(t), n = l.split("."), i = [];
842
- return n.forEach((a, c) => {
843
- const u = n.slice(0, c + 1).join("."), C = se(e, u);
844
- C && i.push(C);
845
- }), i;
846
- };
1093
+ function Ro() {
847
1094
  }
848
- function Gt() {
1095
+ const te = To("widget-form", {
1096
+ state: () => ({
1097
+ children: [],
1098
+ models: {},
1099
+ remoteFuncs: {},
1100
+ selectPath: "",
1101
+ config: { width: "210mm", height: "297mm" }
1102
+ }),
1103
+ getters: {
1104
+ selectedWidget(t) {
1105
+ return t.getWidget(t.selectPath);
1106
+ }
1107
+ },
1108
+ actions: {
1109
+ onReset() {
1110
+ this.children = [];
1111
+ },
1112
+ onUpdate(t) {
1113
+ this.$patch(t);
1114
+ },
1115
+ onUpdateConfig(t, e) {
1116
+ this.config[t] = e;
1117
+ },
1118
+ updateWidgetForm(t) {
1119
+ this.children = t;
1120
+ },
1121
+ onSelected(t) {
1122
+ this.selectPath = String(t || "");
1123
+ },
1124
+ getPathToData(t) {
1125
+ const { children: e } = this;
1126
+ return t ? Mo({ children: e }, t) : void 0;
1127
+ },
1128
+ setPathToData(t, e) {
1129
+ const { children: n, updateWidgetForm: o } = this, s = No({ children: n }, t, e);
1130
+ o(s.children);
1131
+ },
1132
+ getWidget(t) {
1133
+ return this.getPathToData(t);
1134
+ },
1135
+ setWidget(t, e, n = !1) {
1136
+ n && (t = `${t}.options`), e && typeof e == "object" && Object.keys(e).forEach((o) => {
1137
+ console.log(`${t}.${o}`, e[o]), this.setPathToData(`${t}.${o}`, e[o]);
1138
+ });
1139
+ },
1140
+ setSelectedWidget(t, e = !1) {
1141
+ this.setWidget(this.selectPath, t, e);
1142
+ },
1143
+ onCopy(t) {
1144
+ !t || console.log(t);
1145
+ },
1146
+ onDelete(t) {
1147
+ if (!t)
1148
+ return;
1149
+ const { getWidget: e, setPathToData: n, onSelected: o } = this;
1150
+ console.log(t);
1151
+ const [s, i] = Bt(t), a = e(s);
1152
+ a && (a.splice(i, 1), n(s, a), o(`${t}[${i - 1}]`));
1153
+ },
1154
+ toJson() {
1155
+ return {
1156
+ children: this.children,
1157
+ models: this.models,
1158
+ remoteFuncs: this.remoteFuncs,
1159
+ config: this.config
1160
+ };
1161
+ }
1162
+ }
1163
+ });
1164
+ function zo(t, e) {
1165
+ const n = U(t);
1166
+ return [n, (s) => {
1167
+ n.value = { ...t, ...s != null ? s : {} }, e && e.value.resetFields && e.value.resetFields();
1168
+ }];
849
1169
  }
850
- function Qt(o) {
851
- const t = B(() => se(o.data, o.path)), l = B(() => {
852
- var n, i;
853
- return (i = (n = t.value) == null ? void 0 : n.options) != null ? i : {};
854
- }), e = B(() => {
855
- var n, i;
856
- return (i = (n = t.value) == null ? void 0 : n.optionsConfig) != null ? i : {};
1170
+ function rt(t) {
1171
+ const e = P(() => !1), n = P(() => {
1172
+ var s, i;
1173
+ return (i = (s = t == null ? void 0 : t.value) == null ? void 0 : s.options) != null ? i : {};
1174
+ }), o = P(() => {
1175
+ var a, u, l, r;
1176
+ const s = (u = (a = t == null ? void 0 : t.value) == null ? void 0 : a.optionsConfig) != null ? u : {}, i = (r = (l = t == null ? void 0 : t.value) == null ? void 0 : l.options) != null ? r : {};
1177
+ return Object.keys(i).forEach((c) => {
1178
+ let h = s[c] || typeof i[c];
1179
+ typeof h != "object" && (h = { type: h, show: !0, help: "" }), s[c] = {
1180
+ type: h.type,
1181
+ show: h.show !== !1,
1182
+ name: c,
1183
+ help: h.help,
1184
+ options: h.options
1185
+ };
1186
+ }), s;
857
1187
  });
858
1188
  return {
859
- widget: t,
860
- options: l,
861
- optionsConfig: e,
862
- selectedPath: o.selectedPath
1189
+ disabled: e,
1190
+ options: n,
1191
+ optionsConfig: o
863
1192
  };
864
1193
  }
865
- function et(o) {
866
- const t = B({
867
- get: () => o.data.config,
868
- set(i) {
869
- K.emit("widget(path:update)", ["config", i]);
870
- }
871
- }), l = B(() => o.selectedPath ? se(o.data, o.selectedPath) : null), e = B({
872
- get: () => {
873
- var i, a;
874
- return (a = (i = l.value) == null ? void 0 : i.options) != null ? a : {};
1194
+ function Wo(t) {
1195
+ const { onReset: e, onUpdate: n } = te();
1196
+ e(), n(t);
1197
+ }
1198
+ const Io = {
1199
+ loadJs: function(t) {
1200
+ return new Promise((e, n) => {
1201
+ let o = document.getElementsByTagName("head")[0], s = document.createElement("script");
1202
+ s.onload = s.onreadystatechange = s.onerror = function() {
1203
+ s && s.readyState && /^(?!(?:loaded|complete)$)/.test(s.readyState) || (s.onload = s.onreadystatechange = s.onerror = null, s.src = "", s.parentNode.removeChild(s), s = null, e && e());
1204
+ }, s.src = t;
1205
+ try {
1206
+ o.appendChild(s);
1207
+ } catch {
1208
+ n && n();
1209
+ }
1210
+ });
1211
+ },
1212
+ loadCss: function(t, e) {
1213
+ let n = document.getElementsByTagName("head")[0], o = document.createElement("link"), s = document.getElementById(e);
1214
+ o.onload = o.onreadystatechange = o.onerror = null, o.rel = "stylesheet", o.href = t;
1215
+ try {
1216
+ s ? o = null : (e && (o.id = e), n.appendChild(o));
1217
+ } catch {
1218
+ }
1219
+ },
1220
+ is: function() {
1221
+ let t = {}, e = navigator.userAgent;
1222
+ return t.ios = !!e.match(/(iphone|ipod|ipad)/i), t.android = !!e.match(/android/i), t.wechat = !!e.match(/micromessenger/i), e = e.match(/msie \d+?/i), t.ie = function() {
1223
+ let n = navigator.userAgent.toLowerCase();
1224
+ return window.ActiveXObject || "ActiveXObject" in window ? (n.match(/msie\s(\d+)/) || [])[1] || "11" : !1;
1225
+ }(), t;
1226
+ }(),
1227
+ regexp: {
1228
+ mobile: /^1\d{10}$/g,
1229
+ email: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
1230
+ required: /[\S]+/,
1231
+ url: /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,
1232
+ image: /\.(png|jpg|gif|jpeg|webp)$/i
1233
+ },
1234
+ cookie: {
1235
+ set(t, e, n, o, s, i) {
1236
+ if (s) {
1237
+ var a = new Date();
1238
+ a.setTime(a.getTime() + s * 1e3 * 60 * 60 * 24), s = a, a = null;
1239
+ }
1240
+ document.cookie = t + "=" + (i ? e : escape(e)) + (s ? "; expires=" + s.toGMTString() : "") + (o ? "; path=" + o : "; path=/") + (n ? "; domain=" + n : "");
875
1241
  },
876
- set(i) {
877
- K.emit("widget(selectedPath:options)", i);
1242
+ get(t, e) {
1243
+ var n = document.cookie.match(
1244
+ new RegExp("(^| )" + t + "=([^;]*)(;|$)")
1245
+ );
1246
+ return n != null ? unescape(n[2]) : e;
1247
+ },
1248
+ clear(t, e, n) {
1249
+ this.get(t) && (document.cookie = t + "=" + (e ? "; path=" + e : "; path=/") + (n ? "; domain=" + n : "") + ";expires=Fri, 02-Jan-1970 00:00:00 GMT");
878
1250
  }
879
- }), n = B(() => {
880
- var i, a;
881
- return (a = (i = l.value) == null ? void 0 : i.optionsConfig) != null ? a : {};
882
- });
883
- return {
884
- config: t,
885
- selectedWidget: l,
886
- selectedWidgetOptions: e,
887
- selectedWidgetOptionsConfig: n,
888
- selectedPath: o.selectedPath
1251
+ },
1252
+ session: {
1253
+ set: function(t, e) {
1254
+ return window.sessionStorage.setItem(t, util.stringify(e));
1255
+ },
1256
+ get: function(t) {
1257
+ let e = window.sessionStorage.getItem(t) || "";
1258
+ return util.parse(e);
1259
+ },
1260
+ clear: function(t) {
1261
+ return window.sessionStorage.removeItem(t);
1262
+ }
1263
+ },
1264
+ store: {
1265
+ set: function(t, e) {
1266
+ return window.localStorage.setItem(t, util.stringify(e));
1267
+ },
1268
+ get: function(t) {
1269
+ let e = window.localStorage.getItem(t) || "";
1270
+ return util.parse(e);
1271
+ },
1272
+ clear: function(t) {
1273
+ return window.localStorage.removeItem(t);
1274
+ }
1275
+ }
1276
+ };
1277
+ function xt(t, e = "yyyy-MM-dd") {
1278
+ if (!t)
1279
+ return "";
1280
+ typeof t != "object" && (t = new Date(t));
1281
+ const n = (s) => s < 10 ? "0" + s : s, o = {};
1282
+ return o.yyyy = t.getFullYear(), o.MM = t.getMonth() + 1, o.dd = t.getDate(), o.HH = t.getHours(), o.mm = t.getMinutes(), o.ss = t.getSeconds(), e.replace(/yyyy|MM|dd|HH|mm|ss/g, (s) => n(o[s]));
1283
+ }
1284
+ const Vo = {
1285
+ format: xt,
1286
+ toString: xt,
1287
+ toDate: function(t) {
1288
+ return typeof t == "object" ? t : new Date(t);
1289
+ },
1290
+ getMonthDays: function(t, e) {
1291
+ let n = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], o = t.getFullYear();
1292
+ return typeof e > "u" && (e = t.getMonth()), o % 4 === 0 && (o % 100 !== 0 || o % 400 === 0) && e === 1 ? 29 : n[e];
1293
+ },
1294
+ addDays: function(t, e, n) {
1295
+ let o = arguments.length === 1 ? this.toDate(this.today()) : this.toDate(e);
1296
+ return o = new Date(o.getTime() + parseInt(t) * 24 * 3600 * 1e3), this.format(new Date(o), n);
1297
+ },
1298
+ addMonths: function(t, e, n) {
1299
+ let o = arguments.length === 1 ? this.toDate(this.today()) : this.toDate(e);
1300
+ o.getMonth();
1301
+ let s = o.getDate(), i = this.getMonthDays(o, o.getMonth() + parseInt(t));
1302
+ return s > i && o.setDate(i), o.setMonth(o.getMonth() + parseInt(t)), this.format(o, n);
1303
+ },
1304
+ addMonthsForStart: function(t, e) {
1305
+ let n = arguments.length === 1 ? this.today() : e;
1306
+ return n = this.addMonths(t, n), this.firstDayOfMonth(n);
1307
+ },
1308
+ addMonthsForEnd: function(t, e) {
1309
+ let n = arguments.length === 1 ? this.today() : e;
1310
+ return n = this.addMonths(t, n), this.addDays(-1, this.firstDayOfMonth(n));
1311
+ },
1312
+ addYears: function(t, e, n) {
1313
+ let o = arguments.length === 1 ? this.toDate(this.today()) : this.toDate(e);
1314
+ return o.setYear(o.getFullYear() + parseInt(t)), this.format(o, n);
1315
+ },
1316
+ addYearsForStart: function(t, e) {
1317
+ let n = arguments.length === 1 ? this.today() : e;
1318
+ return n = this.addYears(t, n), this.firstDayOfYear(n);
1319
+ },
1320
+ addYearsForEnd: function(t, e) {
1321
+ let n = arguments.length === 1 ? this.today() : e;
1322
+ return n = this.addYears(t, n), this.firstDayOfYear(n);
1323
+ },
1324
+ sunOfWeek: function(t, e) {
1325
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1326
+ return n = new Date(n - n.getDay() * (24 * 3600 * 1e3)), this.format(n, e);
1327
+ },
1328
+ monOfWeek: function(t, e) {
1329
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1330
+ return n = new Date(n - (n.getDay() - 1) * (24 * 3600 * 1e3)), this.format(n, e);
1331
+ },
1332
+ tueOfWeek: function(t, e) {
1333
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1334
+ return n = new Date(n - (n.getDay() - 2) * (24 * 3600 * 1e3)), this.format(n, e);
1335
+ },
1336
+ wedOfWeek: function(t, e) {
1337
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1338
+ return n = new Date(n - (n.getDay() - 3) * (24 * 3600 * 1e3)), this.format(n, e);
1339
+ },
1340
+ turOfWeek: function(t, e) {
1341
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1342
+ return n = new Date(n - (n.getDay() - 4) * (24 * 3600 * 1e3)), this.format(n, e);
1343
+ },
1344
+ friOfWeek: function(t, e) {
1345
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1346
+ return n = new Date(n - (n.getDay() - 5) * (24 * 3600 * 1e3)), this.format(n, e);
1347
+ },
1348
+ satOfWeek: function(t, e) {
1349
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1350
+ return n = new Date(n - (n.getDay() - 6) * (24 * 3600 * 1e3)), this.format(n, e);
1351
+ },
1352
+ firstDayOfMonth: function(t, e) {
1353
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1354
+ return n.setDate(1), this.format(n, e);
1355
+ },
1356
+ lastDayOfMonth: function(t) {
1357
+ return t = arguments.length === 0 ? this.today() : t, t = this.addMonths(1, t), t = this.firstDayOfMonth(t), t = this.addDays(-1, t), t;
1358
+ },
1359
+ firstDayOfYear: function(t, e) {
1360
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1361
+ return n.setMonth(0), n.setDate(1), this.format(n, e);
1362
+ },
1363
+ lastDayOfYear: function(t, e) {
1364
+ let n = arguments.length === 0 ? this.toDate(this.today()) : this.toDate(t);
1365
+ return n.setMonth(11), n.setDate(31), this.format(n, e);
1366
+ },
1367
+ today: function(t) {
1368
+ return arguments.length === 0 ? this.format(new Date(), "yyyy-MM-dd") : this.format(new Date(), t);
1369
+ }
1370
+ }, k = {
1371
+ ie: Number(document.documentMode) | 0,
1372
+ on: function() {
1373
+ return document.addEventListener ? function(t, e, n) {
1374
+ t && e && n && t.addEventListener(e, n, !1);
1375
+ } : function(t, e, n) {
1376
+ t && e && n && t.attachEvent("on" + e, n);
1377
+ };
1378
+ }(),
1379
+ off: function() {
1380
+ return document.removeEventListener ? function(t, e, n) {
1381
+ t && e && t.removeEventListener(e, n, !1);
1382
+ } : function(t, e, n) {
1383
+ t && e && t.detachEvent("on" + e, n);
1384
+ };
1385
+ }(),
1386
+ once: function(t, e, n) {
1387
+ var o = this.off, s = function() {
1388
+ n && n.apply(this, arguments), o(t, e, s);
1389
+ };
1390
+ this.on(t, e, s);
1391
+ },
1392
+ position: function(t) {
1393
+ const e = t.getBoundingClientRect(), { clientTop: n, clientLeft: o } = document.documentElement, { pageYOffset: s, pageXOffset: i } = window;
1394
+ return {
1395
+ top: e.top - n,
1396
+ left: e.left - o,
1397
+ height: e.height,
1398
+ width: e.width,
1399
+ pageYOffset: s,
1400
+ pageXOffset: i
1401
+ };
1402
+ },
1403
+ el: function(t, e) {
1404
+ return e || (e = document), e.querySelector(t);
1405
+ },
1406
+ els: function(t, e) {
1407
+ return e || (e = document), [].slice.call(e.querySelectorAll(t));
1408
+ },
1409
+ hasClass: function(t, e) {
1410
+ if (!t || !e)
1411
+ return !1;
1412
+ if (e.indexOf(" ") !== -1)
1413
+ throw new Error("className should not contain space.");
1414
+ return t.classList ? t.classList.contains(e) : (" " + t.className + " ").indexOf(" " + e + " ") > -1;
1415
+ },
1416
+ addClass: function(t, e) {
1417
+ if (!!t) {
1418
+ for (var n = t.className, o = (e || "").split(" "), s = 0, i = o.length; s < i; s++) {
1419
+ var a = o[s];
1420
+ !a || (t.classList ? t.classList.add(a) : this.hasClass(t, a) || (n += " " + a));
1421
+ }
1422
+ t.classList || (t.className = n);
1423
+ }
1424
+ },
1425
+ removeClass: function(t, e) {
1426
+ if (!(!t || !e)) {
1427
+ for (var n = e.split(" "), o = " " + t.className + " ", s = 0, i = n.length; s < i; s++) {
1428
+ var a = n[s];
1429
+ !a || (t.classList ? t.classList.remove(a) : this.hasClass(t, a) && (o = o.replace(" " + a + " ", " ")));
1430
+ }
1431
+ t.classList || (t.className = o);
1432
+ }
1433
+ },
1434
+ append(t, e) {
1435
+ e || (e = document.body), e.appendChild(t);
1436
+ },
1437
+ remove(t) {
1438
+ t && t.parentNode && t.parentNode.removeChild(t);
1439
+ },
1440
+ isHTMLElement(t) {
1441
+ return t instanceof window.HTMLElement || t instanceof HTMLElement;
1442
+ },
1443
+ getScrollParent(t) {
1444
+ try {
1445
+ let e = function(o, s = "y") {
1446
+ let i = window.getComputedStyle(o), a = i.overflow, u = i.overflowX, l = i.overflowY, r = (s === "y" ? l : u) || a;
1447
+ return /scroll|overlay|auto/.test(r);
1448
+ }, n = t.parentNode;
1449
+ return this.isHTMLElement(n) ? e(n) ? n : this.getScrollParent(n) : t;
1450
+ } catch {
1451
+ }
1452
+ return window;
1453
+ },
1454
+ setTransform(t, e) {
1455
+ let n = ["webkit", "Moz", "O", "ms"].map((o) => `${o}Transform`);
1456
+ if (n.unshift("transform"), !!this.isHTMLElement(t)) {
1457
+ for (let o in n)
1458
+ if (t.style[n[o]] !== void 0)
1459
+ return t.style[n[o]] = e;
1460
+ }
1461
+ }
1462
+ };
1463
+ let ne = { attr: "data-u-dialog" };
1464
+ const se = (t) => typeof t > "u";
1465
+ function Lo() {
1466
+ this.dom = k;
1467
+ const t = (e = {}) => {
1468
+ let n = ne.attr;
1469
+ se(e.shadow) && (e.shadow = !0), se(e.shadowClose) && (e.shadowClose = !0), se(e.showClose) && (e.showClose = !1);
1470
+ var o, s = e.uniqueId || this.uniqueId("U");
1471
+ if (e.uniqueId) {
1472
+ let u = k.el("#" + s), l = ne["timer_" + s];
1473
+ u && k.hasClass(u, "u-dialog") && (o = u), k.removeClass(o, "is-show"), l && clearTimeout(l);
1474
+ }
1475
+ if (!o) {
1476
+ const u = document.createElement("div");
1477
+ u.className = "u-dialog-mask", e.shadow && k.addClass(u, "is-show"), e.shadow < 1 && e.shadow > 0 && (u.style.opacity = e.shadow), u.setAttribute("data-u-dialog", s), o = document.createElement("div"), e.uniqueId && (o.id = s), o.className = "u-dialog " + (se(e.ani) ? "u-dialog-ani" : e.ani), e.before && e.before(o), e.after && (ne["after_" + s] = e.after);
1478
+ const l = e.skin || e.className;
1479
+ l && k.addClass(o, l), e.extend && (k.addClass(o, "is-extend"), k.addClass(u, "is-extend")), o.setAttribute("data-u-dialog", s), u.oncontextmenu = o.oncontextmenu = () => !1, e.shadowClose && (u.onclick = () => this.hideToast(u.getAttribute(n))), e.shadow && k.append(u), k.append(o);
1480
+ }
1481
+ const i = (u = "") => u.replace(/ipt>/g, "ipt&gt;");
1482
+ e.title = i(e.title), e.content = i(String(e.content)), e.width = e.width ? e.width : "auto", e.height = e.height ? e.height : "auto";
1483
+ let a = e.showClose ? '<div class="u-dialog-close is-show">x</div>' : "";
1484
+ return o.innerHTML = `
1485
+ <div class="u-dialog-content" style="width:${e.width};height:${e.height}">
1486
+ <div class="u-dialog-title${e.title ? " is-show" : ""}"> ${e.title}</div>
1487
+ <div class="u-dialog-body">${e.content}</div>${a}
1488
+ </div> `, this.refreshOffset(o, e.offset), e.showClose && k.on(k.el(".u-dialog-close", o), "click", () => this.hideToast(o.getAttribute(n))), e.time && (ne["timer_" + s] = setTimeout(() => this.hideToast(o.getAttribute(n)), e.time * 1e3)), typeof e.success == "function" && e.success(s, o), s;
1489
+ };
1490
+ this.uniqueId = (e = "") => e + (+new Date()).toString(32), this.refreshOffset = (e, n = ["auto", "auto"]) => {
1491
+ const o = window.innerHeight, s = window.innerWidth;
1492
+ e.style.top = n[0] === "auto" ? Math.max((o - e.clientHeight) / 2, 0) + "px" : n[0], e.style.left = n[1] === "auto" ? Math.max((s - e.clientWidth) / 2, 0) + "px" : n[1], k.addClass(e, "is-show");
1493
+ try {
1494
+ let i = k.el(".u-dialog-content", e), a = k.el(".u-dialog-title", e).clientHeight, u = o - a;
1495
+ i.style.maxHeight = u + "px", k.el(".u-dialog-body", e).style.maxHeight = u - a + "px";
1496
+ } catch {
1497
+ }
1498
+ {
1499
+ let i = e.clientHeight + e.offsetTop, a = e.clientWidth + e.offsetLeft;
1500
+ i > o - 10 && (e.style.top = Math.max(e.offsetTop - e.clientHeight, 0) + "px"), a > s - 10 && (e.style.left = Math.max(e.offsetLeft - e.clientWidth, 0) + "px");
1501
+ }
1502
+ }, this.hideToast = (e) => {
1503
+ let n = (o) => {
1504
+ k.removeClass(o, "is-show");
1505
+ let s = ne["after_" + e];
1506
+ !k.hasClass(o, "u-dialog-mask") && s && (s(o), ne["after_" + e] = null), ne["timer_" + e] = setTimeout(() => {
1507
+ k.remove(o), ne["timer_" + e] = null;
1508
+ }, 300);
1509
+ };
1510
+ k.els(`[${ne.attr}]`).forEach((o) => {
1511
+ e ? e == o.getAttribute(ne.attr) && n(o) : !k.hasClass(o, "is-extend") && n(o);
1512
+ });
1513
+ }, this.toast = (e, n = 2) => (this.hideToast(), t({
1514
+ className: "u-dialog__toast",
1515
+ content: e,
1516
+ width: "auto",
1517
+ shadow: !1,
1518
+ shadowClose: !1,
1519
+ time: n
1520
+ })), this.showLoading = (e) => {
1521
+ let n = k.el(".u-dialog__loading");
1522
+ return n ? (k.el("p", n).innerHTML = e, n.getAttribute(ne.attr)) : (this.hideToast(), t({
1523
+ className: "u-dialog__loading",
1524
+ content: `<i></i><p>${e || ""}</p>`,
1525
+ width: "120px",
1526
+ height: "120px",
1527
+ shadow: 0.3,
1528
+ shadowClose: !1
1529
+ }));
1530
+ }, this.showSuccess = (e, n = 2) => (this.hideToast(), t({
1531
+ className: "u-dialog__success",
1532
+ content: `<i></i><p>${e || ""}</p>`,
1533
+ width: "120px",
1534
+ height: "120px",
1535
+ shadow: !1,
1536
+ shadowClose: !1,
1537
+ time: n
1538
+ })), this.alert = (e, n) => {
1539
+ this.hideToast(), n = Object.assign({}, n), typeof e == "string" && (e = { content: e }), se(e.width) && (e.width = "380px"), se(e.time) && (e.time = 0), se(e.title) && (e.title = "\u63D0\u793A"), se(e.showClose) && (e.showClose = !1), typeof e.ok == "object" && (n.confirmText = e.ok.label, n.confirmSkin = e.ok.skin, n.confirm = e.ok.onclick), typeof e.cancel == "object" && (n.cancelText = e.cancel.label, n.cancelSkin = e.cancel.skin, n.cancel = e.cancel.onclick);
1540
+ let o = typeof n.confirm == "function";
1541
+ se(e.shadowClose) && (e.shadowClose = !o), n.cancelText || (n.cancelText = "\u53D6\u6D88");
1542
+ let s = "", i = `<a class="u-btn">${n.cancelText}</a>`;
1543
+ return o && (n.confirmText = n.confirmText || "\u786E\u8BA4", n.confirmSkin = n.confirmSkin || "u-btn--blue", s = `<a class="u-btn u-btn--primary ${n.confirmSkin}">${n.confirmText}</a>`), e.skin = "u-dialog__alert", e.content = `<div class="u-dialog__alert-content">${e.content}</div><div class="u-dialog__alert-btns">${s}${i}</div><div></div>`, e.success = (a, u) => {
1544
+ k.els(".u-btn", u).forEach((l) => {
1545
+ k.on(l, "click", () => {
1546
+ k.hasClass(l, "u-btn--primary") && o ? n.confirm(a, l) : typeof n.cancel == "function" ? n.cancel(a, l) : this.hideToast(a);
1547
+ });
1548
+ });
1549
+ }, t(e);
1550
+ }, this.showNearby = (e = {}) => (this.hideToast(), e.skin = "u-dialog__nearby " + (e.skin || e.className || ""), t(Object.assign({}, { shadow: !1, height: "auto", width: "auto", time: 2, showClose: !1 }, e))), this.showModal = (e) => (this.hideToast(), typeof e == "string" && (e = { content: e }), se(e.width) && (e.width = "320px"), se(e.height) && (e.height = "240px"), se(e.time) && (e.time = 0), se(e.shadowClose) && (e.shadowClose = !1), se(e.showClose) && (e.showClose = !0), t(e)), this.showPopover = (e) => this.showModal(Object.assign({}, e, {
1551
+ shadow: !1,
1552
+ width: "auto",
1553
+ height: "auto",
1554
+ showClose: !1,
1555
+ extend: !0,
1556
+ success: (n, o) => {
1557
+ k.once(k.getScrollParent(e.el), "scroll", () => this.hideToast(n)), setTimeout(() => {
1558
+ k.once(document, "contextmenu", () => this.hideToast(n)), k.once(document, "click", () => this.hideToast(n));
1559
+ }, 100), k.on(o, "contextmenu", (s) => {
1560
+ s.stopPropagation(), s.preventDefault();
1561
+ }), k.on(o, "click", (s) => {
1562
+ s.stopPropagation(), s.preventDefault();
1563
+ }), e.success && e.success(n, o);
1564
+ }
1565
+ })), ne.createContextLabel = ({ skin: e, list: n, value: o = "" }) => n.reduce((s, i, a) => {
1566
+ let u = "", l = i.children && i.children.length;
1567
+ return l && (u = render(i.children)), s += `<div class="${e}-item${i.border ? " is-border" : ""}${i.disabled ? " is-disabled" : ""}${l ? " is-children" : ""}${i.value == o ? " is-active" : ""}" data-value="${i.value}">${i.label}${u}</div>`, s;
1568
+ }, ""), this.showDropdown = (e) => {
1569
+ let { offset: n, success: o, el: s, list: i, value: a } = e;
1570
+ const u = "u-dialog--dropdown";
1571
+ return this.showPopover(Object.assign({}, e, {
1572
+ skin: u,
1573
+ content: ne.createContextLabel({ skin: u, list: i, value: a }),
1574
+ success: (l, r) => {
1575
+ k.els(`.${u}-item`).forEach((c) => {
1576
+ k.hasClass(c, "is-disabled") || k.hasClass(c, "is-children") || k.on(c, "click", (h) => {
1577
+ o && o({ label: c.innerText, value: c.getAttribute("data-value") }), this.hideToast(l);
1578
+ });
1579
+ });
1580
+ }
1581
+ }));
1582
+ }, this.showContextMenu = (e) => {
1583
+ let { offset: n, success: o, el: s, list: i } = e;
1584
+ const a = "u-dialog--contextmenu";
1585
+ return this.showPopover(Object.assign({}, e, {
1586
+ skin: a,
1587
+ content: ne.createContextLabel({ skin: a, list: i }),
1588
+ success: (u, l) => {
1589
+ let r = k.els(`.${a}-item`), c = r.length === 1;
1590
+ r.forEach((h) => {
1591
+ k.hasClass(h, "is-disabled") || k.hasClass(h, "is-children") || (c && (h.style.lineHeight = h.offsetHeight + 2 + "px"), k.on(h, "click", (p) => {
1592
+ o && o({ label: h.innerText, value: h.getAttribute("data-value") }), this.hideToast(u);
1593
+ }));
1594
+ });
1595
+ }
1596
+ }));
1597
+ }, this.uploadAvatar = function(e = {}) {
1598
+ const n = this.showModal;
1599
+ function o(i) {
1600
+ let a = document.createElement("input");
1601
+ a.type = "file", a.accept = "image/*", a.onchange = (u) => {
1602
+ const l = (u.target || u.path[0]).files[0];
1603
+ let { name: r, size: c, type: h } = l;
1604
+ if (typeof i == "function") {
1605
+ const p = new FileReader();
1606
+ p.readAsDataURL(l);
1607
+ let f = new Image();
1608
+ p.onload = ({ target: F }) => {
1609
+ f.onload = () => {
1610
+ i(f, {
1611
+ width: f.width,
1612
+ height: f.height,
1613
+ size: c,
1614
+ MB: Math.ceil(c / 1024 / 1024 * 100) / 100,
1615
+ name: r,
1616
+ type: h
1617
+ });
1618
+ }, f.src = F.result;
1619
+ };
1620
+ }
1621
+ a = null;
1622
+ }, k.ie && k.ie <= 10 && (a.style.clip = "rect(0px, 0px, 0px, 0px)", k.append(a), setTimeout((u) => k.remove(a), 100)), a.click();
1623
+ }
1624
+ function s(i) {
1625
+ n({
1626
+ extend: !0,
1627
+ title: e.title || "\u4E0A\u4F20\u5934\u50CF",
1628
+ shadow: 0.8,
1629
+ width: "auto",
1630
+ height: "auto",
1631
+ content: `<div class="u-center u-nos">
1632
+ <p style="margin: 20px 0;color: #888;">${e.desc || "\u8C03\u6574\u5934\u50CF\u4F4D\u7F6E"}</p>
1633
+ <div style="padding: 10px 40px;"><canvas width="240" height="240" style="width: 240px; height: 240px; cursor: grab;"></canvas></div>
1634
+ <p style="margin:40px 0"><button style="width:240px;" class="${e.btnClass || "u-btn"}"> \u4FDD\u5B58</button></p>
1635
+ </div> `,
1636
+ success(a, u) {
1637
+ let l = k.el("canvas", u);
1638
+ const r = l.getContext("2d");
1639
+ if (typeof i == "function") {
1640
+ i(l, r);
1641
+ let c = k.el("button", u);
1642
+ k.on(c, "click", function() {
1643
+ let h = r.getImageData(40, 40, 160, 160), p = document.createElement("canvas"), f = p.getContext("2d");
1644
+ p.width = p.height = 160, f.putImageData(h, 0, 0);
1645
+ let F = p.toDataURL("image/png", 0.91);
1646
+ h = p = f = null, typeof e.success == "function" && e.success(F, a);
1647
+ });
1648
+ }
1649
+ }
1650
+ });
1651
+ }
1652
+ o((i, a) => {
1653
+ function c(p, f) {
1654
+ return p / (f / 160);
1655
+ }
1656
+ function h(p, f, F) {
1657
+ return F > f ? f : F < p ? p : F;
1658
+ }
1659
+ typeof e.change == "function" && !e.change(a) || s((p, f) => {
1660
+ const { width: F, height: z } = a, H = (G = { left: 0, top: 0 }) => {
1661
+ f.clearRect(0, 0, 240, 240), f.fillStyle = "#ccc", f.fillRect(0, 0, 240, 240), f.fill();
1662
+ let fe = F >= z, T = p.getAttribute("data-left") | 0, E = p.getAttribute("data-top") | 0, $, j, x = 40;
1663
+ if (fe) {
1664
+ $ = c(F, z), j = 160, T = T || (240 - $) / 2, E = E || 40;
1665
+ let oe = j + 40 - $;
1666
+ T = T + G.left, T = h(oe, x, T);
1667
+ } else {
1668
+ $ = 160, j = c(z, F), T = T || 40, E = E || (240 - j) / 2;
1669
+ let oe = $ + 40 - j;
1670
+ E = E + G.top, E = h(oe, x, E);
1671
+ }
1672
+ return f.drawImage(i, T, E, $, j), f.stroke(), f.fillStyle = "rgba(250,250,250,.88)", f.fillRect(0, 0, 40, 240), f.fillRect(200, 0, 40, 240), f.fillRect(40, 0, 160, 40), f.fillRect(40, 200, 160, 40), f.fill(), { left: T, top: E };
1673
+ };
1674
+ H({ left: 0, top: 0 }), this.moveEvent({ el: p, success: H });
1675
+ });
1676
+ });
1677
+ }, this.moveEvent = function({ el: e, success: n, doc: o = document }) {
1678
+ k.on(e, "mousedown", (s) => {
1679
+ let i = s.pageX || s.clientX, a = s.pageY || s.clientY;
1680
+ e.style.cursor = "grabbing";
1681
+ let u = !0;
1682
+ const l = (c) => {
1683
+ if (u) {
1684
+ let h = c.pageX || c.clientX, p = c.pageY || c.clientY, f = h - i, F = p - a;
1685
+ n({ left: f, top: F });
1686
+ }
1687
+ }, r = (c) => {
1688
+ e.style.cursor = "grab";
1689
+ let h = c.pageX || c.clientX, p = c.pageY || c.clientY, f = h - i, F = p - a, z = n({ left: f, top: F });
1690
+ z && (e.setAttribute("data-left", z.left | 0), e.setAttribute("data-top", z.top | 0)), u = !1, k.off(o, "mouseup", r), k.off(o, "mousemove", l);
1691
+ };
1692
+ k.on(o, "mousemove", l), k.on(o, "mouseup", r);
1693
+ });
1694
+ }, this.showImageView = function(e) {
1695
+ const { dom: n, showModal: o, hideToast: s } = this, i = e, { naturalWidth: a, naturalHeight: u } = i;
1696
+ if (!n.isHTMLElement(i) && i.nodeName !== "IMG")
1697
+ return;
1698
+ const l = n.position(i), r = (f) => {
1699
+ f.style.left = l.left + "px", f.style.top = l.top + "px", f.style.width = l.width + "px", f.style.height = l.height + "px", n.setTransform(f, "scale(1)");
1700
+ };
1701
+ let c = l.width, h = l.height, p = 1;
1702
+ {
1703
+ let f = Math.min(window.innerWidth, a);
1704
+ f = f * 0.8 / c;
1705
+ let F = Math.min(window.innerHeight, u);
1706
+ F = F * 0.8 / h, p = Math.max(Math.min(f, F), 1);
1707
+ }
1708
+ o({
1709
+ content: "",
1710
+ shadowClose: !0,
1711
+ showClose: !1,
1712
+ width: c + "px",
1713
+ height: h + "px",
1714
+ before(f) {
1715
+ f.style.transition = "all 300ms ease-in-out", r(f);
1716
+ },
1717
+ after(f) {
1718
+ n.addClass(f, "is-show"), r(f);
1719
+ },
1720
+ success(f, F) {
1721
+ let z = n.el(".u-dialog-body", F);
1722
+ z.style.padding = "0";
1723
+ let H = i.cloneNode(!1);
1724
+ z.append(H), n.setTransform(F, `scale(${p})`);
1725
+ }
1726
+ });
889
1727
  };
890
1728
  }
891
- const Xt = { key: 0 }, Yt = ["src"], tt = /* @__PURE__ */ E({
1729
+ const Uo = new Lo();
1730
+ function ot(t, e) {
1731
+ return Object.keys(e).reduce((n, o) => {
1732
+ const s = e[o];
1733
+ return typeof s == "object" ? n[o] = ot(n[o] || {}, s) : Array.isArray(s) ? n[o] = s.map((i, a) => typeof i == "object" ? ot((i[o] || [])[a] || {}, i) : i) : n[o] = s, n;
1734
+ }, t);
1735
+ }
1736
+ const Ho = {
1737
+ stringify: function(t) {
1738
+ if (typeof t == "object")
1739
+ try {
1740
+ t = JSON.stringify(t);
1741
+ } catch {
1742
+ }
1743
+ return t;
1744
+ },
1745
+ parse: function(t) {
1746
+ if (typeof t == "string")
1747
+ try {
1748
+ t = JSON.parse(t);
1749
+ } catch {
1750
+ }
1751
+ return t;
1752
+ },
1753
+ clone: function(t) {
1754
+ return typeof t == "object" ? this.parse(this.stringify(t)) : t;
1755
+ },
1756
+ toPercent: function(t) {
1757
+ return (Math.round(t * 1e4) / 100).toFixed(2) + "%";
1758
+ },
1759
+ toThousands: function(t) {
1760
+ if (t = String(t), String(+t) === "NaN")
1761
+ return t;
1762
+ let e = t, n = "";
1763
+ if (~e.indexOf(".")) {
1764
+ let [o, s] = e.split(".");
1765
+ e = o, n = +s, n = n ? `.${n}` : "";
1766
+ }
1767
+ return String(e).replace(/(\d)(?=(\d{3})+(?!\d))/g, "$&,") + n;
1768
+ },
1769
+ toMB: function(t) {
1770
+ let e = 0;
1771
+ const n = 1024, o = "BKMGT";
1772
+ for (; t > n; )
1773
+ t = t / n, e++;
1774
+ return t.toFixed(2) + (e ? o.charAt(e) : "") + "B";
1775
+ },
1776
+ setData: function(t, e, n) {
1777
+ if (typeof t != "object")
1778
+ return t;
1779
+ function o(s) {
1780
+ return Array.isArray(s) ? s : s.replace(/\[/g, ".").replace(/\]/g, "").split(".");
1781
+ }
1782
+ return o(e).reduce((s, i, a, u) => a === u.length - 1 ? (s[i] = n, null) : (i in s || (s[i] = /^[0-9]{1,}$/.test(u[a + 1]) ? [] : {}), s[i]), t), t;
1783
+ },
1784
+ merge: ot
1785
+ }, qo = "shaonq", Ko = "1.1.3", Yo = "\u5F53\u4F60\u4E0D\u52AA\u529B\u7684\u65F6\u5019\uFF0C\u5929\u8D4B\u5C31\u4F1A\u4E00\u70B9\u4E00\u70B9\u88AB\u6536\u56DE\u3002", Xo = "./src/index.js", Jo = {
1786
+ ".": "./src/index.js",
1787
+ "./js": "./dist/index.js",
1788
+ "./css": "./dist/index.css",
1789
+ "./dist/index.js": "./dist/index.js",
1790
+ "./dist/index.css": "./dist/index.css",
1791
+ "./scss": "./src/index.scss",
1792
+ "./package.json": "./package.json"
1793
+ }, Go = "./src/index.d.ts", Qo = {
1794
+ build: "npx webpack --config webpack.config.js"
1795
+ }, Zo = {
1796
+ type: "git",
1797
+ url: "https://github.com/shaonq/shaonq.git"
1798
+ }, en = [], tn = "shaonq", on = "MIT", nn = {
1799
+ "@babel/core": "^7.17.5",
1800
+ "@babel/preset-env": "^7.16.11",
1801
+ autoprefixer: "^10.4.4",
1802
+ "babel-loader": "^8.2.3",
1803
+ "core-js": "3",
1804
+ "css-loader": "^6.7.1",
1805
+ "mini-css-extract-plugin": "^2.6.0",
1806
+ postcss: "^8.4.12",
1807
+ "postcss-loader": "^6.2.1",
1808
+ sass: "^1.49.9",
1809
+ "sass-loader": "^12.6.0",
1810
+ webpack: "^5.70.0",
1811
+ "webpack-cli": "^4.10.0"
1812
+ }, sn = [
1813
+ "> 1%",
1814
+ "last 2 versions",
1815
+ "not ie < 11"
1816
+ ], an = {
1817
+ name: qo,
1818
+ version: Ko,
1819
+ description: Yo,
1820
+ main: Xo,
1821
+ exports: Jo,
1822
+ types: Go,
1823
+ scripts: Qo,
1824
+ repository: Zo,
1825
+ keywords: en,
1826
+ author: tn,
1827
+ license: on,
1828
+ devDependencies: nn,
1829
+ browserslist: sn
1830
+ }, un = {
1831
+ ...Io,
1832
+ dom: k,
1833
+ ...Uo,
1834
+ date: Vo,
1835
+ ...Ho,
1836
+ version: an.version
1837
+ }, ln = ["src"], At = /* @__PURE__ */ N({
892
1838
  __name: "qrcode",
893
- props: Q(),
894
- setup(o) {
895
- const t = o, { options: l } = Qt(t), e = document.createElement("canvas");
896
- e.height = 1, e.width = 1;
897
- function n() {
898
- var i, a;
899
- return $t.toCanvas(e, {
900
- bcid: l.value.bcid,
901
- text: (i = l.value.defaultValue) != null ? i : "10000",
902
- height: l.value.height,
903
- width: l.value.width,
904
- padding: (a = l.value.padding) != null ? a : 0,
1839
+ props: { path: String },
1840
+ setup(t) {
1841
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path)), s = document.createElement("canvas");
1842
+ s.height = 1, s.width = 1;
1843
+ function i() {
1844
+ var u, l, r, c;
1845
+ const a = (l = (u = o.value) == null ? void 0 : u.options) != null ? l : {};
1846
+ return a.bcid ? (Dt.toCanvas(s, {
1847
+ bcid: a.bcid,
1848
+ text: (r = a.defaultValue) != null ? r : "10000",
1849
+ height: a.height,
1850
+ width: a.width,
1851
+ padding: (c = a.padding) != null ? c : 0,
905
1852
  eclevel: "H"
906
- }), e.toDataURL();
907
- }
908
- return (i, a) => g(l) ? (r(), x("div", Xt, [
909
- y("img", {
910
- src: n(),
911
- style: ee({ width: g(l).width + "px", height: g(l).height + "px" })
912
- }, null, 12, Yt)
913
- ])) : D("", !0);
1853
+ }), s.toDataURL()) : "";
1854
+ }
1855
+ return (a, u) => o.value && o.value.options ? (d(), S("img", {
1856
+ key: 0,
1857
+ src: i(),
1858
+ style: J({ display: "block", width: o.value.options.width + "px", height: o.value.options.height + "px" })
1859
+ }, null, 12, ln)) : M("", !0);
914
1860
  }
915
- }), Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1861
+ }), rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
916
1862
  __proto__: null,
917
- default: tt
918
- }, Symbol.toStringTag, { value: "Module" })), Zt = {
1863
+ default: At
1864
+ }, Symbol.toStringTag, { value: "Module" })), cn = {
919
1865
  __name: "barcode",
920
- setup(o) {
921
- return (t, l) => (r(), R(tt, ke(Ae(t.$props)), null, 16));
1866
+ setup(t) {
1867
+ return (e, n) => (d(), B(At, Te(je(e.$props)), null, 16));
922
1868
  }
923
- }, eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1869
+ }, dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
924
1870
  __proto__: null,
925
- default: Zt
926
- }, Symbol.toStringTag, { value: "Module" })), to = /* @__PURE__ */ E({
1871
+ default: cn
1872
+ }, Symbol.toStringTag, { value: "Module" })), fn = /* @__PURE__ */ N({
927
1873
  __name: "card",
928
- props: Q(),
929
- setup(o) {
930
- const t = o;
931
- return (l, e) => l.field && l.field.key && l.field.children ? (r(!0), x(I, { key: 0 }, oe(l.field.children, (n, i) => (r(), R($e, {
932
- key: i,
933
- data: t.data,
934
- "selected-path": t.selectedPath,
935
- field: n,
936
- "field-index": i,
937
- path: g(he)(t.path, i)
938
- }, null, 8, ["data", "selected-path", "field", "field-index", "path"]))), 128)) : D("", !0);
1874
+ props: { path: String },
1875
+ setup(t) {
1876
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path));
1877
+ return (s, i) => o.value && o.value.key && o.value.children ? (d(!0), S(X, { key: 0 }, _e(o.value.children, (a, u) => (d(), B(Me, {
1878
+ key: u,
1879
+ path: v(we)(e.path, u)
1880
+ }, null, 8, ["path"]))), 128)) : M("", !0);
939
1881
  }
940
- }), oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1882
+ }), pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
941
1883
  __proto__: null,
942
- default: to
943
- }, Symbol.toStringTag, { value: "Module" })), no = /* @__PURE__ */ E({
1884
+ default: fn
1885
+ }, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ N({
944
1886
  __name: "col",
945
- props: Q(),
946
- setup(o) {
947
- const t = o;
948
- function l(n, i, a) {
1887
+ props: { path: String },
1888
+ setup(t) {
1889
+ const e = t, { getWidget: n, setPathToData: o } = te(), s = P(() => n(e.path));
1890
+ function i(u, l, r) {
949
1891
  var c;
950
- return ((c = a == null ? void 0 : a.dataset) == null ? void 0 : c.category) === "base";
1892
+ return ((c = r == null ? void 0 : r.dataset) == null ? void 0 : c.category) === "basic";
951
1893
  }
952
- function e(n) {
1894
+ function a(u) {
953
1895
  var c;
954
- if (!n || !((c = t.field) != null && c.children))
1896
+ if (!u || !e.path || !((c = s.value) != null && c.children))
955
1897
  return;
956
- const i = n.newIndex, a = te(t.field.children);
957
- a[i] = Be(a[i], { options: {} }), K.emit("widget(path:update)", [t.path, { ...t.field, children: a }]);
1898
+ const l = u.newIndex, r = ye(s.value.children);
1899
+ r[l] = lt(r[l], { options: {} }), o(e.path, { ...s.value, children: r });
958
1900
  }
959
- return (n, i) => t.field && t.field.children ? (r(), R(g(Ce), Me({
1901
+ return (u, l) => s.value && s.value.children ? (d(), B(v(Pe), it({
960
1902
  key: 0,
961
- list: t.field.children,
1903
+ list: s.value.children,
962
1904
  class: "fe-form-widget-list",
963
- group: { name: "orchisky", put: l }
964
- }, g(Xe), { onAdd: e }), {
965
- item: f(({ element: a, index: c }) => [
966
- a && a.key ? (r(), R($e, {
1905
+ group: { name: "orchisky", put: i }
1906
+ }, v(ut), { onAdd: a }), {
1907
+ item: g(({ element: r, index: c }) => [
1908
+ r && r.key ? (d(), B(Me, {
967
1909
  key: 0,
968
- data: t.data,
969
- "selected-path": t.selectedPath,
970
- field: a,
971
- "field-index": c,
972
- path: g(he)(t.path, c)
973
- }, null, 8, ["data", "selected-path", "field", "field-index", "path"])) : D("", !0)
1910
+ path: v(we)(e.path, c)
1911
+ }, null, 8, ["path"])) : M("", !0)
974
1912
  ]),
975
- footer: f(() => []),
1913
+ footer: g(() => []),
976
1914
  _: 1
977
- }, 16, ["list", "group"])) : D("", !0);
1915
+ }, 16, ["list", "group"])) : M("", !0);
978
1916
  }
979
- }), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1917
+ }), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
980
1918
  __proto__: null,
981
- default: no
982
- }, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ E({
1919
+ default: hn
1920
+ }, Symbol.toStringTag, { value: "Module" })), gn = /* @__PURE__ */ N({
983
1921
  __name: "grid",
984
- props: Q(),
985
- setup(o) {
986
- const t = o;
987
- return (l, e) => {
988
- const n = m("a-col"), i = m("a-row");
989
- return l.field && l.field.key && l.field.children ? (r(), R(i, { key: 0 }, {
990
- default: f(() => [
991
- (r(!0), x(I, null, oe(l.field.children, (a, c) => (r(), R(n, {
992
- key: c,
1922
+ props: { path: String },
1923
+ setup(t) {
1924
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path));
1925
+ return (s, i) => {
1926
+ const a = y("a-col"), u = y("a-row");
1927
+ return o.value && o.value.key && o.value.children ? (d(), B(u, { key: 0 }, {
1928
+ default: g(() => [
1929
+ (d(!0), S(X, null, _e(o.value.children, (l, r) => (d(), B(a, {
1930
+ key: r,
993
1931
  span: 12
994
1932
  }, {
995
- default: f(() => [
996
- p($e, {
997
- data: t.data,
998
- "selected-path": t.selectedPath,
999
- field: a,
1000
- "field-index": c,
1001
- path: g(he)(t.path, c)
1002
- }, null, 8, ["data", "selected-path", "field", "field-index", "path"])
1933
+ default: g(() => [
1934
+ _(Me, {
1935
+ path: v(we)(e.path, r)
1936
+ }, null, 8, ["path"])
1003
1937
  ]),
1004
1938
  _: 2
1005
1939
  }, 1024))), 128))
1006
1940
  ]),
1007
1941
  _: 1
1008
- })) : D("", !0);
1942
+ })) : M("", !0);
1009
1943
  };
1010
1944
  }
1011
- }), ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1945
+ }), mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1012
1946
  __proto__: null,
1013
- default: io
1014
- }, Symbol.toStringTag, { value: "Module" })), so = /* @__PURE__ */ E({
1947
+ default: gn
1948
+ }, Symbol.toStringTag, { value: "Module" })), vn = /* @__PURE__ */ N({
1015
1949
  __name: "hline",
1016
- props: Q(),
1017
- setup(o) {
1018
- const t = o, l = B(() => se(t.data, t.path));
1019
- return (e, n) => l.value.options ? (r(), x("div", {
1950
+ props: { path: String },
1951
+ setup(t) {
1952
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path));
1953
+ return (s, i) => o.value && o.value.options ? (d(), S("div", {
1954
+ key: 0,
1955
+ style: J(o.value.options)
1956
+ }, null, 4)) : M("", !0);
1957
+ }
1958
+ }), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1959
+ __proto__: null,
1960
+ default: vn
1961
+ }, Symbol.toStringTag, { value: "Module" })), bn = /* @__PURE__ */ N({
1962
+ __name: "image",
1963
+ props: { path: String },
1964
+ setup(t) {
1965
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path));
1966
+ return (s, i) => o.value && o.value.options ? (d(), S("img", {
1020
1967
  key: 0,
1021
- style: ee(l.value.options)
1022
- }, null, 4)) : D("", !0);
1968
+ src: "",
1969
+ style: J({ width: o.value.options.width + "px", height: o.value.options.height + "px" })
1970
+ }, null, 4)) : M("", !0);
1023
1971
  }
1024
- }), ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1972
+ }), wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1025
1973
  __proto__: null,
1026
- default: so
1027
- }, Symbol.toStringTag, { value: "Module" })), co = /* @__PURE__ */ E({
1974
+ default: bn
1975
+ }, Symbol.toStringTag, { value: "Module" })), xn = /* @__PURE__ */ N({
1028
1976
  __name: "input",
1029
- props: Q(),
1030
- setup(o) {
1031
- const t = o;
1032
- return (l, e) => {
1033
- var n;
1034
- return r(), x("div", null, " 404 - " + M((n = t.field) == null ? void 0 : n.name), 1);
1977
+ props: { path: String },
1978
+ setup(t) {
1979
+ const e = t, n = te(), o = P(() => n.getWidget(e.path)), s = P(() => n.models), { disabled: i, options: a } = rt(o);
1980
+ return (u, l) => {
1981
+ const r = y("a-input"), c = y("a-form-item");
1982
+ return o.value && o.value.model ? (d(), B(c, {
1983
+ key: 0,
1984
+ field: o.value.mode,
1985
+ label: o.value.name
1986
+ }, {
1987
+ default: g(() => [
1988
+ _(r, {
1989
+ "model-value": s.value[o.value.model],
1990
+ type: "text",
1991
+ disabled: v(i),
1992
+ placeholder: v(a).placeholder,
1993
+ style: J({ width: v(a).width }),
1994
+ maxlength: v(a).maxLength,
1995
+ "show-word-limit": v(a).showWordLimit
1996
+ }, null, 8, ["model-value", "disabled", "placeholder", "style", "maxlength", "show-word-limit"])
1997
+ ]),
1998
+ _: 1
1999
+ }, 8, ["field", "label"])) : M("", !0);
1035
2000
  };
1036
2001
  }
1037
- }), uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2002
+ }), Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1038
2003
  __proto__: null,
1039
- default: co
1040
- }, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ E({
2004
+ default: xn
2005
+ }, Symbol.toStringTag, { value: "Module" })), En = /* @__PURE__ */ N({
2006
+ __name: "subform",
2007
+ props: { path: String },
2008
+ setup(t) {
2009
+ const e = t, { getWidget: n, setPathToData: o } = te(), s = P(() => n(e.path));
2010
+ function i(u, l, r) {
2011
+ var c;
2012
+ return ((c = r == null ? void 0 : r.dataset) == null ? void 0 : c.category) === "basic";
2013
+ }
2014
+ function a(u) {
2015
+ var c;
2016
+ if (!u || !e.path || !((c = s.value) != null && c.children))
2017
+ return;
2018
+ const l = u.newIndex, r = ye(s.value.children);
2019
+ r[l] = lt(r[l], { options: {} }), o(e.path, { ...s.value, children: r });
2020
+ }
2021
+ return (u, l) => {
2022
+ const r = y("a-card");
2023
+ return s.value && s.value.children ? (d(), B(r, {
2024
+ key: 0,
2025
+ title: s.value.name,
2026
+ size: "small"
2027
+ }, {
2028
+ default: g(() => [
2029
+ _(v(Pe), it({
2030
+ list: s.value.children,
2031
+ class: "fe-form-widget-list",
2032
+ style: { display: "flex" },
2033
+ group: { name: "orchisky", put: i }
2034
+ }, v(ut), { onAdd: a }), {
2035
+ item: g(({ element: c, index: h }) => [
2036
+ c && c.key ? (d(), B(Me, {
2037
+ key: 0,
2038
+ path: v(we)(e.path, h)
2039
+ }, null, 8, ["path"])) : M("", !0)
2040
+ ]),
2041
+ footer: g(() => []),
2042
+ _: 1
2043
+ }, 16, ["list", "group"])
2044
+ ]),
2045
+ _: 1
2046
+ }, 8, ["title"])) : M("", !0);
2047
+ };
2048
+ }
2049
+ }), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2050
+ __proto__: null,
2051
+ default: En
2052
+ }, Symbol.toStringTag, { value: "Module" })), Dn = /* @__PURE__ */ N({
2053
+ __name: "text",
2054
+ props: { path: String },
2055
+ setup(t) {
2056
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path));
2057
+ return (s, i) => {
2058
+ var a;
2059
+ return d(), S("div", null, Y((a = o.value) == null ? void 0 : a.name), 1);
2060
+ };
2061
+ }
2062
+ }), Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2063
+ __proto__: null,
2064
+ default: Dn
2065
+ }, Symbol.toStringTag, { value: "Module" })), Fn = /* @__PURE__ */ N({
2066
+ __name: "textarea",
2067
+ props: { path: String },
2068
+ setup(t) {
2069
+ const e = t, n = te(), o = P(() => n.getWidget(e.path)), s = P(() => n.models), { disabled: i, options: a } = rt(o);
2070
+ return (u, l) => {
2071
+ const r = y("a-textarea"), c = y("a-form-item");
2072
+ return o.value && o.value.model ? (d(), B(c, {
2073
+ key: 0,
2074
+ field: o.value.mode,
2075
+ label: o.value.name
2076
+ }, {
2077
+ default: g(() => [
2078
+ _(r, {
2079
+ "model-value": s.value[o.value.model],
2080
+ type: "text",
2081
+ disabled: v(i),
2082
+ placeholder: v(a).placeholder,
2083
+ style: J({ width: v(a).width }),
2084
+ maxlength: v(a).maxLength,
2085
+ "show-word-limit": v(a).showWordLimit
2086
+ }, null, 8, ["model-value", "disabled", "placeholder", "style", "maxlength", "show-word-limit"])
2087
+ ]),
2088
+ _: 1
2089
+ }, 8, ["field", "label"])) : M("", !0);
2090
+ };
2091
+ }
2092
+ }), $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2093
+ __proto__: null,
2094
+ default: Fn
2095
+ }, Symbol.toStringTag, { value: "Module" })), Tt = /* @__PURE__ */ N({
1041
2096
  __name: "unknown",
1042
- props: Q(),
1043
- setup(o) {
1044
- const t = o;
1045
- return (l, e) => {
1046
- var n, i;
1047
- return r(), x("div", null, " 404 - " + M((n = t.field) == null ? void 0 : n.name) + " / " + M((i = t.field) == null ? void 0 : i.type), 1);
2097
+ props: { path: String },
2098
+ setup(t) {
2099
+ const e = t, { getWidget: n } = te(), o = P(() => n(e.path));
2100
+ return (s, i) => {
2101
+ var a;
2102
+ return d(), S("div", null, " 404 - " + Y((a = o.value) == null ? void 0 : a.name), 1);
1048
2103
  };
1049
2104
  }
1050
- }), po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2105
+ }), On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1051
2106
  __proto__: null,
1052
- default: ot
1053
- }, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.assign({ "./barcode.vue": eo, "./card.vue": oo, "./col.vue": lo, "./grid.vue": ao, "./hline.vue": ro, "./input.vue": uo, "./qrcode.vue": Jt, "./unknown.vue": po });
1054
- function fo(o) {
1055
- const t = Object.keys(je).find((l) => l.indexOf(`${o}.vue`) !== -1);
1056
- return t && je[t] ? je[t].default : ot;
2107
+ default: Tt
2108
+ }, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({ "./barcode.vue": dn, "./card.vue": pn, "./col.vue": _n, "./grid.vue": mn, "./hline.vue": yn, "./image.vue": wn, "./input.vue": Cn, "./qrcode.vue": rn, "./subform.vue": kn, "./text.vue": Sn, "./textarea.vue": $n, "./unknown.vue": On });
2109
+ function Bn(t) {
2110
+ const e = Object.keys(Xe).find((n) => n.indexOf(`${t}.vue`) !== -1);
2111
+ return e && Xe[e] ? Xe[e].default : Tt;
1057
2112
  }
1058
- const _o = ["data-type", "data-category", "data-path"], ho = {
2113
+ const An = ["data-type", "data-category", "data-path"], Tn = {
1059
2114
  key: 0,
1060
2115
  class: "fe-form-widget-tool"
1061
- }, go = { class: "fe-form-widget-tool-btn" }, vo = { class: "fe-form-widget-tool-rb" }, $e = /* @__PURE__ */ E({
2116
+ }, jn = {
2117
+ key: 0,
2118
+ class: "fe-form-widget-tool-btn"
2119
+ }, Pn = { class: "fe-form-widget-tool-rb" }, Me = /* @__PURE__ */ N({
1062
2120
  __name: "widget-item",
1063
- props: Q(),
1064
- setup(o) {
1065
- const t = o;
2121
+ props: { path: String },
2122
+ setup(t) {
2123
+ const e = t, n = te(), { onCopy: o, onDelete: s, onSelected: i } = n, a = P(() => n.getWidget(e.path)), u = P(() => n.selectPath);
1066
2124
  function l() {
1067
- var a, c;
1068
- if (t.path && ((a = t.field) == null ? void 0 : a.category) === "child" && ((c = t.field) == null ? void 0 : c.children)) {
1069
- const [u] = De(t.path);
1070
- return se(t.data, u).length > 1;
2125
+ var p;
2126
+ return ((p = a.value) == null ? void 0 : p.category) === "sub";
2127
+ }
2128
+ function r() {
2129
+ var p;
2130
+ if (e.path && l() && ((p = a.value) == null ? void 0 : p.children)) {
2131
+ const [f] = Bt(e.path);
2132
+ return n.getPathToData(f).length > 1;
1071
2133
  }
1072
2134
  return !0;
1073
2135
  }
1074
- function e() {
1075
- return t.selectedPath && t.selectedPath === t.path;
1076
- }
1077
- function n() {
1078
- K.emit("widget(path:selected)", t.path);
2136
+ function c() {
2137
+ return e.path && e.path === u.value;
1079
2138
  }
1080
- function i() {
1081
- return t.field.options ? t.field.fixed ? {
2139
+ function h() {
2140
+ const p = a.value;
2141
+ return !(p != null && p.options) || !p.fixed ? {} : {
1082
2142
  position: "absolute",
1083
- width: t.field.options.width,
1084
- height: t.field.options.height,
1085
- left: t.field.options.left,
1086
- top: t.field.options.top,
1087
- zIndex: e() ? "9" : "1"
1088
- } : {} : {};
2143
+ width: p.options.width,
2144
+ height: p.options.height,
2145
+ left: p.options.left,
2146
+ top: p.options.top,
2147
+ zIndex: c() ? "9" : "1"
2148
+ };
1089
2149
  }
1090
- return (a, c) => {
1091
- const u = m("icon-drag-dot-vertical"), C = m("icon-copy"), $ = m("icon-delete");
1092
- return r(), x("div", {
1093
- class: _e(["fe-form-widget-item fe-cl", { "fe-form-widget-item-fixed": t.field.fixed }]),
1094
- "data-type": t.field.type,
1095
- "data-category": t.field.category,
1096
- "data-path": a.$props.path
2150
+ return (p, f) => {
2151
+ const F = y("icon-drag-dot-vertical"), z = y("icon-copy"), H = y("icon-delete");
2152
+ return a.value ? (d(), S("div", {
2153
+ key: 0,
2154
+ class: ke(["fe-form-widget-item fe-cl", { "fe-form-widget-item-fixed": a.value.fixed }]),
2155
+ "data-type": a.value.type,
2156
+ "data-category": a.value.category,
2157
+ "data-path": e.path
1097
2158
  }, [
1098
- y("div", {
1099
- class: _e(["fe-form-widget-view", { "is-selected": e(), "fe-form-widget-view-fixed": t.field.fixed }]),
1100
- style: ee(i()),
1101
- onClick: c[2] || (c[2] = kt((b) => n(), ["stop"]))
2159
+ O("div", {
2160
+ class: ke(["fe-form-widget-view", { "is-selected": c(), "fe-form-widget-view-fixed": a.value.fixed }]),
2161
+ style: J(h()),
2162
+ onClick: f[2] || (f[2] = uo((G) => v(i)(e.path), ["stop"]))
1102
2163
  }, [
1103
- e() ? (r(), x("div", ho, [
1104
- y("div", {
1105
- class: _e(["fe-form-widget-tool-lt", { "fe-moving": !g(He)(t.field) }])
2164
+ c() ? (d(), S("div", Tn, [
2165
+ O("div", {
2166
+ class: ke(["fe-form-widget-tool-lt", { "fe-moving": !l() }])
1106
2167
  }, [
1107
- y("span", go, [
1108
- g(He)(t.field) ? D("", !0) : (r(), R(u, { key: 0 })),
1109
- q(" " + M(t.field.name), 1)
1110
- ])
2168
+ l() ? M("", !0) : (d(), S("span", jn, [
2169
+ _(F)
2170
+ ]))
1111
2171
  ], 2),
1112
- y("div", vo, [
1113
- y("span", {
2172
+ O("div", Pn, [
2173
+ O("span", {
1114
2174
  class: "fe-form-widget-tool-btn",
1115
- onClick: c[0] || (c[0] = (b) => g(K).emit("widget(path:copy)", t.path))
2175
+ onClick: f[0] || (f[0] = (G) => v(o)(e.path))
1116
2176
  }, [
1117
- p(C)
2177
+ _(z)
1118
2178
  ]),
1119
- l() ? (r(), x("span", {
2179
+ r() ? (d(), S("span", {
1120
2180
  key: 0,
1121
2181
  class: "fe-form-widget-tool-btn",
1122
- onClick: c[1] || (c[1] = (b) => g(K).emit("widget(path:delete)", t.path))
2182
+ onClick: f[1] || (f[1] = (G) => v(s)(e.path))
1123
2183
  }, [
1124
- p($)
1125
- ])) : D("", !0)
2184
+ _(H)
2185
+ ])) : M("", !0)
1126
2186
  ])
1127
- ])) : D("", !0),
1128
- (r(), R(xe(g(fo)(t.field.type)), ke(Ae(t)), null, 16))
2187
+ ])) : M("", !0),
2188
+ (d(), B(Be(v(Bn)(a.value.type)), Te(je(e)), null, 16))
1129
2189
  ], 6)
1130
- ], 10, _o);
2190
+ ], 10, An)) : M("", !0);
2191
+ };
2192
+ }
2193
+ });
2194
+ function xe() {
2195
+ return {
2196
+ data: {
2197
+ type: Object,
2198
+ default: () => ({ children: [] })
2199
+ },
2200
+ field: {
2201
+ type: Object,
2202
+ default: null
2203
+ },
2204
+ path: String
2205
+ };
2206
+ }
2207
+ function Mn(t) {
2208
+ return {
2209
+ config: t.data.config,
2210
+ children: t.data.children
2211
+ };
2212
+ }
2213
+ const Nn = ["src"], jt = /* @__PURE__ */ N({
2214
+ __name: "qrcode",
2215
+ props: xe(),
2216
+ setup(t) {
2217
+ const e = t, n = P(() => e.field), o = document.createElement("canvas");
2218
+ o.height = 1, o.width = 1;
2219
+ function s() {
2220
+ var a, u, l, r;
2221
+ const i = (u = (a = n.value) == null ? void 0 : a.options) != null ? u : {};
2222
+ return i.bcid ? (Dt.toCanvas(o, {
2223
+ bcid: i.bcid,
2224
+ text: (l = i.defaultValue) != null ? l : "10000",
2225
+ height: i.height,
2226
+ width: i.width,
2227
+ padding: (r = i.padding) != null ? r : 0,
2228
+ eclevel: "H"
2229
+ }), o.toDataURL()) : "";
2230
+ }
2231
+ return (i, a) => n.value && n.value.options ? (d(), S("img", {
2232
+ key: 0,
2233
+ src: s(),
2234
+ style: J({ width: n.value.options.width + "px", height: n.value.options.height + "px" }),
2235
+ draggable: "false"
2236
+ }, null, 12, Nn)) : M("", !0);
2237
+ }
2238
+ }), Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2239
+ __proto__: null,
2240
+ default: jt
2241
+ }, Symbol.toStringTag, { value: "Module" })), zn = {
2242
+ __name: "barcode",
2243
+ setup(t) {
2244
+ return (e, n) => (d(), B(jt, Te(je(e.$props)), null, 16));
2245
+ }
2246
+ }, Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2247
+ __proto__: null,
2248
+ default: zn
2249
+ }, Symbol.toStringTag, { value: "Module" })), In = /* @__PURE__ */ N({
2250
+ __name: "hline",
2251
+ props: xe(),
2252
+ setup(t) {
2253
+ const e = t, n = P(() => e.field);
2254
+ return (o, s) => n.value && n.value.options ? (d(), S("div", {
2255
+ key: 0,
2256
+ style: J(n.value.options)
2257
+ }, null, 4)) : M("", !0);
2258
+ }
2259
+ }), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2260
+ __proto__: null,
2261
+ default: In
2262
+ }, Symbol.toStringTag, { value: "Module" })), Ln = /* @__PURE__ */ N({
2263
+ __name: "image",
2264
+ props: xe(),
2265
+ setup(t) {
2266
+ const e = t, n = P(() => e.field);
2267
+ return (o, s) => n.value && n.value.options ? (d(), S("img", {
2268
+ key: 0,
2269
+ src: "",
2270
+ style: J({ width: n.value.options.width + "px", height: n.value.options.height + "px" })
2271
+ }, null, 4)) : M("", !0);
2272
+ }
2273
+ }), Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2274
+ __proto__: null,
2275
+ default: Ln
2276
+ }, Symbol.toStringTag, { value: "Module" })), Hn = /* @__PURE__ */ N({
2277
+ __name: "text",
2278
+ props: xe(),
2279
+ setup(t) {
2280
+ const e = t, n = P(() => e.field);
2281
+ return (o, s) => {
2282
+ var i;
2283
+ return d(), S("div", null, Y((i = n.value) == null ? void 0 : i.name), 1);
1131
2284
  };
1132
2285
  }
2286
+ }), qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2287
+ __proto__: null,
2288
+ default: Hn
2289
+ }, Symbol.toStringTag, { value: "Module" })), Pt = /* @__PURE__ */ N({
2290
+ __name: "unknown",
2291
+ props: xe(),
2292
+ setup(t) {
2293
+ const e = t;
2294
+ return (n, o) => {
2295
+ var s;
2296
+ return d(), S("div", null, " 404 - " + Y((s = e.field) == null ? void 0 : s.name), 1);
2297
+ };
2298
+ }
2299
+ }), Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2300
+ __proto__: null,
2301
+ default: Pt
2302
+ }, Symbol.toStringTag, { value: "Module" })), Je = /* @__PURE__ */ Object.assign({ "./barcode.vue": Wn, "./hline.vue": Vn, "./image.vue": Un, "./qrcode.vue": Rn, "./text.vue": qn, "./unknown.vue": Kn });
2303
+ function Yn(t) {
2304
+ const e = Object.keys(Je).find((n) => n.indexOf(`${t}.vue`) !== -1);
2305
+ return e && Je[e] ? Je[e].default : Pt;
2306
+ }
2307
+ const Xn = /* @__PURE__ */ N({
2308
+ __name: "widget-item",
2309
+ props: xe(),
2310
+ setup(t) {
2311
+ const e = t;
2312
+ function n() {
2313
+ return { "fe-form-widget-div": !e.field.fixed };
2314
+ }
2315
+ function o() {
2316
+ const { field: s } = e;
2317
+ return s != null && s.options ? s.fixed ? {
2318
+ position: "absolute",
2319
+ width: s.options.width,
2320
+ height: s.options.height,
2321
+ left: s.options.left,
2322
+ top: s.options.top
2323
+ } : {} : {};
2324
+ }
2325
+ return (s, i) => e.field ? (d(), S("div", {
2326
+ key: 0,
2327
+ class: ke(n),
2328
+ style: J(o())
2329
+ }, [
2330
+ (d(), B(Be(v(Yn)(e.field.type)), Te(je(e)), null, 16))
2331
+ ], 4)) : M("", !0);
2332
+ }
1133
2333
  });
1134
- const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" }, bo = {
2334
+ const Jn = { class: "u-main u-h" }, Gn = { class: "fe-form-widget-list" }, Qn = /* @__PURE__ */ N({
2335
+ __name: "index",
2336
+ props: xe(),
2337
+ setup(t) {
2338
+ const e = t, { config: n, children: o } = Mn(e);
2339
+ return (s, i) => {
2340
+ const a = y("a-form");
2341
+ return d(), S("div", Jn, [
2342
+ _(a, {
2343
+ model: {},
2344
+ style: { width: "100%", "min-height": "100%" }
2345
+ }, {
2346
+ default: g(() => {
2347
+ var u, l;
2348
+ return [
2349
+ O("div", {
2350
+ ref: "formRef",
2351
+ style: J([{ display: "block", height: "100%", "min-height": "0", "box-shadow": "0 0 5px rgba(0, 0, 0, 0.08)" }, { width: `${(u = v(n)) == null ? void 0 : u.width}`, height: `${(l = v(n)) == null ? void 0 : l.height}`, margin: "0 auto", overflow: "hidden" }])
2352
+ }, [
2353
+ O("div", Gn, [
2354
+ (d(!0), S(X, null, _e(v(o), (r, c) => (d(), B(Xn, {
2355
+ key: c,
2356
+ data: e.data,
2357
+ field: r,
2358
+ path: v(we)(null, c)
2359
+ }, null, 8, ["data", "field", "path"]))), 128))
2360
+ ])
2361
+ ], 4)
2362
+ ];
2363
+ }),
2364
+ _: 1
2365
+ })
2366
+ ]);
2367
+ };
2368
+ }
2369
+ }), Zn = { class: "u-h u-card" }, es = { class: "u-card__hd u-aside__hd" }, ts = {
1135
2370
  class: "u-flex",
1136
2371
  style: { width: "100%", padding: "0 8px" }
1137
- }, wo = { class: "u-flex__item" }, xo = { class: "u-main fe-layout-main" }, ko = { class: "fe-layout-footer" }, Co = { class: "fe-layout-footer-content" }, $o = /* @__PURE__ */ E({
2372
+ }, os = { class: "u-flex__item" }, ns = { class: "u-main u-aside__bdf" }, ss = { class: "u-aside__ft" }, is = { class: "u-aside__ft-content" }, as = /* @__PURE__ */ N({
1138
2373
  __name: "main",
1139
- props: Q(),
1140
- emits: ["update:data", "update:selectedPath", "reset"],
1141
- setup(o, { emit: t }) {
1142
- const l = t, e = o, { config: n } = et(e), i = B(Ht(e)), a = B({
1143
- get: () => e.data,
1144
- set: (_) => l("update:data", _)
1145
- });
1146
- function c(_, v) {
1147
- const k = te(e.data.children);
1148
- k[_] = v, l("update:data", { ...e.data, children: k });
1149
- }
1150
- function u(_) {
1151
- l("update:selectedPath", _);
1152
- }
1153
- K.on("widget(reset)", () => l("reset")), K.on("widget(path:selected)", u), K.on("widget(path:update)", (_) => {
1154
- _[0] && (a.value = pe(e.data, _[0], _[1]));
1155
- }), K.on("widget(config)", (_) => {
1156
- e.selectedPath && (a.value = pe(e.data, `${e.selectedPath}.options`, _));
1157
- }), K.on("widget(selectedPath:options)", (_) => {
1158
- e.selectedPath && (a.value = pe(e.data, `${e.selectedPath}.options`, _));
1159
- }), K.on("widget(path:copy)", (_) => {
1160
- if (!_)
1161
- return;
1162
- const [v, k] = De(_), j = se(e.data, v), z = Ye(j[k], { options: {} });
1163
- j.splice(k, 0, z), a.value = pe(e.data, v, j);
1164
- }), K.on("widget(path:delete)", (_) => {
1165
- if (!_)
1166
- return;
1167
- const [v, k] = De(_), j = se(e.data, v);
1168
- j.splice(k, 1), u(""), pe(e.data, v, j);
1169
- });
1170
- const C = V(null);
1171
- function $(_) {
1172
- const { originalEvent: v } = _, { clientX: k, clientY: j } = v, { top: z, left: L } = C.value.getBoundingClientRect();
1173
- return { left: `${k - L}px`, top: `${j - z}px` };
2374
+ setup(t) {
2375
+ const [e, n] = zo({ visible: !1 }), o = te(), { onSelected: s, onReset: i, onUpdateConfig: a, toJson: u } = o, l = P(() => o.children), r = P(() => o.config), c = P(() => o.models), h = [];
2376
+ function p(T) {
2377
+ T === "A4" && (a("width", "210mm"), a("height", "297mm")), T === "PC" && (a("width", "1920px"), a("height", "1080px"));
2378
+ }
2379
+ function f(T, E) {
2380
+ const $ = we(null, T);
2381
+ o.setPathToData($, E);
1174
2382
  }
1175
- function b(_) {
1176
- if (!_)
2383
+ const F = U(null);
2384
+ function z(T) {
2385
+ const { originalEvent: E } = T, { clientX: $, clientY: j } = E, { top: x, left: oe } = F.value.getBoundingClientRect();
2386
+ return { left: `${$ - oe}px`, top: `${j - x}px` };
2387
+ }
2388
+ function H(T) {
2389
+ if (!T)
1177
2390
  return;
1178
- const v = _.newIndex, k = te(e.data.children);
1179
- k[v] = Be(k[v], { options: $(_) }), k[v].children && (k[v] = {
1180
- ...k[v],
1181
- children: te(k[v].children)
1182
- }), u(`children[${v}]`), c(v, k[v]);
1183
- }
1184
- function S(_) {
1185
- if (!_)
2391
+ const E = T.newIndex, $ = ye(l.value);
2392
+ $[E] = lt($[E], { options: z(T) }), $[E].cen && ($[E] = {
2393
+ ...$[E],
2394
+ cen: ye($[E].cen)
2395
+ }), s(`children[${E}]`), f(E, $[E]);
2396
+ }
2397
+ function G(T) {
2398
+ if (!T)
1186
2399
  return;
1187
- const v = _.newIndex, k = te(e.data.children);
1188
- k[v].options = {
1189
- ...k[v].options,
1190
- ...$(_)
1191
- }, u(`children[${v}]`), c(v, k[v]);
1192
- }
1193
- return (_, v) => {
1194
- const k = m("a-button"), j = m("a-space"), z = m("icon-save"), L = m("icon-eye"), J = m("icon-eraser"), ge = m("icon-right"), ce = m("a-link"), Z = m("a-breadcrumb-item"), de = m("a-breadcrumb");
1195
- return r(), x("div", mo, [
1196
- y("div", yo, [
1197
- y("div", bo, [
1198
- y("div", wo, [
1199
- p(j, { size: "mini" }, {
1200
- default: f(() => [
1201
- p(k, { size: "mini" }, {
1202
- default: f(() => [
1203
- q("PC")
2400
+ const E = T.newIndex, $ = ye(l.value);
2401
+ $[E].options = {
2402
+ ...$[E].options,
2403
+ ...z(T)
2404
+ }, s(`children[${E}]`), f(E, $[E]);
2405
+ }
2406
+ function fe() {
2407
+ un.alert(JSON.stringify(u()));
2408
+ }
2409
+ return (T, E) => {
2410
+ const $ = y("a-button"), j = y("a-space"), x = y("icon-save"), oe = y("icon-eye"), Z = y("icon-eraser"), C = y("a-form"), b = y("icon-right"), R = y("a-link"), L = y("a-breadcrumb-item"), ie = y("a-breadcrumb"), De = y("a-drawer");
2411
+ return d(), S("div", Zn, [
2412
+ O("div", es, [
2413
+ O("div", ts, [
2414
+ O("div", os, [
2415
+ _(j, { size: "mini" }, {
2416
+ default: g(() => [
2417
+ _($, {
2418
+ size: "mini",
2419
+ onClick: E[0] || (E[0] = (K) => p("PC"))
2420
+ }, {
2421
+ default: g(() => [
2422
+ le("PC")
1204
2423
  ]),
1205
2424
  _: 1
1206
2425
  }),
1207
- p(k, { size: "mini" }, {
1208
- default: f(() => [
1209
- q("A4")
2426
+ _($, {
2427
+ size: "mini",
2428
+ onClick: E[1] || (E[1] = (K) => p("A4"))
2429
+ }, {
2430
+ default: g(() => [
2431
+ le("A4")
1210
2432
  ]),
1211
2433
  _: 1
1212
2434
  })
@@ -1214,35 +2436,36 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1214
2436
  _: 1
1215
2437
  })
1216
2438
  ]),
1217
- y("div", null, [
1218
- p(j, { size: "mini" }, {
1219
- default: f(() => [
1220
- p(k, {
2439
+ O("div", null, [
2440
+ _(j, { size: "mini" }, {
2441
+ default: g(() => [
2442
+ _($, {
1221
2443
  size: "mini",
1222
2444
  title: "\u4FDD\u5B58",
1223
- onClick: v[0] || (v[0] = (W) => g(K).emit("widget(click)", ["save", a.value]))
2445
+ onClick: E[2] || (E[2] = (K) => fe())
1224
2446
  }, {
1225
- icon: f(() => [
1226
- p(z)
2447
+ icon: g(() => [
2448
+ _(x)
1227
2449
  ]),
1228
2450
  _: 1
1229
2451
  }),
1230
- p(k, {
2452
+ _($, {
1231
2453
  size: "mini",
1232
- title: "\u9884\u89C8"
2454
+ title: "\u9884\u89C8",
2455
+ onClick: E[3] || (E[3] = (K) => v(n)({ visible: !0 }))
1233
2456
  }, {
1234
- icon: f(() => [
1235
- p(L)
2457
+ icon: g(() => [
2458
+ _(oe)
1236
2459
  ]),
1237
2460
  _: 1
1238
2461
  }),
1239
- p(k, {
2462
+ _($, {
1240
2463
  size: "mini",
1241
2464
  title: "\u6E05\u7A7A",
1242
- onClick: v[1] || (v[1] = (W) => l("reset"))
2465
+ onClick: E[4] || (E[4] = (K) => v(i)())
1243
2466
  }, {
1244
- icon: f(() => [
1245
- p(J)
2467
+ icon: g(() => [
2468
+ _(Z)
1246
2469
  ]),
1247
2470
  _: 1
1248
2471
  })
@@ -1252,86 +2475,105 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1252
2475
  ])
1253
2476
  ])
1254
2477
  ]),
1255
- y("div", xo, [
1256
- y("div", {
1257
- ref_key: "formRef",
1258
- ref: C,
1259
- class: "fe-form-page",
1260
- style: ee({ width: `${g(n).width}`, height: `${g(n).height}`, margin: "0 auto" })
1261
- }, [
1262
- p(g(Ce), Me({
1263
- class: "fe-form-widget-list",
1264
- list: a.value.children,
1265
- group: { name: "orchisky", put: !0 }
1266
- }, g(Xe), {
1267
- onUpdate: g(Gt),
1268
- onAdd: b,
1269
- onEnd: S
1270
- }), {
1271
- item: f(({ element: W, index: N }) => [
1272
- W && W.key ? (r(), R($e, {
1273
- key: 0,
1274
- data: e.data,
1275
- "selected-path": e.selectedPath,
1276
- field: W,
1277
- "field-index": N,
1278
- path: g(he)(null, N)
1279
- }, null, 8, ["data", "selected-path", "field", "field-index", "path"])) : D("", !0)
1280
- ]),
1281
- footer: f(() => [
1282
- ae(_.$slots, "default")
1283
- ]),
1284
- _: 3
1285
- }, 16, ["list", "onUpdate"])
1286
- ], 4)
2478
+ O("div", ns, [
2479
+ _(C, {
2480
+ model: c.value,
2481
+ style: { width: "100%", "min-height": "100%" }
2482
+ }, {
2483
+ default: g(() => [
2484
+ O("div", {
2485
+ ref_key: "formRef",
2486
+ ref: F,
2487
+ style: J([{ display: "block", height: "100%", "min-height": "0", "box-shadow": "0 0 5px rgba(0, 0, 0, 0.08)" }, { width: `${r.value.width}`, height: `${r.value.height}`, margin: "0 auto" }])
2488
+ }, [
2489
+ _(v(Pe), it({
2490
+ class: "fe-form-widget-list",
2491
+ list: l.value,
2492
+ group: { name: "orchisky", put: !0 }
2493
+ }, v(ut), {
2494
+ onUpdate: v(Ro),
2495
+ onAdd: H,
2496
+ onEnd: G
2497
+ }), {
2498
+ item: g(({ element: K, index: re }) => [
2499
+ K && K.key ? (d(), B(Me, {
2500
+ key: 0,
2501
+ path: v(we)(null, re),
2502
+ preview: !1
2503
+ }, null, 8, ["path"])) : M("", !0)
2504
+ ]),
2505
+ footer: g(() => [
2506
+ ve(T.$slots, "default")
2507
+ ]),
2508
+ _: 3
2509
+ }, 16, ["list", "onUpdate"])
2510
+ ], 4)
2511
+ ]),
2512
+ _: 3
2513
+ }, 8, ["model"])
1287
2514
  ]),
1288
- y("div", ko, [
1289
- y("div", Co, [
1290
- p(de, null, {
1291
- separator: f(() => [
1292
- p(ge)
2515
+ O("div", ss, [
2516
+ O("div", is, [
2517
+ _(ie, null, {
2518
+ separator: g(() => [
2519
+ _(b)
2520
+ ]),
2521
+ default: g(() => [
2522
+ _(L, null, {
2523
+ default: g(() => [
2524
+ _(R, null, {
2525
+ default: g(() => [
2526
+ le("\u7ED3\u6784\u5BFC\u822A")
2527
+ ]),
2528
+ _: 1
2529
+ })
2530
+ ]),
2531
+ _: 1
2532
+ }),
2533
+ h != null && h.length ? (d(), S(X, { key: 0 }, _e(h, (K, re) => _(L, { key: re }, {
2534
+ default: g(() => [
2535
+ K ? (d(), B(R, {
2536
+ key: 0,
2537
+ onClick: (V) => v(s)(K.path)
2538
+ }, {
2539
+ default: g(() => [
2540
+ le(Y(K.label), 1)
2541
+ ]),
2542
+ _: 2
2543
+ }, 1032, ["onClick"])) : M("", !0)
2544
+ ]),
2545
+ _: 2
2546
+ }, 1024)), 64)) : M("", !0)
1293
2547
  ]),
1294
- default: f(() => {
1295
- var W;
1296
- return [
1297
- p(Z, null, {
1298
- default: f(() => [
1299
- p(ce, null, {
1300
- default: f(() => [
1301
- q("\u7ED3\u6784\u5BFC\u822A")
1302
- ]),
1303
- _: 1
1304
- })
1305
- ]),
1306
- _: 1
1307
- }),
1308
- (W = i.value) != null && W.length ? (r(!0), x(I, { key: 0 }, oe(i.value, (N, ve) => (r(), R(Z, { key: ve }, {
1309
- default: f(() => [
1310
- N ? (r(), R(ce, {
1311
- key: 0,
1312
- onClick: (Ke) => u(N.path)
1313
- }, {
1314
- default: f(() => [
1315
- q(M(N.label), 1)
1316
- ]),
1317
- _: 2
1318
- }, 1032, ["onClick"])) : D("", !0)
1319
- ]),
1320
- _: 2
1321
- }, 1024))), 128)) : D("", !0)
1322
- ];
1323
- }),
1324
2548
  _: 1
1325
2549
  })
1326
2550
  ])
1327
- ])
2551
+ ]),
2552
+ _(De, {
2553
+ visible: v(e).visible,
2554
+ "onUpdate:visible": E[5] || (E[5] = (K) => v(e).visible = K),
2555
+ placement: "bottom",
2556
+ height: "80%",
2557
+ title: "\u9884\u89C8",
2558
+ footer: !1,
2559
+ class: "fe-form-drawer",
2560
+ "unmount-on-close": ""
2561
+ }, {
2562
+ default: g(() => [
2563
+ _(Qn, {
2564
+ data: v(u)()
2565
+ }, null, 8, ["data"])
2566
+ ]),
2567
+ _: 1
2568
+ }, 8, ["visible"])
1328
2569
  ]);
1329
2570
  };
1330
2571
  }
1331
- }), So = { class: "fe-form-side" }, Ro = { class: "u-card u-h" }, Oo = { class: "u-card__hd fe-layout-head" }, Po = {
2572
+ });
2573
+ const us = { class: "u-card u-h" }, ls = { class: "u-card__hd u-aside__hd" }, rs = {
1332
2574
  class: "u-tabs u-tabs--small",
1333
2575
  style: { border: "0" }
1334
- }, zo = ["onClick"], jo = { class: "u-card__bd fe-cl fe-layout-body" }, nt = /* @__PURE__ */ E({
2576
+ }, cs = ["onClick"], ds = { class: "u-card__bd fe-cl u-aside__bd" }, Mt = /* @__PURE__ */ N({
1335
2577
  __name: "tabs",
1336
2578
  props: {
1337
2579
  list: Array,
@@ -1340,37 +2582,40 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1340
2582
  default: 0
1341
2583
  }
1342
2584
  },
1343
- setup(o) {
1344
- const t = o, l = V(t.index);
1345
- function e(i) {
1346
- return { "is-active": i === l.value };
1347
- }
1348
- function n(i) {
1349
- l.value = i;
1350
- }
1351
- return (i, a) => (r(), x("div", So, [
1352
- y("div", Ro, [
1353
- y("div", Oo, [
1354
- y("div", Po, [
1355
- (r(!0), x(I, null, oe(t.list, (c, u) => (r(), x("div", {
1356
- key: u,
1357
- class: "u-tabs__item",
1358
- onClick: (C) => n(u)
1359
- }, [
1360
- y("div", {
1361
- class: _e(["u-tabs__link", e(u)])
1362
- }, M(c), 3)
1363
- ], 8, zo))), 128))
1364
- ])
1365
- ]),
1366
- y("div", jo, [
1367
- ae(i.$slots, "default", { index: l.value })
2585
+ setup(t) {
2586
+ const e = t, n = U(e.index);
2587
+ function o(i) {
2588
+ return { "is-active": i === n.value };
2589
+ }
2590
+ function s(i) {
2591
+ n.value = i;
2592
+ }
2593
+ return (i, a) => (d(), S("div", us, [
2594
+ O("div", ls, [
2595
+ O("div", rs, [
2596
+ (d(!0), S(X, null, _e(e.list, (u, l) => (d(), S("div", {
2597
+ key: l,
2598
+ class: "u-tabs__item",
2599
+ onClick: (r) => s(l)
2600
+ }, [
2601
+ O("div", {
2602
+ class: ke(["u-tabs__link", o(l)])
2603
+ }, Y(u), 3)
2604
+ ], 8, cs))), 128))
1368
2605
  ])
2606
+ ]),
2607
+ O("div", ds, [
2608
+ ve(i.$slots, "default", { index: n.value })
1369
2609
  ])
1370
2610
  ]));
1371
2611
  }
1372
- }), To = {
1373
- title: "\u8F85\u52A9\u63A7\u4EF6",
2612
+ }), Ct = {
2613
+ height: "px",
2614
+ width: "px",
2615
+ left: "px",
2616
+ top: "px"
2617
+ }, fs = {
2618
+ title: "\u6253\u5370-\u8F85\u52A9\u63A7\u4EF6",
1374
2619
  order: 4,
1375
2620
  children: [
1376
2621
  {
@@ -1384,6 +2629,7 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1384
2629
  borderTop: "1px solid #000"
1385
2630
  },
1386
2631
  optionsConfig: {
2632
+ ...Ct,
1387
2633
  borderTop: {
1388
2634
  show: !1
1389
2635
  }
@@ -1400,69 +2646,114 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1400
2646
  borderLeft: "1px solid #000"
1401
2647
  },
1402
2648
  optionsConfig: {
2649
+ ...Ct,
1403
2650
  borderLeft: {
1404
2651
  show: !1
1405
2652
  }
1406
2653
  }
1407
2654
  }
1408
2655
  ]
1409
- }, Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2656
+ }, ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1410
2657
  __proto__: null,
1411
- default: To
1412
- }, Symbol.toStringTag, { value: "Module" })), Do = {
1413
- title: "\u57FA\u7840\u5B57\u6BB5",
2658
+ default: fs
2659
+ }, Symbol.toStringTag, { value: "Module" })), Ge = {
2660
+ height: "px",
2661
+ width: "px",
2662
+ left: "px",
2663
+ top: "px"
2664
+ }, hs = {
2665
+ title: "\u6253\u5370-\u57FA\u7840\u5B57\u6BB5",
1414
2666
  order: 1,
1415
2667
  children: [
1416
2668
  {
1417
- type: "input",
2669
+ type: "text",
1418
2670
  name: "\u5355\u884C\u6587\u672C",
1419
- icon: "icon-text",
1420
- category: "base",
2671
+ icon: "icon-file",
1421
2672
  fixed: !0,
1422
2673
  options: {
1423
2674
  width: "120pt",
1424
2675
  height: "9.75pt",
1425
2676
  defaultValue: "1"
1426
2677
  },
1427
- optionsConfig: {
1428
- height: "input",
1429
- width: "input"
1430
- }
2678
+ optionsConfig: Ge
1431
2679
  },
1432
2680
  {
1433
- type: "textarea",
2681
+ type: "text",
1434
2682
  name: "\u591A\u884C\u6587\u672C",
1435
- icon: "icon-text",
1436
- category: "base",
2683
+ icon: "icon-file",
1437
2684
  fixed: !0,
1438
2685
  options: {
1439
2686
  width: "250pt",
1440
2687
  height: "42pt"
1441
- }
2688
+ },
2689
+ optionsConfig: Ge
1442
2690
  },
1443
2691
  {
1444
2692
  type: "image",
1445
2693
  name: "\u56FE\u7247",
1446
- icon: "icon-text",
2694
+ icon: "icon-file-image",
1447
2695
  fixed: !0,
1448
2696
  options: {
1449
2697
  width: "150pt",
1450
2698
  height: "150pt"
2699
+ },
2700
+ optionsConfig: Ge
2701
+ }
2702
+ ]
2703
+ }, _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2704
+ __proto__: null,
2705
+ default: hs
2706
+ }, Symbol.toStringTag, { value: "Module" })), gs = {
2707
+ title: "\u5E38\u7528\u63A7\u4EF6",
2708
+ order: 8,
2709
+ children: [
2710
+ {
2711
+ type: "input",
2712
+ name: "\u5355\u884C\u6587\u672C",
2713
+ category: "basic",
2714
+ icon: "icon-input",
2715
+ options: {
2716
+ defaultValue: "",
2717
+ required: !1,
2718
+ placeholder: "",
2719
+ disabled: !1
2720
+ },
2721
+ rules: []
2722
+ },
2723
+ {
2724
+ type: "textarea",
2725
+ name: "\u591A\u884C\u6587\u672C",
2726
+ category: "basic",
2727
+ icon: "icon-input",
2728
+ options: {
2729
+ defaultValue: "",
2730
+ required: !1,
2731
+ disabled: !1,
2732
+ placeholder: ""
1451
2733
  }
2734
+ },
2735
+ {
2736
+ type: "subform",
2737
+ icon: "icon-input",
2738
+ children: [],
2739
+ options: {
2740
+ customClass: "",
2741
+ labelWidth: 100
2742
+ },
2743
+ name: "\u5B50\u8868\u5355"
1452
2744
  }
1453
2745
  ]
1454
- }, Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2746
+ }, ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1455
2747
  __proto__: null,
1456
- default: Do
1457
- }, Symbol.toStringTag, { value: "Module" })), Mo = {
1458
- title: "\u6761\u5F62\u7801 ",
2748
+ default: gs
2749
+ }, Symbol.toStringTag, { value: "Module" })), vs = {
2750
+ title: "\u6253\u5370-\u6761\u5F62\u7801 ",
1459
2751
  order: 7,
1460
2752
  children: [
1461
2753
  {
1462
2754
  type: "barcode",
1463
2755
  name: "\u6761\u5F62\u7801",
1464
2756
  icon: "icon-text",
1465
- category: "base",
1466
2757
  fixed: !0,
1467
2758
  options: {
1468
2759
  width: 142,
@@ -1473,6 +2764,8 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1473
2764
  optionsConfig: {
1474
2765
  height: "number",
1475
2766
  width: "number",
2767
+ left: "px",
2768
+ top: "px",
1476
2769
  bcid: {
1477
2770
  type: "select",
1478
2771
  options: [
@@ -1490,7 +2783,6 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1490
2783
  type: "qrcode",
1491
2784
  name: "\u4E8C\u7EF4\u7801",
1492
2785
  icon: "icon-text",
1493
- category: "base",
1494
2786
  fixed: !0,
1495
2787
  options: {
1496
2788
  width: 142,
@@ -1502,6 +2794,8 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1502
2794
  height: "number",
1503
2795
  width: "number",
1504
2796
  padding: "number",
2797
+ left: "px",
2798
+ top: "px",
1505
2799
  bcid: {
1506
2800
  type: "select",
1507
2801
  options: [
@@ -1522,24 +2816,23 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1522
2816
  }
1523
2817
  }
1524
2818
  ]
1525
- }, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2819
+ }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1526
2820
  __proto__: null,
1527
- default: Mo
1528
- }, Symbol.toStringTag, { value: "Module" })), Fo = {
2821
+ default: vs
2822
+ }, Symbol.toStringTag, { value: "Module" })), bs = {
1529
2823
  title: "\u5E03\u5C40\u63A7\u4EF6",
1530
- order: 4,
2824
+ order: 8,
1531
2825
  children: [
1532
2826
  {
1533
2827
  type: "card",
1534
2828
  icon: "icon-grid",
1535
2829
  name: "\u9AD8\u7EA7\u5361\u7247",
1536
- category: "view",
2830
+ category: "parent",
1537
2831
  children: [
1538
2832
  {
1539
2833
  type: "col",
1540
2834
  name: "\u5206\u7EC4",
1541
- category: "child",
1542
- options: { span: 12 },
2835
+ category: "sub",
1543
2836
  children: []
1544
2837
  }
1545
2838
  ],
@@ -1552,19 +2845,19 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1552
2845
  type: "grid",
1553
2846
  icon: "icon-grid",
1554
2847
  name: "\u6805\u683C\u5E03\u5C40",
1555
- category: "view",
2848
+ category: "parent",
1556
2849
  children: [
1557
2850
  {
1558
2851
  type: "col",
1559
2852
  name: "\u5206\u7EC4",
1560
- category: "child",
2853
+ category: "sub",
1561
2854
  options: { span: 12 },
1562
2855
  children: []
1563
2856
  },
1564
2857
  {
1565
2858
  type: "col",
1566
2859
  name: "\u5B50\u6805\u683C",
1567
- category: "child",
2860
+ category: "sub",
1568
2861
  options: { span: 12 },
1569
2862
  children: []
1570
2863
  }
@@ -1575,27 +2868,27 @@ const mo = { class: "u-h u-card" }, yo = { class: "u-card__hd fe-layout-head" },
1575
2868
  }
1576
2869
  }
1577
2870
  ]
1578
- }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2871
+ }, ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1579
2872
  __proto__: null,
1580
- default: Fo
1581
- }, Symbol.toStringTag, { value: "Module" })), Ge = /* @__PURE__ */ Object.assign({ "./module/assist.ts": Eo, "./module/base.ts": Ao, "./module/bwip.ts": Bo, "./module/view.ts": Ko }), Fe = [];
1582
- Object.keys(Ge).forEach((o) => {
1583
- const t = Ge[o].default;
1584
- t && Fe.push(t);
2873
+ default: bs
2874
+ }, Symbol.toStringTag, { value: "Module" })), Et = /* @__PURE__ */ Object.assign({ "./module/assist.ts": ps, "./module/base.ts": _s, "./module/basic.ts": ms, "./module/bwip.ts": ys, "./module/view.ts": ws }), ct = [];
2875
+ Object.keys(Et).forEach((t) => {
2876
+ const e = Et[t].default;
2877
+ e && ct.push(e);
1585
2878
  });
1586
- Fe.sort((o, t) => o.order - t.order);
1587
- const Vo = { class: "fe-form-side-bd" }, Io = { class: "fe-form-side-bd-title" }, Uo = { class: "fe-form-side-bd-content" }, Wo = /* @__PURE__ */ E({
2879
+ ct.sort((t, e) => t.order - e.order);
2880
+ const xs = { class: "fe-form-side-bd" }, Cs = { class: "fe-form-side-bd-title" }, Es = { class: "fe-form-side-bd-content" }, ks = /* @__PURE__ */ N({
1588
2881
  __name: "side-library",
1589
- setup(o) {
1590
- return (t, l) => {
1591
- const e = m("icon-drag-arrow"), n = m("a-button");
1592
- return r(), x("div", Vo, [
1593
- (r(!0), x(I, null, oe(g(Fe), ({ title: i, children: a }, c) => (r(), x(I, { key: c }, [
1594
- y("span", Io, [
1595
- y("strong", null, M(i), 1)
2882
+ setup(t) {
2883
+ return (e, n) => {
2884
+ const o = y("icon-drag-arrow"), s = y("a-button");
2885
+ return d(), S("div", xs, [
2886
+ (d(!0), S(X, null, _e(v(ct), ({ title: i, children: a }, u) => (d(), S(X, { key: u }, [
2887
+ O("span", Cs, [
2888
+ O("strong", null, Y(i), 1)
1596
2889
  ]),
1597
- y("div", Uo, [
1598
- p(g(Ce), {
2890
+ O("div", Es, [
2891
+ _(v(Pe), {
1599
2892
  list: a,
1600
2893
  group: { name: "orchisky", pull: "clone", put: !1, animation: 300 },
1601
2894
  sort: !1,
@@ -1603,18 +2896,18 @@ const Vo = { class: "fe-form-side-bd" }, Io = { class: "fe-form-side-bd-title" }
1603
2896
  "chosen-class": "chosen",
1604
2897
  "item-key": "key"
1605
2898
  }, {
1606
- item: f(({ element: u }) => [
1607
- p(n, {
1608
- class: _e(["fe-form-side-bd-button", { "fe-ghost-fixed": u.fixed }]),
1609
- "data-type": u.type,
1610
- "data-category": u.category,
2899
+ item: g(({ element: l }) => [
2900
+ _(s, {
2901
+ class: ke(["fe-form-side-bd-button", { "fe-ghost-fixed": l.fixed }]),
2902
+ "data-type": l.type,
2903
+ "data-category": l.category,
1611
2904
  size: "mini"
1612
2905
  }, {
1613
- icon: f(() => [
1614
- p(e)
2906
+ icon: g(() => [
2907
+ _(o)
1615
2908
  ]),
1616
- default: f(() => [
1617
- q(" " + M(u.name), 1)
2909
+ default: g(() => [
2910
+ le(" " + Y(l.name), 1)
1618
2911
  ]),
1619
2912
  _: 2
1620
2913
  }, 1032, ["class", "data-type", "data-category"])
@@ -1626,96 +2919,176 @@ const Vo = { class: "fe-form-side-bd" }, Io = { class: "fe-form-side-bd-title" }
1626
2919
  ]);
1627
2920
  };
1628
2921
  }
1629
- }), No = { class: "fe-form-side" }, qo = /* @__PURE__ */ E({
2922
+ }), Ds = /* @__PURE__ */ N({
1630
2923
  __name: "side",
1631
- props: Q(),
1632
- setup(o) {
1633
- const t = o;
1634
- return (l, e) => {
1635
- const n = m("a-empty");
1636
- return r(), x("div", No, [
1637
- p(nt, { list: ["\u7EC4\u4EF6\u5E93", "\u7ED3\u6784", "\u6570\u636E"] }, {
1638
- default: f(({ index: i }) => [
1639
- i === 0 ? (r(), R(Wo, ke(Me({ key: 0 }, t)), null, 16)) : (r(), R(n, { key: 1 }))
2924
+ setup(t) {
2925
+ const e = U(!1);
2926
+ return (n, o) => {
2927
+ const s = y("a-empty"), i = y("icon-right"), a = y("icon-left"), u = y("a-button");
2928
+ return d(), S("div", {
2929
+ class: "fe-form-side u-page__side",
2930
+ style: J({ width: e.value ? "0px" : "219px" })
2931
+ }, [
2932
+ e.value ? M("", !0) : (d(), B(Mt, {
2933
+ key: 0,
2934
+ list: ["\u7EC4\u4EF6\u5E93", "\u7ED3\u6784", "\u6570\u636E"]
2935
+ }, {
2936
+ default: g(({ index: l }) => [
2937
+ l === 0 ? (d(), B(ks, { key: 0 })) : (d(), B(s, { key: 1 }))
2938
+ ]),
2939
+ _: 1
2940
+ })),
2941
+ _(u, {
2942
+ type: "secondary",
2943
+ status: "normal",
2944
+ size: "mini",
2945
+ class: "arco-btn-light u-page__arrow",
2946
+ onClick: o[0] || (o[0] = (l) => e.value = !e.value)
2947
+ }, {
2948
+ icon: g(() => [
2949
+ e.value ? (d(), B(a, { key: 1 })) : (d(), B(i, { key: 0 }))
1640
2950
  ]),
1641
2951
  _: 1
1642
2952
  })
1643
- ]);
2953
+ ], 4);
1644
2954
  };
1645
2955
  }
1646
2956
  });
1647
- const lt = /* @__PURE__ */ E({
2957
+ const Nt = /* @__PURE__ */ N({
1648
2958
  __name: "input",
1649
- props: { label: String, modelValue: [String, Number, Boolean] },
2959
+ props: { label: String, modelValue: String },
1650
2960
  emits: ["update:model-value"],
1651
- setup(o, { emit: t }) {
1652
- const l = t, e = o;
1653
- return (n, i) => {
1654
- const a = m("a-input"), c = m("a-form-item");
1655
- return r(), R(c, {
2961
+ setup(t, { emit: e }) {
2962
+ const n = e, o = t;
2963
+ return (s, i) => {
2964
+ const a = y("a-input"), u = y("a-form-item");
2965
+ return d(), B(u, {
1656
2966
  field: "name",
1657
- label: e.label
2967
+ label: o.label
1658
2968
  }, {
1659
- default: f(() => [
1660
- p(a, {
1661
- "model-value": String(e.modelValue),
2969
+ default: g(() => [
2970
+ _(a, {
2971
+ "model-value": o.modelValue,
1662
2972
  size: "mini",
1663
- "onUpdate:modelValue": i[0] || (i[0] = (u) => l("update:model-value", u))
2973
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => n("update:model-value", l))
1664
2974
  }, null, 8, ["model-value"])
1665
2975
  ]),
1666
2976
  _: 1
1667
2977
  }, 8, ["label"]);
1668
2978
  };
1669
2979
  }
1670
- }), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2980
+ }), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1671
2981
  __proto__: null,
1672
- default: lt
1673
- }, Symbol.toStringTag, { value: "Module" })), Ho = /* @__PURE__ */ E({
2982
+ default: Nt
2983
+ }, Symbol.toStringTag, { value: "Module" })), Fs = /* @__PURE__ */ N({
1674
2984
  __name: "number",
1675
2985
  props: { label: String, modelValue: [String, Number, Boolean] },
1676
2986
  emits: ["update:model-value"],
1677
- setup(o, { emit: t }) {
1678
- const l = t, e = o;
1679
- return (n, i) => {
1680
- const a = m("a-input-number"), c = m("a-form-item");
1681
- return r(), R(c, {
2987
+ setup(t, { emit: e }) {
2988
+ const n = e, o = t;
2989
+ return (s, i) => {
2990
+ const a = y("a-input-number"), u = y("a-form-item");
2991
+ return d(), B(u, {
1682
2992
  field: "name",
1683
- label: e.label
2993
+ label: o.label
1684
2994
  }, {
1685
- default: f(() => [
1686
- p(a, {
1687
- "model-value": Number(e.modelValue),
2995
+ default: g(() => [
2996
+ _(a, {
2997
+ "model-value": Number(o.modelValue),
1688
2998
  size: "mini",
1689
- "onUpdate:modelValue": i[0] || (i[0] = (u) => l("update:model-value", u))
2999
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => n("update:model-value", l))
1690
3000
  }, null, 8, ["model-value"])
1691
3001
  ]),
1692
3002
  _: 1
1693
3003
  }, 8, ["label"]);
1694
3004
  };
1695
3005
  }
1696
- }), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3006
+ }), $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1697
3007
  __proto__: null,
1698
- default: Ho
1699
- }, Symbol.toStringTag, { value: "Module" })), Qo = /* @__PURE__ */ E({
3008
+ default: Fs
3009
+ }, Symbol.toStringTag, { value: "Module" })), Os = /* @__PURE__ */ N({
3010
+ __name: "px",
3011
+ props: { label: String, modelValue: [String, Number] },
3012
+ emits: ["update:model-value"],
3013
+ setup(t, { emit: e }) {
3014
+ const n = e, o = t, s = ["px", "pt", "mm"], i = U("px"), a = U();
3015
+ nt(
3016
+ () => o.modelValue,
3017
+ (r) => {
3018
+ if (typeof r == "number")
3019
+ i.value = "px", a.value = r;
3020
+ else if (r == null)
3021
+ i.value = "px", a.value = void 0;
3022
+ else {
3023
+ const c = String(r).slice(-2).toLowerCase();
3024
+ s.includes(c) && (i.value = c), a.value = Number.parseFloat(r);
3025
+ }
3026
+ },
3027
+ {
3028
+ immediate: !0
3029
+ }
3030
+ );
3031
+ function u(r) {
3032
+ n("update:model-value", `${r}${i.value}`);
3033
+ }
3034
+ function l(r) {
3035
+ n("update:model-value", `${a.value}${r}`);
3036
+ }
3037
+ return (r, c) => {
3038
+ const h = y("a-input-number"), p = y("a-select"), f = y("a-input-group"), F = y("a-form-item");
3039
+ return d(), B(F, {
3040
+ field: "name",
3041
+ label: o.label
3042
+ }, {
3043
+ default: g(() => [
3044
+ _(f, null, {
3045
+ default: g(() => [
3046
+ _(h, {
3047
+ "model-value": a.value,
3048
+ size: "mini",
3049
+ "onUpdate:modelValue": u
3050
+ }, null, 8, ["model-value"]),
3051
+ _(p, {
3052
+ modelValue: i.value,
3053
+ "onUpdate:modelValue": [
3054
+ c[0] || (c[0] = (z) => i.value = z),
3055
+ l
3056
+ ],
3057
+ size: "mini",
3058
+ options: s,
3059
+ style: { width: "60px" }
3060
+ }, null, 8, ["modelValue"])
3061
+ ]),
3062
+ _: 1
3063
+ })
3064
+ ]),
3065
+ _: 1
3066
+ }, 8, ["label"]);
3067
+ };
3068
+ }
3069
+ }), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3070
+ __proto__: null,
3071
+ default: Os
3072
+ }, Symbol.toStringTag, { value: "Module" })), As = /* @__PURE__ */ N({
1700
3073
  __name: "select",
1701
- props: { label: String, modelValue: [String, Number, Boolean], optionsConfig: Object },
3074
+ props: { label: String, modelValue: String, optionsConfig: Object },
1702
3075
  emits: ["update:model-value"],
1703
- setup(o, { emit: t }) {
1704
- const l = t, e = o;
1705
- return (n, i) => {
1706
- const a = m("a-select"), c = m("a-form-item");
1707
- return r(), R(c, {
3076
+ setup(t, { emit: e }) {
3077
+ const n = e, o = t;
3078
+ return (s, i) => {
3079
+ const a = y("a-select"), u = y("a-form-item");
3080
+ return d(), B(u, {
1708
3081
  field: "name",
1709
- label: e.label
3082
+ label: o.label
1710
3083
  }, {
1711
- default: f(() => {
1712
- var u, C;
3084
+ default: g(() => {
3085
+ var l, r;
1713
3086
  return [
1714
- p(a, {
1715
- "model-value": String(e.modelValue),
1716
- options: (C = (u = e.optionsConfig) == null ? void 0 : u.options) != null ? C : [],
3087
+ _(a, {
3088
+ "model-value": o.modelValue,
3089
+ options: (r = (l = o.optionsConfig) == null ? void 0 : l.options) != null ? r : [],
1717
3090
  size: "mini",
1718
- "onUpdate:modelValue": i[0] || (i[0] = ($) => l("update:model-value", $))
3091
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => n("update:model-value", c))
1719
3092
  }, null, 8, ["model-value", "options"])
1720
3093
  ];
1721
3094
  }),
@@ -1723,189 +3096,358 @@ const lt = /* @__PURE__ */ E({
1723
3096
  }, 8, ["label"]);
1724
3097
  };
1725
3098
  }
1726
- }), Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3099
+ }), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1727
3100
  __proto__: null,
1728
- default: Qo
1729
- }, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.assign({ "./input.vue": Lo, "./number.vue": Go, "./select.vue": Xo });
1730
- function Yo(o) {
1731
- const t = Object.keys(Te).find((l) => l.indexOf(`${o}.vue`) !== -1);
1732
- return t && Te[t] ? Te[t].default : lt;
3101
+ default: As
3102
+ }, Symbol.toStringTag, { value: "Module" })), Qe = /* @__PURE__ */ Object.assign({ "./input.vue": Ss, "./number.vue": $s, "./px.vue": Bs, "./select.vue": Ts });
3103
+ function js(t) {
3104
+ const e = Object.keys(Qe).find((n) => n.indexOf(`${t}.vue`) !== -1);
3105
+ return e && Qe[e] ? Qe[e].default : Nt;
1733
3106
  }
1734
- const fe = /* @__PURE__ */ E({
3107
+ const Se = /* @__PURE__ */ N({
1735
3108
  __name: "panel-item",
1736
3109
  props: {
1737
3110
  type: { type: String, default: "input" }
1738
3111
  },
1739
- setup(o) {
1740
- const t = o;
1741
- return (l, e) => (r(), R(xe(g(Yo)(t.type)), ke(Ae(l.$props)), null, 16));
3112
+ setup(t) {
3113
+ const e = t;
3114
+ return (n, o) => (d(), B(Be(v(js)(e.type)), Te(je(n.$props)), null, 16));
1742
3115
  }
1743
- }), Jo = { class: "fe-form-panels" }, Zo = { class: "fe-form-panels-bd" }, en = /* @__PURE__ */ y("span", { class: "fe-form-side-bd-title" }, [
1744
- /* @__PURE__ */ y("strong", null, "\u57FA\u7840\u8BBE\u7F6E")
1745
- ], -1), tn = /* @__PURE__ */ y("span", { class: "fe-form-side-bd-title" }, [
1746
- /* @__PURE__ */ y("strong", null, "\u5176\u4ED6")
1747
- ], -1), on = /* @__PURE__ */ E({
3116
+ }), Ps = { class: "fe-form-panels-bd" }, Ms = /* @__PURE__ */ O("span", { class: "fe-form-side-bd-title" }, [
3117
+ /* @__PURE__ */ O("strong", null, "\u57FA\u7840\u8BBE\u7F6E")
3118
+ ], -1), Ns = /* @__PURE__ */ O("span", { class: "fe-form-side-bd-title" }, [
3119
+ /* @__PURE__ */ O("strong", null, "\u5C5E\u6027\u8BBE\u7F6E")
3120
+ ], -1), Rs = /* @__PURE__ */ O("span", { class: "fe-form-side-bd-title" }, [
3121
+ /* @__PURE__ */ O("strong", null, "\u5176\u4ED6")
3122
+ ], -1), zs = /* @__PURE__ */ N({
1748
3123
  __name: "panel",
1749
- props: Q(),
1750
- setup(o) {
1751
- const t = o, { config: l, selectedWidget: e, selectedWidgetOptions: n, selectedWidgetOptionsConfig: i } = et(t);
1752
- function a($) {
1753
- var S;
1754
- const b = (S = i.value) == null ? void 0 : S[$];
1755
- if (!!b)
1756
- return typeof b == "object" ? b : { type: b };
1757
- }
1758
- function c($) {
1759
- var b;
1760
- return (b = a($)) == null ? void 0 : b.type;
1761
- }
1762
- function u($, b) {
1763
- n.value = { ...n.value, [$]: b };
1764
- }
1765
- function C($, b) {
1766
- l.value = { ...l.value, [$]: b };
1767
- }
1768
- return ($, b) => {
1769
- const S = m("a-form"), _ = m("a-divider"), v = m("a-empty");
1770
- return r(), x("div", Jo, [
1771
- p(nt, { list: ["\u7EC4\u4EF6\u5C5E\u6027", "\u5168\u5C40\u5C5E\u6027"] }, {
1772
- default: f(({ index: k }) => [
1773
- y("div", Zo, [
1774
- k === 1 ? (r(), R(S, {
3124
+ setup(t) {
3125
+ const e = U(!1), n = te(), { setSelectedWidget: o, onUpdateConfig: s } = n, i = P(() => n.selectedWidget), a = P(() => n.config), { options: u, optionsConfig: l } = rt(i), r = P(() => Object.keys(u.value).filter((c) => typeof u.value[c] == "boolean"));
3126
+ return (c, h) => {
3127
+ const p = y("a-form"), f = y("a-divider"), F = y("a-checkbox"), z = y("a-space"), H = y("a-empty"), G = y("icon-right"), fe = y("icon-left"), T = y("a-button");
3128
+ return d(), S("div", {
3129
+ class: "u-page__panel fe-form-panels",
3130
+ style: J({ width: e.value ? "0px" : "219px" })
3131
+ }, [
3132
+ e.value ? M("", !0) : (d(), B(Mt, {
3133
+ key: 0,
3134
+ list: ["\u7EC4\u4EF6\u5C5E\u6027", "\u5168\u5C40\u5C5E\u6027"]
3135
+ }, {
3136
+ default: g(({ index: E }) => [
3137
+ O("div", Ps, [
3138
+ E === 1 ? (d(), B(p, {
1775
3139
  key: 0,
1776
3140
  model: {},
1777
3141
  layout: "vertical"
1778
3142
  }, {
1779
- default: f(() => [
1780
- (r(!0), x(I, null, oe(g(l), (j, z) => (r(), R(fe, {
1781
- key: z,
1782
- "model-value": j,
1783
- label: $.$t(`fe.panel.${z}`),
1784
- "onUpdate:modelValue": (L) => C(z, L)
3143
+ default: g(() => [
3144
+ (d(!0), S(X, null, _e(a.value, ($, j) => (d(), B(Se, {
3145
+ key: j,
3146
+ "model-value": a.value[j],
3147
+ type: "px",
3148
+ label: c.$t(`fe.panel.${j}`),
3149
+ "onUpdate:modelValue": (x) => v(s)(j, x)
1785
3150
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
1786
3151
  ]),
1787
3152
  _: 1
1788
- })) : k === 0 ? (r(), x(I, { key: 1 }, [
1789
- g(e) ? (r(), R(S, {
3153
+ })) : E === 0 ? (d(), S(X, { key: 1 }, [
3154
+ i.value ? (d(), B(p, {
1790
3155
  key: 0,
1791
3156
  model: {},
1792
3157
  layout: "vertical"
1793
3158
  }, {
1794
- default: f(() => [
1795
- en,
1796
- p(fe, {
1797
- "model-value": g(e).type,
3159
+ default: g(() => [
3160
+ Ms,
3161
+ _(Se, {
3162
+ "model-value": i.value.type,
1798
3163
  type: "input",
1799
3164
  label: "\u7C7B\u578B",
1800
3165
  disabled: ""
1801
3166
  }, null, 8, ["model-value"]),
1802
- p(fe, {
1803
- "model-value": g(e).name,
3167
+ _(Se, {
3168
+ "model-value": i.value.name,
1804
3169
  type: "input",
1805
3170
  label: "\u6807\u9898",
1806
- disabled: ""
3171
+ "onUpdate:modelValue": h[0] || (h[0] = ($) => v(o)({ name: $ }))
1807
3172
  }, null, 8, ["model-value"]),
1808
- p(fe, {
1809
- "model-value": g(e).model,
3173
+ _(Se, {
3174
+ "model-value": i.value.model,
1810
3175
  type: "input",
1811
3176
  label: "\u6807\u8BC6\u5B57\u7B26",
1812
3177
  disabled: ""
1813
3178
  }, null, 8, ["model-value"]),
1814
- p(_, { margin: 5 }),
1815
- tn,
1816
- (r(!0), x(I, null, oe(g(n), (j, z) => {
1817
- var L;
1818
- return r(), x(I, { key: z }, [
1819
- ((L = a(z)) == null ? void 0 : L.show) !== !1 ? (r(), R(fe, {
1820
- key: 0,
1821
- "model-value": j,
1822
- type: c(z),
1823
- label: $.$t(`fe.panel.${z}`),
1824
- "options-config": a(z),
1825
- "onUpdate:modelValue": (J) => u(z, J)
1826
- }, null, 8, ["model-value", "type", "label", "options-config", "onUpdate:modelValue"])) : D("", !0)
3179
+ _(f, { margin: 5 }),
3180
+ r.value.length ? (d(), S(X, { key: 0 }, [
3181
+ Ns,
3182
+ _(z, null, {
3183
+ default: g(() => [
3184
+ (d(!0), S(X, null, _e(r.value, ($) => (d(), B(F, {
3185
+ key: $,
3186
+ "model-value": v(u)[$],
3187
+ "onUpdate:modelValue": (j) => v(o)({ [$]: j }, !0)
3188
+ }, {
3189
+ default: g(() => [
3190
+ le(Y(c.$t(`fe.panel.${$}`)), 1)
3191
+ ]),
3192
+ _: 2
3193
+ }, 1032, ["model-value", "onUpdate:modelValue"]))), 128))
3194
+ ]),
3195
+ _: 1
3196
+ }),
3197
+ _(f, { margin: 5 })
3198
+ ], 64)) : M("", !0),
3199
+ Rs,
3200
+ (d(!0), S(X, null, _e(v(u), ($, j) => {
3201
+ var x;
3202
+ return d(), S(X, { key: j }, [
3203
+ (x = v(l)[j]) != null && x.show ? (d(), S(X, { key: 0 }, [
3204
+ r.value.includes(j) ? M("", !0) : (d(), B(Se, {
3205
+ key: 0,
3206
+ "model-value": v(u)[j],
3207
+ type: v(l)[j].type,
3208
+ label: c.$t(`fe.panel.${j}`),
3209
+ "options-config": v(l)[j],
3210
+ "onUpdate:modelValue": (oe) => v(o)({ [j]: oe }, !0)
3211
+ }, null, 8, ["model-value", "type", "label", "options-config", "onUpdate:modelValue"]))
3212
+ ], 64)) : M("", !0)
1827
3213
  ], 64);
1828
3214
  }), 128))
1829
3215
  ]),
1830
3216
  _: 1
1831
- })) : (r(), R(v, { key: 1 }))
1832
- ], 64)) : (r(), R(v, { key: 2 }))
3217
+ })) : (d(), B(H, { key: 1 }))
3218
+ ], 64)) : (d(), B(H, { key: 2 }))
1833
3219
  ])
1834
3220
  ]),
1835
3221
  _: 1
3222
+ })),
3223
+ _(T, {
3224
+ type: "secondary",
3225
+ status: "normal",
3226
+ size: "mini",
3227
+ class: "arco-btn-light u-page__arrow",
3228
+ onClick: h[1] || (h[1] = (E) => e.value = !e.value)
3229
+ }, {
3230
+ icon: g(() => [
3231
+ e.value ? (d(), B(G, { key: 0 })) : (d(), B(fe, { key: 1 }))
3232
+ ]),
3233
+ _: 1
1836
3234
  })
1837
- ]);
3235
+ ], 4);
1838
3236
  };
1839
3237
  }
1840
3238
  });
1841
- const nn = { class: "fe-layout" }, ln = { class: "u-page u-page--row" }, an = {
3239
+ const Ws = { class: "u-aside" }, Is = { class: "u-page u-page--row" }, Vs = {
1842
3240
  class: "u-main",
1843
3241
  style: { padding: "0" }
1844
- }, sn = /* @__PURE__ */ E({
3242
+ }, Ls = /* @__PURE__ */ N({
1845
3243
  __name: "index",
1846
- props: {
1847
- data: {
1848
- type: Object,
1849
- default: () => ({ children: [], config: {}, models: {} })
1850
- }
1851
- },
1852
- emits: ["click"],
1853
- setup(o, { expose: t, emit: l }) {
1854
- const e = l;
1855
- K.on("widget(click)", (b) => {
1856
- !b || (typeof b == "string" && (b = [b]), b[0] && e("click", { type: b[0], arg: b[1] }));
1857
- });
1858
- const i = V({ ...o.data }), a = V("");
1859
- function c(b) {
1860
- i.value = Object.assign({}, { ...b });
1861
- }
1862
- function u() {
1863
- c({ ...i.value, children: [] }), a.value = "";
1864
- }
1865
- function C() {
1866
- return te(i.value);
1867
- }
1868
- function $() {
1869
- return i.value;
1870
- }
1871
- return t({
1872
- getData: C,
1873
- setData: c,
1874
- onReset: u,
1875
- getSelectedWidget: $
1876
- }), (b, S) => (r(), x("div", nn, [
1877
- y("div", ln, [
1878
- p(qo, {
1879
- "selected-path": a.value,
1880
- "onUpdate:selectedPath": S[0] || (S[0] = (_) => a.value = _),
1881
- data: i.value
1882
- }, null, 8, ["selected-path", "data"]),
1883
- y("div", an, [
1884
- p($o, {
1885
- "selected-path": a.value,
1886
- "onUpdate:selectedPath": S[1] || (S[1] = (_) => a.value = _),
1887
- data: i.value,
1888
- "onUpdate:data": S[2] || (S[2] = (_) => i.value = _),
1889
- onReset: S[3] || (S[3] = (_) => u())
1890
- }, null, 8, ["selected-path", "data"])
3244
+ props: { data: Object },
3245
+ setup(t) {
3246
+ const e = t;
3247
+ return e.data && Wo(e.data), (n, o) => (d(), S("div", Ws, [
3248
+ O("div", Is, [
3249
+ _(Ds),
3250
+ O("div", Vs, [
3251
+ _(as)
1891
3252
  ]),
1892
- p(on, {
1893
- "selected-path": a.value,
1894
- "onUpdate:selectedPath": S[4] || (S[4] = (_) => a.value = _),
1895
- data: i.value
1896
- }, null, 8, ["selected-path", "data"])
3253
+ _(zs)
1897
3254
  ])
1898
3255
  ]));
1899
3256
  }
1900
- }), vn = {
1901
- install(o) {
1902
- o.use(mt), o.component("OrchiskyTable", Nt), o.component("OrchiskyPrint", sn);
3257
+ }), kt = {
3258
+ fe: {
3259
+ panel: {
3260
+ title: "\u5B57\u6BB5\u5C5E\u6027",
3261
+ model: "\u5B57\u6BB5\u6807\u8BC6",
3262
+ bcid: "\u6761\u7801\u7C7B\u578B",
3263
+ padding: "\u586B\u5145",
3264
+ name: "\u6807\u9898",
3265
+ width: "\u5BBD\u5EA6",
3266
+ height: "\u9AD8\u5EA6",
3267
+ size: "\u5927\u5C0F",
3268
+ labelWidth: "\u6807\u7B7E\u5BBD\u5EA6",
3269
+ custom: "\u81EA\u5B9A\u4E49",
3270
+ placeholder: "\u5360\u4F4D\u5185\u5BB9",
3271
+ layout: "\u5E03\u5C40\u65B9\u5F0F",
3272
+ block: "\u5757\u7EA7",
3273
+ inline: "\u884C\u5185",
3274
+ contentPosition: "\u6587\u6848\u4F4D\u7F6E",
3275
+ left: "\u5DE6\u4FA7",
3276
+ right: "\u53F3\u4FA7",
3277
+ center: "\u5C45\u4E2D",
3278
+ showInput: "\u663E\u793A\u8F93\u5165\u6846",
3279
+ min: "\u6700\u5C0F\u503C",
3280
+ max: "\u6700\u5927\u503C",
3281
+ step: "\u6B65\u957F",
3282
+ multiple: "\u662F\u5426\u591A\u9009",
3283
+ filterable: "\u662F\u5426\u53EF\u641C\u7D22",
3284
+ allowHalf: "\u5141\u8BB8\u534A\u9009",
3285
+ showAlpha: "\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9",
3286
+ showLabel: "\u662F\u5426\u663E\u793A\u6807\u7B7E",
3287
+ option: "\u9009\u9879",
3288
+ staticData: "\u9759\u6001\u6570\u636E",
3289
+ remoteData: "\u8FDC\u7AEF\u6570\u636E",
3290
+ remoteFunc: "\u8FDC\u7AEF\u65B9\u6CD5",
3291
+ value: "\u503C",
3292
+ label: "\u6807\u7B7E",
3293
+ childrenOption: "\u5B50\u9009\u9879",
3294
+ defaultValue: "\u9ED8\u8BA4\u503C",
3295
+ showType: "\u663E\u793A\u7C7B\u578B",
3296
+ isRange: "\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",
3297
+ isTimestamp: "\u662F\u5426\u83B7\u53D6\u65F6\u95F4\u6233",
3298
+ startPlaceholder: "\u5F00\u59CB\u65F6\u95F4\u5360\u4F4D\u5185\u5BB9",
3299
+ endPlaceholder: "\u7ED3\u675F\u65F6\u95F4\u5360\u4F4D\u5185\u5BB9",
3300
+ format: "\u683C\u5F0F",
3301
+ limit: "\u6700\u5927\u4E0A\u4F20\u6570",
3302
+ imageAction: "\u56FE\u7247\u4E0A\u4F20\u5730\u5740",
3303
+ tip: "\u63D0\u793A\u8BF4\u660E\u6587\u5B57",
3304
+ action: "\u4E0A\u4F20\u5730\u5740",
3305
+ defaultType: "\u7ED1\u5B9A\u6570\u636E\u7C7B\u578B",
3306
+ string: "\u5B57\u7B26\u4E32",
3307
+ object: "\u5BF9\u8C61",
3308
+ array: "\u6570\u7EC4",
3309
+ number: "\u6570\u5B57",
3310
+ boolean: "\u5E03\u5C14\u503C",
3311
+ integer: "\u6574\u6570",
3312
+ float: "\u6D6E\u70B9\u6570",
3313
+ url: "URL\u5730\u5740",
3314
+ email: "\u90AE\u7BB1\u5730\u5740",
3315
+ hex: "\u5341\u516D\u8FDB\u5236",
3316
+ gutter: "\u6805\u683C\u95F4\u9694",
3317
+ columnOption: "\u5217\u914D\u7F6E\u9879",
3318
+ span: "\u6805\u683C\u503C",
3319
+ justify: "\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",
3320
+ justifyStart: "\u5DE6\u5BF9\u9F50",
3321
+ justifyEnd: "\u53F3\u5BF9\u9F50",
3322
+ justifyCenter: "\u5C45\u4E2D",
3323
+ justifySpaceAround: "\u4E24\u4FA7\u95F4\u9694\u76F8\u7B49",
3324
+ justifySpaceBetween: "\u4E24\u7AEF\u5BF9\u9F50",
3325
+ align: "\u5782\u76F4\u6392\u5217\u65B9\u5F0F",
3326
+ alignTop: "\u9876\u90E8\u5BF9\u9F50",
3327
+ alignMiddle: "\u5C45\u4E2D",
3328
+ alignBottom: "\u5E95\u90E8\u5BF9\u9F50",
3329
+ type: "\u98CE\u683C\u7C7B\u578B",
3330
+ default: "\u9ED8\u8BA4",
3331
+ card: "\u9009\u9879\u5361",
3332
+ borderCard: "\u5361\u7247\u5316",
3333
+ tabPosition: "\u9009\u9879\u5361\u4F4D\u7F6E",
3334
+ top: "\u9876\u90E8",
3335
+ bottom: "\u5E95\u90E8",
3336
+ tabOption: "\u6807\u7B7E\u914D\u7F6E\u9879",
3337
+ tabName: "\u6807\u7B7E\u540D\u79F0",
3338
+ customClass: "\u81EA\u5B9A\u4E49Class",
3339
+ attribute: "\u64CD\u4F5C\u5C5E\u6027",
3340
+ dataBind: "\u6570\u636E\u7ED1\u5B9A",
3341
+ hidden: "\u9690\u85CF",
3342
+ readonly: "\u5B8C\u5168\u53EA\u8BFB",
3343
+ disabled: "\u7981\u7528",
3344
+ editable: "\u6587\u672C\u6846\u53EF\u8F93\u5165",
3345
+ clearable: "\u663E\u793A\u6E05\u9664\u6309\u94AE",
3346
+ arrowControl: "\u4F7F\u7528\u7BAD\u5934\u8FDB\u884C\u65F6\u95F4\u9009\u62E9",
3347
+ isDelete: "\u5220\u9664",
3348
+ isEdit: "\u7F16\u8F91",
3349
+ showPassword: "\u663E\u793A\u5BC6\u7801",
3350
+ validate: "\u6821\u9A8C",
3351
+ required: "\u5FC5\u586B",
3352
+ patternPlaceholder: "\u586B\u5199\u6B63\u5219\u8868\u8FBE\u5F0F",
3353
+ newOption: "\u65B0\u9009\u9879",
3354
+ tab: "\u6807\u7B7E\u9875",
3355
+ validatorRequired: "\u5FC5\u987B\u586B\u5199",
3356
+ validatorType: "\u683C\u5F0F\u4E0D\u6B63\u786E",
3357
+ validatorPattern: "\u683C\u5F0F\u4E0D\u5339\u914D",
3358
+ showWordLimit: "\u663E\u793A\u5B57\u6570\u7EDF\u8BA1",
3359
+ maxLength: "\u6700\u5927\u5B57\u6570"
3360
+ },
3361
+ side: {
3362
+ fields: {
3363
+ input: "\u5355\u884C\u6587\u672C",
3364
+ textarea: "\u591A\u884C\u6587\u672C",
3365
+ number: "\u8BA1\u6570\u5668",
3366
+ radio: "\u5355\u9009\u6846\u7EC4",
3367
+ checkbox: "\u591A\u9009\u6846\u7EC4",
3368
+ time: "\u65F6\u95F4\u9009\u62E9\u5668",
3369
+ date: "\u65E5\u671F\u9009\u62E9\u5668",
3370
+ rate: "\u8BC4\u5206",
3371
+ color: "\u989C\u8272\u9009\u62E9\u5668",
3372
+ select: "\u4E0B\u62C9\u9009\u62E9\u6846",
3373
+ switch: "\u5F00\u5173",
3374
+ slider: "\u6ED1\u5757",
3375
+ text: "\u6587\u5B57",
3376
+ blank: "\u81EA\u5B9A\u4E49\u533A\u57DF",
3377
+ fileupload: "\u6587\u4EF6",
3378
+ imgupload: "\u56FE\u7247",
3379
+ editor: "\u7F16\u8F91\u5668",
3380
+ cascader: "\u7EA7\u8054\u9009\u62E9\u5668",
3381
+ table: "\u5B50\u8868\u5355",
3382
+ grid: "\u6805\u683C\u5E03\u5C40",
3383
+ tabs: "\u6807\u7B7E\u9875",
3384
+ divider: "\u5206\u5272\u7EBF"
3385
+ },
3386
+ basic: {
3387
+ title: "\u57FA\u7840\u5B57\u6BB5"
3388
+ },
3389
+ advance: {
3390
+ title: "\u9AD8\u7EA7\u5B57\u6BB5"
3391
+ },
3392
+ layout: {
3393
+ title: "\u5E03\u5C40\u5B57\u6BB5"
3394
+ }
3395
+ },
3396
+ description: {
3397
+ containerEmpty: "\u4ECE\u5DE6\u4FA7\u62D6\u62FD\u6765\u6DFB\u52A0\u5B57\u6BB5",
3398
+ configEmpty: "\u8BF7\u6DFB\u52A0\u5B57\u6BB5",
3399
+ tableEmpty: "\u4ECE\u5DE6\u4FA7\u62D6\u62FD\u6765\u6DFB\u52A0\u5B57\u6BB5",
3400
+ uploadJsonInfo: "JSON\u683C\u5F0F\u5982\u4E0B\uFF0C\u76F4\u63A5\u590D\u5236\u751F\u6210\u7684json\u8986\u76D6\u6B64\u5904\u4EE3\u7801\u70B9\u51FB\u786E\u5B9A\u5373\u53EF"
3401
+ },
3402
+ message: {
3403
+ copySuccess: "\u590D\u5236\u6210\u529F",
3404
+ validError: "\u8868\u5355\u6570\u636E\u6821\u9A8C\u5931\u8D25"
3405
+ },
3406
+ actions: {
3407
+ import: "\u5BFC\u5165JSON",
3408
+ clear: "\u6E05\u7A7A",
3409
+ preview: "\u9884\u89C8",
3410
+ json: "\u751F\u6210JSON",
3411
+ code: "\u751F\u6210\u4EE3\u7801",
3412
+ getData: "\u83B7\u53D6\u6570\u636E",
3413
+ reset: "\u91CD\u7F6E",
3414
+ copyData: "\u590D\u5236\u6570\u636E",
3415
+ cancel: "\u53D6 \u6D88",
3416
+ confirm: "\u786E \u5B9A",
3417
+ addOption: "\u6DFB\u52A0\u9009\u9879",
3418
+ addColumn: "\u6DFB\u52A0\u5217",
3419
+ addTab: "\u6DFB\u52A0\u6807\u7B7E",
3420
+ upload: "\u70B9\u51FB\u4E0A\u4F20",
3421
+ add: "\u6DFB\u52A0",
3422
+ enabledEdit: "\u542F\u7528\u7F16\u8F91",
3423
+ disabledEdit: "\u7981\u7528\u7F16\u8F91"
3424
+ },
3425
+ form: {
3426
+ title: "\u8868\u5355\u5C5E\u6027",
3427
+ labelPosition: {
3428
+ title: "\u6807\u7B7E\u5BF9\u9F50\u65B9\u5F0F",
3429
+ left: "\u5DE6\u5BF9\u9F50",
3430
+ right: "\u53F3\u5BF9\u9F50",
3431
+ top: "\u9876\u90E8\u5BF9\u9F50"
3432
+ },
3433
+ labelWidth: "\u8868\u5355\u6807\u7B7E\u5BBD\u5EA6",
3434
+ size: "\u7EC4\u4EF6\u5C3A\u5BF8",
3435
+ customClass: "\u81EA\u5B9A\u4E49Class"
3436
+ }
3437
+ }
3438
+ }, Qs = {
3439
+ enUS: kt,
3440
+ zhCN: kt
3441
+ }, Zs = {
3442
+ install(t) {
3443
+ t.use(Xt), t.component("OrchiskyTable", So), t.component("OrchiskyPrint", Ls);
1903
3444
  }
1904
3445
  };
1905
3446
  export {
1906
- sn as OrchiskyPrint,
1907
- Nt as OrchiskyTable,
1908
- vn as default,
1909
- hn as formatTable,
1910
- gn as useOrchiskyVxe
3447
+ Ls as OrchiskyPrint,
3448
+ So as OrchiskyTable,
3449
+ Zs as default,
3450
+ Js as formatTable,
3451
+ Qs as locale,
3452
+ Gs as useOrchiskyVxe
1911
3453
  };