@lingshugroup/web-plus 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/lib/index.css +1 -1
  2. package/lib/index.css.br +0 -0
  3. package/lib/index.css.gz +0 -0
  4. package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
  5. package/lib/packages/ls-components/components/chart/config/template/bar/index.js +12 -12
  6. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
  7. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
  8. package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
  9. package/lib/packages/ls-components/components/chart/config/template/line/index.js +1 -1
  10. package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
  11. package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
  12. package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
  13. package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
  14. package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
  15. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +85 -81
  16. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
  17. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
  18. package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.cjs +1 -1
  19. package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.js +2 -2
  20. package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.cjs +1 -1
  21. package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js +37 -37
  22. package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.br +0 -0
  23. package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.gz +0 -0
  24. package/lib/packages/ls-components/components/preview_xlsx/config/index.cjs +1 -1
  25. package/lib/packages/ls-components/components/preview_xlsx/config/index.js +3 -0
  26. package/lib/packages/ls-components/components/preview_xlsx/config/index.js.br +0 -0
  27. package/lib/packages/ls-components/components/preview_xlsx/config/index.js.gz +0 -0
  28. package/lib/types/components/preview_xlsx/config.d.ts +3 -0
  29. package/package.json +1 -1
@@ -24,7 +24,7 @@ var g = (K, Q) => Ve(K, "name", { value: Q, configurable: !0 });
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
27
- import { defineComponent as ie, mergeModels as se, useModel as ge, ref as j, computed as ue, watch as z, renderSlot as b, openBlock as s, createBlock as f, normalizeClass as H, createSlots as D, withCtx as m, createElementBlock as V, Fragment as C, toDisplayString as w, unref as h, createTextVNode as P, createCommentVNode as O, mergeProps as $, toHandlers as k, renderList as J, createVNode as B, createElementVNode as ne } from "vue";
27
+ import { defineComponent as ie, mergeModels as se, useModel as ge, ref as j, computed as ue, watch as z, renderSlot as b, openBlock as s, createBlock as f, normalizeClass as H, createSlots as D, withCtx as m, createElementBlock as V, Fragment as w, toDisplayString as C, unref as h, createTextVNode as P, createCommentVNode as B, mergeProps as $, toHandlers as k, renderList as J, createVNode as I, createElementVNode as ne } from "vue";
28
28
  import { isEmpty as v } from "../../_utils/utils/index.js";
29
29
  import { lsFormItemProps as he } from "../types/index.js";
30
30
  import Z from "../../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min/index.js";
@@ -32,8 +32,8 @@ import E from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/
32
32
  import Ee from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual/index.js";
33
33
  import de from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set/index.js";
34
34
  import { ElIcon as Re } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/icon/index/index.js";
35
- import { ElTooltip as we } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
36
- import { ElText as Ce } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/text/index/index.js";
35
+ import { ElTooltip as Ce } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
36
+ import { ElText as we } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/text/index/index.js";
37
37
  import { ElInput as Pe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/input/index/index.js";
38
38
  import { ElInputNumber as Ue } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/input-number/index/index.js";
39
39
  import { ElRadio as Ae, ElRadioButton as Se, ElRadioGroup as Fe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/radio/index/index.js";
@@ -64,7 +64,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
64
64
  }),
65
65
  emits: /* @__PURE__ */ se(["update:value", "onChange"], ["update:modelValue"]),
66
66
  setup(K, { expose: Q, emit: pe }) {
67
- const l = K, c = pe, t = ge(K, "modelValue"), _ = j(), me = ue(() => {
67
+ const l = K, c = pe, t = ge(K, "modelValue"), x = j(), me = ue(() => {
68
68
  var a;
69
69
  let e = {};
70
70
  return l.type === "multipleCascader" && (e = {
@@ -138,22 +138,22 @@ const Ge = { class: "ls-form-item-label" }, qe = {
138
138
  }).join(",") : r = (n = a.find((p) => p.value === e)) == null ? void 0 : n.label), r;
139
139
  }
140
140
  g(W, "getOptionsLabel");
141
- function x(e, a, i = "") {
142
- var p, y, R, S;
141
+ function _(e, a, i = "") {
142
+ var p, y, R, F;
143
143
  let r = i, n = !1;
144
144
  if (!v(e) && !v(a)) {
145
- let F = !0;
146
- l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (F = !1);
147
- const T = ((y = (p = l.attrs) == null ? void 0 : p.props) == null ? void 0 : y.value) || "value", M = ((S = (R = l.attrs) == null ? void 0 : R.props) == null ? void 0 : S.label) || "label";
145
+ let M = !0;
146
+ l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (M = !1);
147
+ const L = ((y = (p = l.attrs) == null ? void 0 : p.props) == null ? void 0 : y.value) || "value", N = ((F = (R = l.attrs) == null ? void 0 : R.props) == null ? void 0 : F.label) || "label";
148
148
  for (const d of a) {
149
- if (d[T] === e)
150
- return F ? r = `${r ? `${r}/` : ""}${d == null ? void 0 : d[M]}` : r = d == null ? void 0 : d[M], {
149
+ if (d[L] === e)
150
+ return M ? r = `${r ? `${r}/` : ""}${d == null ? void 0 : d[N]}` : r = d == null ? void 0 : d[N], {
151
151
  labelText: r,
152
152
  found: !0
153
153
  };
154
154
  if (!v(d == null ? void 0 : d.children) && !n) {
155
- const L = x(e, d == null ? void 0 : d.children, r);
156
- if (r = L.labelText, n = L.found, n)
155
+ const O = _(e, d == null ? void 0 : d.children, r);
156
+ if (r = O.labelText, n = O.found, n)
157
157
  return {
158
158
  labelText: r,
159
159
  found: n
@@ -166,15 +166,15 @@ const Ge = { class: "ls-form-item-label" }, qe = {
166
166
  found: n
167
167
  };
168
168
  }
169
- g(x, "getCascaderOptionLabel");
169
+ g(_, "getCascaderOptionLabel");
170
170
  function ee(e, a, i = "", r = 0) {
171
- var p, y, R, S;
171
+ var p, y, R, F;
172
172
  let n = i;
173
173
  if (!v(e) && !v(a)) {
174
- let F = !0;
175
- l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (F = !1);
176
- const T = ((y = (p = l.attrs) == null ? void 0 : p.props) == null ? void 0 : y.value) || "value", M = ((S = (R = l.attrs) == null ? void 0 : R.props) == null ? void 0 : S.label) || "label", d = a.find((L) => L[T] === e[r]);
177
- v(d) || (F ? n = `${n ? `${n}/` : ""}${d == null ? void 0 : d[M]}` : n = d == null ? void 0 : d[M], r < e.length - 1 && !v(d == null ? void 0 : d.children) && (n = ee(e, d == null ? void 0 : d.children, n, r + 1)));
174
+ let M = !0;
175
+ l.attrs && l.attrs.hasOwnProperty("show-all-levels") && l.attrs["show-all-levels"] === !1 && (M = !1);
176
+ const L = ((y = (p = l.attrs) == null ? void 0 : p.props) == null ? void 0 : y.value) || "value", N = ((F = (R = l.attrs) == null ? void 0 : R.props) == null ? void 0 : F.label) || "label", d = a.find((O) => O[L] === e[r]);
177
+ v(d) || (M ? n = `${n ? `${n}/` : ""}${d == null ? void 0 : d[N]}` : n = d == null ? void 0 : d[N], r < e.length - 1 && !v(d == null ? void 0 : d.children) && (n = ee(e, d == null ? void 0 : d.children, n, r + 1)));
178
178
  }
179
179
  return n;
180
180
  }
@@ -182,7 +182,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
182
182
  function le(e, a, i = "") {
183
183
  let r = i;
184
184
  return !v(e) && !v(a) && (l != null && l.levelMatch ? r = ee(e, a, r) : e.forEach((n) => {
185
- r = x(n, a, r).labelText;
185
+ r = _(n, a, r).labelText;
186
186
  })), r;
187
187
  }
188
188
  g(le, "buildCascaderPathLabels");
@@ -231,19 +231,19 @@ const Ge = { class: "ls-form-item-label" }, qe = {
231
231
  }
232
232
  }
233
233
  g(X, "readValue");
234
- function I(e, a, i) {
234
+ function S(e, a, i) {
235
235
  c("onChange", e, a, i);
236
236
  }
237
- g(I, "onChange");
237
+ g(S, "onChange");
238
238
  function Y(e) {
239
239
  t.value = e;
240
240
  }
241
241
  g(Y, "updateModelValue");
242
242
  const u = ue(() => l.slotKey || l.prop);
243
243
  return Q({
244
- FormItemRef: _
244
+ FormItemRef: x
245
245
  }), (e, a) => {
246
- const i = Re, r = we, n = Ce, p = Pe, y = Ue, R = Ae, S = Se, F = Fe, T = Me, M = Ne, d = Te, L = Le, oe = Oe, be = Be, ye = Ie, te = je, $e = De, ke = Ke;
246
+ const i = Re, r = Ce, n = we, p = Pe, y = Ue, R = Ae, F = Se, M = Fe, L = Me, N = Ne, d = Te, O = Le, oe = Oe, be = Be, ye = Ie, te = je, $e = De, ke = Ke;
247
247
  return e.type === "slot" ? b(e.$slots, u.value, {
248
248
  key: 0,
249
249
  slotRow: { ...l },
@@ -252,7 +252,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
252
252
  }, void 0, !0) : (s(), f(ke, {
253
253
  key: 1,
254
254
  ref_key: "FormItemRef",
255
- ref: _,
255
+ ref: x,
256
256
  label: e.colon ? `${e.label}:` : e.label,
257
257
  prop: e.prop,
258
258
  rules: e.rules,
@@ -262,7 +262,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
262
262
  b(e.$slots, `${u.value}-prepend`, {
263
263
  slotRow: { props: l }
264
264
  }, void 0, !0),
265
- e.read ? (s(), V(C, { key: 0 }, [
265
+ e.read ? (s(), V(w, { key: 0 }, [
266
266
  e.type === "itemSlot" && e.$slots[`${u.value}-slot`] ? b(e.$slots, `${u.value}-slot`, {
267
267
  key: 0,
268
268
  slotRow: { ...l },
@@ -276,22 +276,22 @@ const Ge = { class: "ls-form-item-label" }, qe = {
276
276
  key: 2,
277
277
  value: X(e.type),
278
278
  slotRow: { ...l }
279
- }, void 0, !0) : (s(), V("div", qe, w(X(e.type)), 1))
280
- ], 64)) : (s(), V(C, { key: 1 }, [
279
+ }, void 0, !0) : (s(), V("div", qe, C(X(e.type)), 1))
280
+ ], 64)) : (s(), V(w, { key: 1 }, [
281
281
  e.type === "label" ? (s(), V("span", ze, [
282
- h(v)(t.value) ? (s(), V(C, { key: 0 }, [
283
- P(w((l == null ? void 0 : l.labelEmpty) || "--"), 1)
284
- ], 64)) : O("", !0),
282
+ h(v)(t.value) ? (s(), V(w, { key: 0 }, [
283
+ P(C((l == null ? void 0 : l.labelEmpty) || "--"), 1)
284
+ ], 64)) : B("", !0),
285
285
  e.labelNumber ? (s(), f(n, {
286
286
  key: 1,
287
287
  type: Number(t.value) < 0 ? "danger" : ""
288
288
  }, {
289
289
  default: m(() => [
290
- P(w(t.value), 1)
290
+ P(C(t.value), 1)
291
291
  ]),
292
292
  _: 1
293
- }, 8, ["type"])) : (s(), V(C, { key: 2 }, [
294
- P(w(t.value), 1)
293
+ }, 8, ["type"])) : (s(), V(w, { key: 2 }, [
294
+ P(C(t.value), 1)
295
295
  ], 64))
296
296
  ])) : e.type === "input" ? (s(), f(p, $({
297
297
  key: 1,
@@ -302,7 +302,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
302
302
  placeholder: `请输入${e.label}`,
303
303
  disabled: e.disabled
304
304
  }, e.attrs, k(e.listeners || {}), {
305
- onChange: a[1] || (a[1] = (o) => I(t.value, e.prop, e.index))
305
+ onChange: a[1] || (a[1] = (o) => S(t.value, e.prop, e.index))
306
306
  }), D({ _: 2 }, [
307
307
  e.$slots[`${u.value}-input-prefix`] ? {
308
308
  name: "prefix",
@@ -360,66 +360,68 @@ const Ge = { class: "ls-form-item-label" }, qe = {
360
360
  max: 99999999,
361
361
  min: 0,
362
362
  disabled: e.disabled
363
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "radio" ? (s(), f(F, $({
363
+ }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "radio" ? (s(), f(M, $({
364
364
  key: 4,
365
365
  modelValue: t.value,
366
366
  "onUpdate:modelValue": a[4] || (a[4] = (o) => t.value = o),
367
367
  disabled: e.disabled
368
368
  }, e.attrs, k(e.listeners || {}), {
369
- onChange: a[5] || (a[5] = (o) => I(t.value, e.prop, e.index))
369
+ onChange: a[5] || (a[5] = (o) => S(t.value, e.prop, e.index))
370
370
  }), {
371
371
  default: m(() => [
372
- e.radioType ? e.radioType === "button" ? (s(!0), V(C, { key: 1 }, J(e.options, (o, N) => (s(), f(S, {
373
- key: N,
372
+ e.radioType ? e.radioType === "button" ? (s(!0), V(w, { key: 1 }, J(e.options, (o, T) => (s(), f(F, {
373
+ key: T,
374
374
  value: o.value,
375
375
  disabled: o.disabled
376
376
  }, {
377
377
  default: m(() => [
378
- P(w(o.label), 1)
378
+ P(C(o.label), 1)
379
379
  ]),
380
380
  _: 2
381
- }, 1032, ["value", "disabled"]))), 128)) : O("", !0) : (s(!0), V(C, { key: 0 }, J(e.options, (o, N) => (s(), f(R, {
382
- key: N,
381
+ }, 1032, ["value", "disabled"]))), 128)) : B("", !0) : (s(!0), V(w, { key: 0 }, J(e.options, (o, T) => (s(), f(R, {
382
+ key: T,
383
383
  value: o.value,
384
384
  disabled: o.disabled
385
385
  }, {
386
386
  default: m(() => [
387
- P(w(o.label), 1)
387
+ P(C(o.label), 1)
388
388
  ]),
389
389
  _: 2
390
390
  }, 1032, ["value", "disabled"]))), 128))
391
391
  ]),
392
392
  _: 1
393
- }, 16, ["modelValue", "disabled"])) : e.type === "checkbox" ? (s(), f(M, $({
393
+ }, 16, ["modelValue", "disabled"])) : e.type === "checkbox" ? (s(), f(N, $({
394
394
  key: 5,
395
395
  modelValue: t.value,
396
396
  "onUpdate:modelValue": a[6] || (a[6] = (o) => t.value = o),
397
397
  disabled: e.disabled
398
- }, e.attrs, k(e.listeners || {})), {
398
+ }, e.attrs, k(e.listeners || {}), {
399
+ onChange: a[7] || (a[7] = (o) => S(t.value, e.prop, e.index))
400
+ }), {
399
401
  default: m(() => [
400
- (s(!0), V(C, null, J(e.options, (o, N) => (s(), f(T, {
401
- key: N,
402
+ (s(!0), V(w, null, J(e.options, (o, T) => (s(), f(L, {
403
+ key: T,
402
404
  value: o.value,
403
405
  label: o.label,
404
406
  disabled: o.disabled
405
407
  }, null, 8, ["value", "label", "disabled"]))), 128))
406
408
  ]),
407
409
  _: 1
408
- }, 16, ["modelValue", "disabled"])) : e.type === "select" ? (s(), f(L, $({
410
+ }, 16, ["modelValue", "disabled"])) : e.type === "select" ? (s(), f(O, $({
409
411
  key: 6,
410
412
  modelValue: t.value,
411
- "onUpdate:modelValue": a[8] || (a[8] = (o) => t.value = o),
413
+ "onUpdate:modelValue": a[9] || (a[9] = (o) => t.value = o),
412
414
  clearable: !0,
413
415
  placeholder: `请选择${e.label}`,
414
416
  disabled: e.disabled
415
417
  }, e.attrs, k(e.listeners || {}), {
416
- onChange: a[9] || (a[9] = (o) => I(t.value, e.prop, e.index))
418
+ onChange: a[10] || (a[10] = (o) => S(t.value, e.prop, e.index))
417
419
  }), D({
418
420
  default: m(() => [
419
- (s(!0), V(C, null, J(e.options, (o, N) => {
421
+ (s(!0), V(w, null, J(e.options, (o, T) => {
420
422
  var re;
421
423
  return s(), f(d, {
422
- key: `${N}-${(re = e.attrs) != null && re.valueKey ? o[e.attrs.valueKey] || o.label : o.value}`,
424
+ key: `${T}-${(re = e.attrs) != null && re.valueKey ? o[e.attrs.valueKey] || o.label : o.value}`,
423
425
  label: o.label,
424
426
  value: o.value,
425
427
  disabled: o.disabled
@@ -431,13 +433,13 @@ const Ge = { class: "ls-form-item-label" }, qe = {
431
433
  e.attrs && e.attrs.multiple && !h(v)(e.options) && e.selectAll ? {
432
434
  name: "header",
433
435
  fn: m(() => [
434
- B(T, {
436
+ I(L, {
435
437
  modelValue: G.value,
436
- "onUpdate:modelValue": a[7] || (a[7] = (o) => G.value = o),
438
+ "onUpdate:modelValue": a[8] || (a[8] = (o) => G.value = o),
437
439
  indeterminate: q.value,
438
440
  onChange: ve
439
441
  }, {
440
- default: m(() => a[23] || (a[23] = [
442
+ default: m(() => a[25] || (a[25] = [
441
443
  P(" 全部 ")
442
444
  ])),
443
445
  _: 1
@@ -448,7 +450,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
448
450
  ]), 1040, ["modelValue", "placeholder", "disabled"])) : e.type === "date" ? (s(), f(oe, $({
449
451
  key: 7,
450
452
  modelValue: t.value,
451
- "onUpdate:modelValue": a[10] || (a[10] = (o) => t.value = o),
453
+ "onUpdate:modelValue": a[11] || (a[11] = (o) => t.value = o),
452
454
  type: "date",
453
455
  clearable: !0,
454
456
  placeholder: `请选择${e.label}`,
@@ -456,7 +458,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
456
458
  }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : e.type === "datetimerange" ? (s(), f(oe, $({
457
459
  key: 8,
458
460
  modelValue: t.value,
459
- "onUpdate:modelValue": a[11] || (a[11] = (o) => t.value = o),
461
+ "onUpdate:modelValue": a[12] || (a[12] = (o) => t.value = o),
460
462
  type: "daterange",
461
463
  clearable: !0,
462
464
  "start-placeholder": "开始时间",
@@ -464,48 +466,50 @@ const Ge = { class: "ls-form-item-label" }, qe = {
464
466
  }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "timePicker" ? (s(), f(be, $({
465
467
  key: 9,
466
468
  modelValue: t.value,
467
- "onUpdate:modelValue": a[12] || (a[12] = (o) => t.value = o),
469
+ "onUpdate:modelValue": a[13] || (a[13] = (o) => t.value = o),
468
470
  placeholder: `请选择${e.label}`
469
471
  }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder"])) : e.type === "timeSelect" ? (s(), f(ye, $({
470
472
  key: 10,
471
473
  modelValue: t.value,
472
- "onUpdate:modelValue": a[13] || (a[13] = (o) => t.value = o),
474
+ "onUpdate:modelValue": a[14] || (a[14] = (o) => t.value = o),
473
475
  placeholder: `请选择${e.label}`
474
476
  }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue", "placeholder"])) : e.type === "cascader" ? (s(), f(te, $({
475
477
  key: 11,
476
478
  modelValue: t.value,
477
- "onUpdate:modelValue": a[14] || (a[14] = (o) => t.value = o),
479
+ "onUpdate:modelValue": a[15] || (a[15] = (o) => t.value = o),
478
480
  clearable: !0,
479
481
  placeholder: `请选择${e.label}`,
480
482
  options: e.options
481
483
  }, e.attrs, k(e.listeners || {}), {
482
- onChange: a[15] || (a[15] = (o) => I(t.value, e.prop, e.index))
484
+ onChange: a[16] || (a[16] = (o) => S(t.value, e.prop, e.index))
483
485
  }), null, 16, ["modelValue", "placeholder", "options"])) : e.type === "multipleCascader" ? (s(), f(te, $({
484
486
  key: 12,
485
487
  modelValue: t.value,
486
- "onUpdate:modelValue": a[16] || (a[16] = (o) => t.value = o),
488
+ "onUpdate:modelValue": a[17] || (a[17] = (o) => t.value = o),
487
489
  clearable: !0,
488
490
  placeholder: `请选择${e.label}`,
489
491
  options: e.options
490
492
  }, e.attrs, { props: me.value }, k(e.listeners || {}), {
491
- onChange: a[17] || (a[17] = (o) => I(t.value, e.prop, e.index))
493
+ onChange: a[18] || (a[18] = (o) => S(t.value, e.prop, e.index))
492
494
  }), null, 16, ["modelValue", "placeholder", "options", "props"])) : e.type === "switch" ? (s(), f($e, $({
493
495
  key: 13,
494
496
  modelValue: t.value,
495
- "onUpdate:modelValue": a[18] || (a[18] = (o) => t.value = o)
496
- }, e.attrs, k(e.listeners || {})), null, 16, ["modelValue"])) : e.type === "inputRange" ? (s(), V("div", He, [
497
- B(p, $({
497
+ "onUpdate:modelValue": a[19] || (a[19] = (o) => t.value = o)
498
+ }, e.attrs, k(e.listeners || {}), {
499
+ onChange: a[20] || (a[20] = (o) => S(t.value, e.prop, e.index))
500
+ }), null, 16, ["modelValue"])) : e.type === "inputRange" ? (s(), V("div", He, [
501
+ I(p, $({
498
502
  modelValue: U.value,
499
- "onUpdate:modelValue": a[19] || (a[19] = (o) => U.value = o),
503
+ "onUpdate:modelValue": a[21] || (a[21] = (o) => U.value = o),
500
504
  modelModifiers: { trim: !0 },
501
505
  clearable: !0,
502
506
  placeholder: `请输入起始${e.label}`,
503
507
  disabled: e.disabled
504
508
  }, e.attrs && h(E)(e.attrs || {}, e.rangeProps[0] || "start"), k(e.listeners && h(E)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
505
- P("   " + w(e.rangeSeparator) + "   ", 1),
506
- B(p, $({
509
+ P("   " + C(e.rangeSeparator) + "   ", 1),
510
+ I(p, $({
507
511
  modelValue: A.value,
508
- "onUpdate:modelValue": a[20] || (a[20] = (o) => A.value = o),
512
+ "onUpdate:modelValue": a[22] || (a[22] = (o) => A.value = o),
509
513
  modelModifiers: { trim: !0 },
510
514
  clearable: !0,
511
515
  placeholder: `请输入截止${e.label}`,
@@ -549,18 +553,18 @@ const Ge = { class: "ls-form-item-label" }, qe = {
549
553
  } : void 0
550
554
  ]), 1040, ["modelValue", "placeholder", "disabled"])
551
555
  ])) : e.type === "inputNumberRange" ? (s(), V("div", Je, [
552
- B(y, $({
556
+ I(y, $({
553
557
  modelValue: U.value,
554
- "onUpdate:modelValue": a[21] || (a[21] = (o) => U.value = o),
558
+ "onUpdate:modelValue": a[23] || (a[23] = (o) => U.value = o),
555
559
  modelModifiers: { trim: !0 },
556
560
  clearable: !0,
557
561
  placeholder: `请输入起始${e.label}`,
558
562
  disabled: e.disabled
559
563
  }, e.attrs && h(E)(e.attrs || {}, e.rangeProps[0] || "start"), k(e.listeners && h(E)(e.listeners || {}, e.rangeProps[0] || "start") || {})), null, 16, ["modelValue", "placeholder", "disabled"]),
560
- P("   " + w(e.rangeSeparator) + "   ", 1),
561
- B(y, $({
564
+ P("   " + C(e.rangeSeparator) + "   ", 1),
565
+ I(y, $({
562
566
  modelValue: A.value,
563
- "onUpdate:modelValue": a[22] || (a[22] = (o) => A.value = o),
567
+ "onUpdate:modelValue": a[24] || (a[24] = (o) => A.value = o),
564
568
  modelModifiers: { trim: !0 },
565
569
  clearable: !0,
566
570
  placeholder: `请输入截止${e.label}`,
@@ -590,7 +594,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
590
594
  slotRow: { ...l },
591
595
  value: t.value,
592
596
  updateModelValue: Y
593
- }, void 0, !0) : O("", !0)
597
+ }, void 0, !0) : B("", !0)
594
598
  ], 64)),
595
599
  b(e.$slots, `${u.value}-append`, {
596
600
  slotRow: { ...l }
@@ -604,7 +608,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
604
608
  ne("div", Ge, [
605
609
  ne("span", {
606
610
  class: H(e.labelClass)
607
- }, w(e.label), 3),
611
+ }, C(e.label), 3),
608
612
  e.tooltip ? (s(), f(r, {
609
613
  key: 0,
610
614
  effect: "dark",
@@ -612,7 +616,7 @@ const Ge = { class: "ls-form-item-label" }, qe = {
612
616
  content: e.tooltip
613
617
  }, {
614
618
  default: m(() => [
615
- B(i, {
619
+ I(i, {
616
620
  class: H(["ml-4", e.labelIconClass])
617
621
  }, {
618
622
  default: m(() => [
@@ -622,17 +626,17 @@ const Ge = { class: "ls-form-item-label" }, qe = {
622
626
  }, void 0, !0) : e.$slots[`${u.value}-label-icon`] ? b(e.$slots, `${u.value}-label-icon`, {
623
627
  key: 1,
624
628
  slotRow: { ...l }
625
- }, void 0, !0) : O("", !0)
629
+ }, void 0, !0) : B("", !0)
626
630
  ]),
627
631
  _: 3
628
632
  }, 8, ["class"])
629
633
  ]),
630
634
  _: 3
631
- }, 8, ["content"])) : O("", !0),
635
+ }, 8, ["content"])) : B("", !0),
632
636
  e.colon ? (s(), V("span", {
633
637
  key: 1,
634
638
  class: H(e.labelClass)
635
- }, ":", 2)) : O("", !0)
639
+ }, ":", 2)) : B("", !0)
636
640
  ])
637
641
  ]),
638
642
  key: "0"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-d9ba7e3f"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-24ad4be7"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9ba7e3f"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24ad4be7"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var U=Object.defineProperty;var o=(S,L)=>U(S,"name",{value:L,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),$=,/* empty css */G=,/* empty css */H=,/* empty css */C=,/* empty css */J=,/* empty css */F=,/* empty css */K=require("luckyexcel"),r=;/* empty css */;/* empty css */;/* empty css */;/* empty css */const Q=,/* empty css */W=s.defineComponent({name:"LSXlsx"}),Y=s.defineComponent({...W,props:G.xlsxProps,emits:H.previewEmits,setup(S,{emit:L}){const x=$.useNamespace("xlsx"),M=x.b(),f=S,l=L;s.watch(()=>f.source,e=>{const{size:t}=e||{};t/1024/1024<=r.fileSizeLimit?j(e):f.hasPagination?A(e):(Q.ElMessage.error(`文件大小超过 ${r.fileSizeLimit} MB,加载失败!`),l("loadComplete"))},{immediate:!0,deep:!0});const v=s.ref(!1);function P(){const e=document.scripts;for(let t=0;t<e.length;t++)if(e[t].src.includes("luckysheet"))return!0;return!1}o(P,"isLuckySheet");const I=o(()=>{f.onClose&&f.onClose(),l("update:source",[])},"closeFunc");async function j(e){if(_(e))try{K.transformExcelToLucky(e,function(t){t.sheets!=null&&(window.luckysheet.destroy(),window.luckysheet.create({data:t.sheets,title:t.info.name,...r.luckysheetConfig}))}),l("loadComplete")}catch{l("loadError")}}o(j,"initXlsx");function R(e){const t=Math.min(0+r.rowsPerBatch,e.length),d=e.slice(0,t);let u=0;const n=[[]];return window.luckysheet.transToCellData(d).forEach(a=>{const{r:h}=a;u!==h&&(u=h,n[u]=[]),n[u].push(a)}),n}o(R,"getSheetData");async function A(e){if(await s.nextTick(),!!_(e))try{const t=new FileReader;t.onload=async function(d){var D,T;const u=F.read(d.target.result,{type:"binary",dense:!0});let n=0;const a=(u.SheetNames||[]).map(c=>({name:c,data:F.utils.sheet_to_json(u.Sheets[c],{header:1})})),h=s.ref((D=a[n])==null?void 0:D.name),m=s.ref((T=a[n])==null?void 0:T.data);let p=m.value.length,q=0;const X=(a||[]).map((c,y)=>({name:c.name,index:y+1,status:"1",order:y,data:R(c.data)}));function b(){if(q*r.rowsPerBatch>=p)return;const c=q*r.rowsPerBatch,y=Math.min(c+r.rowsPerBatch,p),O=m.value.slice(c,y);let w=0;const B=[[]];if(window.luckysheet.transToCellData(O).forEach(k=>{const{r:i}=k;w!==i&&(w=i,B[w]=[]),B[w].push(k)}),v.value)window.luckysheet.updataSheet({data:[{name:h,index:n+1,status:"1",order:n,data:B}]});else{window.luckysheet.destroy();const k={...r.luckysheetConfig,hook:{sheetActivate(i){var g,N,z;if(n!=i){n=i-1,h.value=(g=a[n])==null?void 0:g.name,m.value=((N=a[n])==null?void 0:N.data)||[],p=m.value.length;const E=(z=document.getElementById("luckysheet"))==null?void 0:z.querySelector('.spage-number button[data-page="1"]');E==null||E.click()}},onTogglePager(i){const{page:g}=i;q=g-1,b()}}};window.luckysheet.create({data:X,pager:{pageIndex:1,total:p,pageSize:r.rowsPerBatch,showTotal:!0,showSkip:!0,showPN:!0,prevPage:"",nextPage:"",totalTxt:""},...k}),v.value=!0}l("loadComplete")}o(b,"loadBatch"),b()},t.readAsArrayBuffer(e)}catch{l("loadError")}}o(A,"initXlsxLarge");async function _(e){return!e||!J.isFile(e)?!1:(P()||(await C.loadCss(r.cssList),await C.loadJs(r.jsList)),!0)}o(_,"initLuckySheet");function V(){v.value&&window.luckysheet.destroy(),P()&&(C.removeCss(r.cssList),C.removeJs(r.jsList))}return o(V,"resetLuckySheet"),s.onBeforeUnmount(()=>{V()}),(e,t)=>{const d=s.resolveComponent("LSIcon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(s.unref(M))},[s.createElementVNode("span",{class:s.normalizeClass([s.unref(x).e("btn"),s.unref(x).e("close")]),onClick:I},[s.createVNode(d,{name:"Close",size:24,color:"#FFF"})],2),t[0]||(t[0]=s.createElementVNode("div",{id:"luckysheet",class:"luckysheet-wrap"},null,-1))],2)}}});exports.default=Y;
1
+ "use strict";var U=Object.defineProperty;var o=(S,L)=>U(S,"name",{value:L,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),$=,/* empty css */G=,/* empty css */H=,/* empty css */C=,/* empty css */J=,/* empty css */F=,/* empty css */K=require("luckyexcel"),r=;/* empty css */;/* empty css */;/* empty css */;/* empty css */const Q=,/* empty css */W=s.defineComponent({name:"LSXlsx"}),Y=s.defineComponent({...W,props:G.xlsxProps,emits:H.previewEmits,setup(S,{emit:L}){const x=$.useNamespace("xlsx"),M=x.b(),f=S,l=L;s.watch(()=>f.source,e=>{const{size:t}=e||{};t/1024/1024<=r.fileSizeLimit?j(e):f.hasPagination?A(e):(Q.ElMessage.error(`文件大小超过 ${r.fileSizeLimit} MB,加载失败!`),l("loadComplete"))},{immediate:!0,deep:!0});const v=s.ref(!1);function P(){const e=document.scripts;for(let t=0;t<e.length;t++)if(e[t].src.includes("luckysheet"))return!0;return!1}o(P,"isLuckySheet");const I=o(()=>{f.onClose&&f.onClose(),l("update:source",[])},"closeFunc");async function j(e){if(await _(e))try{K.transformExcelToLucky(e,function(t){t.sheets!=null&&(window.luckysheet.destroy(),window.luckysheet.create({data:t.sheets,title:t.info.name,...r.luckysheetConfig}))}),l("loadComplete")}catch{l("loadError")}}o(j,"initXlsx");function R(e){const t=Math.min(0+r.rowsPerBatch,e.length),d=e.slice(0,t);let u=0;const n=[[]];return window.luckysheet.transToCellData(d).forEach(a=>{const{r:h}=a;u!==h&&(u=h,n[u]=[]),n[u].push(a)}),n}o(R,"getSheetData");async function A(e){if(await s.nextTick(),!!await _(e))try{const t=new FileReader;t.onload=async function(d){var D,T;const u=F.read(d.target.result,{type:"binary",dense:!0});let n=0;const a=(u.SheetNames||[]).map(c=>({name:c,data:F.utils.sheet_to_json(u.Sheets[c],{header:1})})),h=s.ref((D=a[n])==null?void 0:D.name),m=s.ref((T=a[n])==null?void 0:T.data);let p=m.value.length,q=0;const X=(a||[]).map((c,y)=>({name:c.name,index:y+1,status:"1",order:y,data:R(c.data)}));function b(){if(q*r.rowsPerBatch>=p)return;const c=q*r.rowsPerBatch,y=Math.min(c+r.rowsPerBatch,p),O=m.value.slice(c,y);let w=0;const B=[[]];if(window.luckysheet.transToCellData(O).forEach(k=>{const{r:i}=k;w!==i&&(w=i,B[w]=[]),B[w].push(k)}),v.value)window.luckysheet.updataSheet({data:[{name:h,index:n+1,status:"1",order:n,data:B}]});else{window.luckysheet.destroy();const k={...r.luckysheetConfig,hook:{sheetActivate(i){var g,N,z;if(n!=i){n=i-1,h.value=(g=a[n])==null?void 0:g.name,m.value=((N=a[n])==null?void 0:N.data)||[],p=m.value.length;const E=(z=document.getElementById("luckysheet"))==null?void 0:z.querySelector('.spage-number button[data-page="1"]');E==null||E.click()}},onTogglePager(i){const{page:g}=i;q=g-1,b()}}};window.luckysheet.create({data:X,pager:{pageIndex:1,total:p,pageSize:r.rowsPerBatch,showTotal:!0,showSkip:!0,showPN:!0,prevPage:"",nextPage:"",totalTxt:""},...k}),v.value=!0}l("loadComplete")}o(b,"loadBatch"),b()},t.readAsArrayBuffer(e)}catch{l("loadError")}}o(A,"initXlsxLarge");async function _(e){return!e||!J.isFile(e)?!1:(P()||(await C.loadCss(r.cssList),await C.loadJs(r.jsList)),!0)}o(_,"initLuckySheet");function V(){v.value&&window.luckysheet.destroy(),P()&&(C.removeCss(r.cssList),C.removeJs(r.jsList))}return o(V,"resetLuckySheet"),s.onBeforeUnmount(()=>{V()}),(e,t)=>{const d=s.resolveComponent("LSIcon");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(s.unref(M))},[s.createElementVNode("span",{class:s.normalizeClass([s.unref(x).e("btn"),s.unref(x).e("close")]),onClick:I},[s.createVNode(d,{name:"Close",size:24,color:"#FFF"})],2),t[0]||(t[0]=s.createElementVNode("div",{id:"luckysheet",class:"luckysheet-wrap"},null,-1))],2)}}});exports.default=Y;