@lingshugroup/web-plus 1.0.21 → 1.0.23

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 (43) hide show
  1. package/README.md +1 -3
  2. package/lib/dialog/index.cjs +1 -1
  3. package/lib/dialog/index.js +7 -6
  4. package/lib/index/index.cjs +1 -1
  5. package/lib/index/index.js +55 -54
  6. package/lib/index/index.js.br +0 -0
  7. package/lib/index/index.js.gz +0 -0
  8. package/lib/index.css +1 -1
  9. package/lib/index.css.br +0 -0
  10. package/lib/index.css.gz +0 -0
  11. package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
  12. package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
  13. package/lib/packages/ls-components/components/chart/Index.vue/index2.cjs +1 -1
  14. package/lib/packages/ls-components/components/chart/Index.vue/index2.js +21 -21
  15. package/lib/packages/ls-components/components/chart/Index.vue/index2.js.br +0 -0
  16. package/lib/packages/ls-components/components/chart/Index.vue/index2.js.gz +0 -0
  17. package/lib/packages/ls-components/components/chart/config/template/bar/index.cjs +1 -1
  18. package/lib/packages/ls-components/components/chart/config/template/bar/index.js +79 -73
  19. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.br +0 -0
  20. package/lib/packages/ls-components/components/chart/config/template/bar/index.js.gz +0 -0
  21. package/lib/packages/ls-components/components/chart/config/template/line/index.cjs +1 -1
  22. package/lib/packages/ls-components/components/chart/config/template/line/index.js +84 -77
  23. package/lib/packages/ls-components/components/chart/config/template/line/index.js.br +0 -0
  24. package/lib/packages/ls-components/components/chart/config/template/line/index.js.gz +0 -0
  25. package/lib/packages/ls-components/components/descriptions/Index.vue/index.cjs +1 -1
  26. package/lib/packages/ls-components/components/descriptions/Index.vue/index.js +1 -1
  27. package/lib/packages/ls-components/components/dialog/Index.vue/index.cjs +1 -1
  28. package/lib/packages/ls-components/components/dialog/Index.vue/index.js +134 -5
  29. package/lib/packages/ls-components/components/dialog/Index.vue/index.js.br +0 -0
  30. package/lib/packages/ls-components/components/dialog/Index.vue/index.js.gz +0 -0
  31. package/lib/packages/ls-components/components/dialog/Index.vue/index3.cjs +1 -0
  32. package/lib/packages/ls-components/components/dialog/Index.vue/index3.js +5 -0
  33. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index.cjs +1 -1
  34. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index.js +2 -2
  35. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.cjs +1 -1
  36. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.js +1 -1
  37. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.js.br +0 -0
  38. package/lib/packages/ls-components/components/preview/components/Xlsx.vue/index2.js.gz +0 -0
  39. package/package.json +1 -1
  40. package/lib/packages/ls-components/components/dialog/Index.vue/index2.cjs +0 -1
  41. package/lib/packages/ls-components/components/dialog/Index.vue/index2.js +0 -139
  42. package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.br +0 -0
  43. package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.gz +0 -0
@@ -1,17 +1,17 @@
1
- var D = Object.defineProperty;
2
- var p = (o, t) => D(o, "name", { value: t, configurable: !0 });
3
- import { numberFixed as w, formatChartAxis as I } from "../../../../_utils/utils/index.js";
4
- import { BG_COLOR_MAP as R, DEF_THEME as r, BAR_COLOR_MAP as _, TOOLTIP_COLOR_MAP as v, FONT_COLOR_MAP as g, DATA_ZOOM_COLOR as L, BG_BAR_COLOR_MAP as A, SPLIT_LINE_COLOR as O } from "../../base/index.js";
5
- const k = /* @__PURE__ */ p((o, t, e, n, s) => {
6
- const { name: a, seriesName: l, value: i, color: u } = o, d = n == 0 ? `<div class="name">${a}</div>` : "", y = t && i !== "-" && l !== "temp" ? `<span class="serise-name">${t ? l : ""}</span>` : "", c = i !== "-" && l !== "temp" ? `<span class="value">${i || "-"}</span>` : "", m = i !== "-" && l !== "temp" ? `<div class="content-badge ${e}" style="background-color: ${typeof u == "string" ? u : s};"></div>` : "";
1
+ var I = Object.defineProperty;
2
+ var p = (a, t) => I(a, "name", { value: t, configurable: !0 });
3
+ import { numberFixed as C, formatChartAxis as D } from "../../../../_utils/utils/index.js";
4
+ import { BG_COLOR_MAP as R, DEF_THEME as s, BAR_COLOR_MAP as M, TOOLTIP_COLOR_MAP as O, FONT_COLOR_MAP as b, DATA_ZOOM_COLOR as L, BG_BAR_COLOR_MAP as A, SPLIT_LINE_COLOR as S } from "../../base/index.js";
5
+ const k = /* @__PURE__ */ p((a, t, e, n, o) => {
6
+ const { name: r, seriesName: i, value: l, color: u } = a, d = n == 0 ? `<div class="name">${r}</div>` : "", y = t && l !== "-" && i !== "temp" ? `<span class="serise-name">${t ? i : ""}</span>` : "", c = l !== "-" && i !== "temp" ? `<span class="value">${l || "-"}</span>` : "", m = l !== "-" && i !== "temp" ? `<div class="content-badge ${e}" style="background-color: ${typeof u == "string" ? u : o};"></div>` : "";
7
7
  return ` ${d} <div class="content"> <div class="serise-wrap"> ${m} ${y} </div> ${c} </div> `;
8
- }, "setTooltipFormat"), H = /* @__PURE__ */ p((o) => {
9
- let { legend: t, legendIcon: e, tooltip: n = "shadow", theme: s, tooltipFormatter: a, barColorList: l } = o;
10
- const i = l || _[s || r][0];
11
- return a = a || function(u) {
12
- let d = `<div class="ls-bar-tooltip-wrap ${s}">`;
8
+ }, "setTooltipFormat"), H = /* @__PURE__ */ p((a) => {
9
+ let { legend: t, legendIcon: e, tooltip: n = "shadow", theme: o, tooltipFormatter: r, barColorList: i } = a;
10
+ const l = i || M[o || s][0];
11
+ return r = r || function(u) {
12
+ let d = `<div class="ls-bar-tooltip-wrap ${o}">`;
13
13
  return u.forEach((y, c) => {
14
- d += k(y, t, e, c, i);
14
+ d += k(y, t, e, c, l);
15
15
  }), d + "</div>";
16
16
  }, n ? {
17
17
  trigger: "axis",
@@ -19,19 +19,19 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
19
19
  type: n,
20
20
  z: 1,
21
21
  label: {
22
- color: v[s || r].color
22
+ color: O[o || s].color
23
23
  }
24
24
  },
25
25
  textStyle: {
26
- color: g[s || r]
26
+ color: b[o || s]
27
27
  },
28
28
  padding: 12,
29
- backgroundColor: v[s || r].bgColor,
30
- extraCssText: `box-shadow: ${v[s || r].shadowColor};`,
31
- formatter: a
29
+ backgroundColor: O[o || s].bgColor,
30
+ extraCssText: `box-shadow: ${O[o || s].shadowColor};`,
31
+ formatter: r
32
32
  } : null;
33
- }, "setTooltip"), T = /* @__PURE__ */ p((o) => {
34
- const { legend: t, legendIcon: e = "rect", theme: n } = o;
33
+ }, "setTooltip"), T = /* @__PURE__ */ p((a) => {
34
+ const { legend: t, legendIcon: e = "rect", theme: n } = a;
35
35
  return {
36
36
  type: "scroll",
37
37
  data: t || [],
@@ -39,7 +39,7 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
39
39
  itemWidth: 12,
40
40
  itemHeight: 10,
41
41
  textStyle: {
42
- color: g[n || r],
42
+ color: b[n || s],
43
43
  fontSize: 12,
44
44
  height: 10,
45
45
  rich: {
@@ -49,8 +49,8 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
49
49
  }
50
50
  }
51
51
  };
52
- }, "setLegend"), F = /* @__PURE__ */ p((o) => {
53
- const { dataZoom: t } = o, e = {
52
+ }, "setLegend"), Z = /* @__PURE__ */ p((a) => {
53
+ const { dataZoom: t } = a, e = {
54
54
  left: "3%",
55
55
  right: "3%",
56
56
  top: "12%",
@@ -58,19 +58,19 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
58
58
  containLabel: !0
59
59
  };
60
60
  return t === "vertical" && delete e.right, t === "horizontal" && delete e.bottom, e;
61
- }, "setGrid"), C = /* @__PURE__ */ p((o, t, e) => {
62
- const { axisData: n, seriesData: s } = o, { axis: a = "x", theme: l, lineBar: i, dynamicAxis: u, type: d } = t;
61
+ }, "setGrid"), _ = /* @__PURE__ */ p((a, t, e) => {
62
+ const { axisData: n, seriesData: o } = a, { axis: r = "x", theme: i, lineBar: l, dynamicAxis: u, type: d } = t;
63
63
  let y = [
64
64
  {
65
- type: a == e ? "category" : "value",
65
+ type: r == e ? "category" : "value",
66
66
  axisTick: {
67
67
  show: !1
68
68
  },
69
69
  axisLine: {
70
- show: a == e,
70
+ show: r == e,
71
71
  lineStyle: {
72
72
  width: 1,
73
- color: g[l || r]
73
+ color: b[i || s]
74
74
  }
75
75
  },
76
76
  axisLabel: {
@@ -79,19 +79,19 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
79
79
  splitLine: {
80
80
  lineStyle: {
81
81
  type: "dashed",
82
- color: O[l || r]
82
+ color: S[i || s]
83
83
  }
84
84
  },
85
- data: a == e ? n : []
85
+ data: r == e ? n : []
86
86
  }
87
87
  ];
88
- if (a !== e && (i && (y = a == "x" ? [
88
+ if (r !== e && (l && (y = r == "x" ? [
89
89
  {
90
90
  type: "value",
91
91
  splitLine: {
92
92
  show: !1,
93
93
  lineStyle: {
94
- color: O[l || r]
94
+ color: S[i || s]
95
95
  }
96
96
  }
97
97
  },
@@ -99,7 +99,7 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
99
99
  type: "value",
100
100
  splitLine: {
101
101
  lineStyle: {
102
- color: O[l || r],
102
+ color: S[i || s],
103
103
  type: "dashed",
104
104
  width: 2,
105
105
  dashOffset: 2
@@ -112,16 +112,16 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
112
112
  }
113
113
  ]), u)) {
114
114
  let c = [];
115
- d === "multiple" && (!i || a == "y" && i) && (c = s.reduce((m, h) => m.concat(h.data), [])), y.map((m, h) => {
116
- var S;
117
- d === "multiple" ? i && a == "x" && (c = (((S = s[h]) == null ? void 0 : S.data) || []).map((b) => w(b))) : c = (s || []).map((b) => w(b));
118
- const f = Math.max(...c), x = Math.min(...c), { aInterval: M, aMax: $, aMin: B } = I(f, x);
119
- return m.min = B, m.max = $, m.interval = M, m;
115
+ d === "multiple" && (!l || r == "y" && l) && (c = o.reduce((m, x) => m.concat(x.data), [])), y.map((m, x) => {
116
+ var w;
117
+ d === "multiple" ? l && r == "x" && (c = (((w = o[x]) == null ? void 0 : w.data) || []).map((v) => C(v))) : c = (o || []).map((v) => C(v));
118
+ const h = Math.max(...c), g = Math.min(...c), { aInterval: f, aMax: $, aMin: B } = D(h, g);
119
+ return m.min = B, m.max = $, m.interval = f, m;
120
120
  });
121
121
  }
122
122
  return y;
123
- }, "setAxis"), E = /* @__PURE__ */ p((o) => {
124
- const { dataZoom: t, theme: e } = o;
123
+ }, "setAxis"), F = /* @__PURE__ */ p((a) => {
124
+ const { dataZoom: t, dataZoomColorOut: e, dataZoomColorIn: n, theme: o } = a;
125
125
  return t ? [
126
126
  {
127
127
  show: !0,
@@ -130,14 +130,20 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
130
130
  orient: t,
131
131
  showDataShadow: !0,
132
132
  dataBackground: {
133
+ lineStyle: {
134
+ color: "transparent"
135
+ },
133
136
  areaStyle: {
134
- color: L[e || r][0]
137
+ color: n || L[o || s][0]
135
138
  }
136
139
  },
137
- fillerColor: L[e || r][1],
140
+ fillerColor: e || L[o || s][1],
141
+ moveHandleStyle: {
142
+ opacity: 0
143
+ },
138
144
  borderColor: null,
139
145
  textStyle: {
140
- color: g[e || r]
146
+ color: b[o || s]
141
147
  }
142
148
  },
143
149
  {
@@ -153,76 +159,77 @@ const k = /* @__PURE__ */ p((o, t, e, n, s) => {
153
159
  showDataShadow: !0
154
160
  }
155
161
  ] : null;
156
- }, "setDataZoom"), Z = /* @__PURE__ */ p((o, t) => {
157
- const { seriesData: e } = o, {
162
+ }, "setDataZoom"), E = /* @__PURE__ */ p((a, t) => {
163
+ const { seriesData: e } = a, {
158
164
  type: n = "simple",
159
- showBarFont: s = !0,
160
- labelPosition: a = "inside",
161
- smooth: l = !0,
162
- areaStyle: i = void 0,
165
+ showBarFont: o = !0,
166
+ labelPosition: r = "inside",
167
+ smooth: i = !0,
168
+ areaStyle: l = void 0,
163
169
  showBackground: u,
164
170
  theme: d,
165
171
  name: y,
166
172
  lineBar: c,
167
- axis: m
173
+ axis: m,
174
+ symbol: x = "circle"
168
175
  } = t;
169
- return n === "multiple" ? (e || []).map((h, f) => {
170
- const x = {
176
+ return n === "multiple" ? (e || []).map((h, g) => {
177
+ const f = {
171
178
  name: h.name,
172
179
  type: h.type,
180
+ symbol: x,
173
181
  emphasis: h.emphasis || {
174
182
  focus: "series"
175
183
  },
176
- smooth: l,
177
- areaStyle: i || {
178
- opacity: 0.2
179
- },
184
+ smooth: i,
185
+ areaStyle: l || null,
180
186
  label: {
181
- show: s,
182
- position: a
187
+ show: o,
188
+ position: r
183
189
  },
184
190
  showBackground: u,
185
191
  backgroundStyle: {
186
- color: A[d || r]
192
+ color: A[d || s]
187
193
  },
188
194
  itemStyle: h.itemStyle || {},
189
195
  data: h.data || []
190
196
  };
191
- return c && (m !== "y" && f === 1 ? x.yAxisIndex = f : x.yAxisIndex && delete x.yAxisIndex), x;
197
+ return c && (m !== "y" && g === 1 ? f.yAxisIndex = g : f.yAxisIndex && delete f.yAxisIndex), f;
192
198
  }) : [
193
199
  {
194
200
  name: y,
195
201
  label: {
196
- show: s,
197
- position: a
202
+ show: o,
203
+ position: r
198
204
  },
199
205
  showBackground: u,
200
206
  backgroundStyle: {
201
- color: A[d || r]
207
+ color: A[d || s]
202
208
  },
203
209
  data: e || [],
204
- smooth: l,
210
+ smooth: i,
211
+ symbol: x,
205
212
  // 设置填充透明度
206
- areaStyle: i || { opacity: 0.2 },
213
+ areaStyle: l || null,
207
214
  type: "line"
208
215
  }
209
216
  ];
210
- }, "setSeries"), z = /* @__PURE__ */ p((o, t) => {
211
- const { theme: e, barColorList: n } = t, s = {
217
+ }, "setSeries"), z = /* @__PURE__ */ p((a, t) => {
218
+ const { theme: e, barColorList: n } = t, o = {
212
219
  textStyle: {},
213
- backgroundColor: R[e || r],
214
- color: n || _[e || r],
220
+ backgroundColor: R[e || s],
221
+ color: n || M[e || s],
215
222
  legend: T(t),
216
- grid: F(t),
217
- xAxis: C(o, t, "x"),
218
- yAxis: C(o, t, "y"),
219
- series: Z(o, t),
220
- dataZoom: E(t)
221
- }, a = H(t);
222
- return a && (s.tooltip = a), s;
223
+ grid: Z(t),
224
+ xAxis: _(a, t, "x"),
225
+ yAxis: _(a, t, "y"),
226
+ series: E(a, t),
227
+ dataZoom: F(t)
228
+ }, r = H(t);
229
+ return r && (o.tooltip = r), o;
223
230
  }, "setOption");
224
- function W(o = {}, t = {}) {
225
- return z(o, t);
231
+ function W(a = {}, t = {}) {
232
+ return z(a, t);
226
233
  }
227
234
  p(W, "dealOption");
228
235
  export {
@@ -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-eb7461ce"]]);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-7a22ee84"]]);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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb7461ce"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7a22ee84"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -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-1166dfbd"]]);exports.default=u;
1
+ "use strict";var N=Object.defineProperty;var l=(n,a)=>N(n,"name",{value:a,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),_=,/* empty css */k=,/* empty css */s=,/* empty css */D=,/* empty css */x=,/* empty css */M=,/* empty css */P={key:1,class:"content-wrap"},$={class:"dialog-footer"},E=e.defineComponent({name:"LSDialog",inheritAttrs:!1,__name:"Index",props:e.mergeModels(k.lsDialogProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(k.lsEmitNames,["update:modelValue"]),setup(n,{expose:a,emit:S}){const r=n,i=S,v=e.useSlots(),t=e.useModel(n,"modelValue"),y=_.useNamespace("dialog").b(),d=e.ref(),u=e.ref({width:"50%",closeOnClickModal:!1,closeOnPressEscape:!1,zIndex:2e3}),c=e.ref(0);e.watch(()=>t==null?void 0:t.value,o=>{o&&r.openScroll&&p()},{immediate:!0,deep:!0});const f=e.computed(()=>s.default({txt:"取消"},r.btnCancelConfig)),m=e.computed(()=>s.default({type:"primary",txt:"确认"},r.btnConfirmConfig));function g(){t.value=!1,i("onCancel")}l(g,"handleClose");function B(){i("onConfirm")}l(B,"handleConfirm");async function p(){await e.nextTick();const o=r.hasFooter?108:60;c.value=parseInt(getComputedStyle(d.value.querySelector(".el-dialog")).height)-o}return l(p,"updateHeight"),a({updateHeight:p}),(o,h)=>{const q=D.ElScrollbar,C=e.resolveComponent("LSButton"),w=x.ElDialog,V=M.vLoading;return e.openBlock(),e.createBlock(w,e.mergeProps({ref_key:"lsDialogRef",ref:d,class:e.unref(y),modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=b=>t.value=b)},e.unref(s.default)(e.unref(u),o.$attrs),{"show-close":!o.loading,onClose:g}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header")]),default:e.withCtx(()=>[o.openScroll?e.withDirectives((e.openBlock(),e.createBlock(q,e.mergeProps({key:0},e.unref(s.default)(e.unref(u),o.$attrs),{"max-height":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16,["max-height"])),[[V,o.contentLoading]]):(e.openBlock(),e.createElementBlock("div",P,[e.renderSlot(o.$slots,"default")]))]),_:2},[o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",$,[e.unref(v).footer?e.renderSlot(o.$slots,"footer",{key:0}):e.createCommentVNode("",!0),o.hasCancelBtn?(e.openBlock(),e.createBlock(C,e.mergeProps({key:1},e.unref(f),{disabled:o.loading,onClick:g}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f).txt),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.createVNode(C,e.mergeProps(e.unref(m),{loading:o.loading,disabled:o.loading,onClick:B}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m).txt),1)]),_:1},16,["loading","disabled"])])]),key:"0"}:void 0]),1040,["class","modelValue","show-close"])}}});exports.default=E;
@@ -1,7 +1,136 @@
1
- import o from "./index2.js";
2
- /* empty css */
3
- import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1166dfbd"]]);
1
+ var H = Object.defineProperty;
2
+ var s = (n, c) => H(n, "name", { value: c, configurable: !0 });
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ import { defineComponent as O, mergeModels as b, useSlots as R, useModel as T, ref as f, watch as q, computed as w, nextTick as z, resolveComponent as U, openBlock as r, createBlock as u, mergeProps as i, unref as o, createSlots as j, withCtx as l, renderSlot as d, withDirectives as x, createElementBlock as G, createElementVNode as J, createCommentVNode as D, createTextVNode as _, toDisplayString as E, createVNode as K } from "vue";
9
+ import { useNamespace as Q } from "../../_hooks/useNamespace/index.js";
10
+ import { lsDialogProp as W, lsEmitNames as X } from "../types/index.js";
11
+ import m from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
12
+ import { ElScrollbar as Y } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/scrollbar/index/index.js";
13
+ import { ElDialog as Z } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/dialog/index/index.js";
14
+ import { vLoading as ee } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/loading/src/directive/index.js";
15
+ const oe = {
16
+ key: 1,
17
+ class: "content-wrap"
18
+ }, te = { class: "dialog-footer" }, Ce = /* @__PURE__ */ O({
19
+ name: "LSDialog",
20
+ inheritAttrs: !1,
21
+ __name: "Index",
22
+ props: /* @__PURE__ */ b(W, {
23
+ modelValue: {
24
+ type: Boolean
25
+ },
26
+ modelModifiers: {}
27
+ }),
28
+ emits: /* @__PURE__ */ b(X, ["update:modelValue"]),
29
+ setup(n, { expose: c, emit: N }) {
30
+ const a = n, p = N, $ = R(), t = T(n, "modelValue"), L = Q("dialog").b(), g = f(), h = f({
31
+ width: "50%",
32
+ closeOnClickModal: !1,
33
+ closeOnPressEscape: !1,
34
+ zIndex: 2e3
35
+ }), C = f(0);
36
+ q(
37
+ () => t == null ? void 0 : t.value,
38
+ (e) => {
39
+ e && a.openScroll && S();
40
+ },
41
+ {
42
+ immediate: !0,
43
+ deep: !0
44
+ }
45
+ );
46
+ const k = w(() => m(
47
+ {
48
+ txt: "取消"
49
+ },
50
+ a.btnCancelConfig
51
+ )), y = w(() => m(
52
+ {
53
+ type: "primary",
54
+ txt: "确认"
55
+ },
56
+ a.btnConfirmConfig
57
+ ));
58
+ function v() {
59
+ t.value = !1, p("onCancel");
60
+ }
61
+ s(v, "handleClose");
62
+ function M() {
63
+ p("onConfirm");
64
+ }
65
+ s(M, "handleConfirm");
66
+ async function S() {
67
+ await z();
68
+ const e = a.hasFooter ? 108 : 60;
69
+ C.value = parseInt(getComputedStyle(g.value.querySelector(".el-dialog")).height) - e;
70
+ }
71
+ return s(S, "updateHeight"), c({
72
+ updateHeight: S
73
+ }), (e, V) => {
74
+ const I = Y, B = U("LSButton"), P = Z, A = ee;
75
+ return r(), u(P, i({
76
+ ref_key: "lsDialogRef",
77
+ ref: g,
78
+ class: o(L),
79
+ modelValue: t.value,
80
+ "onUpdate:modelValue": V[0] || (V[0] = (F) => t.value = F)
81
+ }, o(m)(o(h), e.$attrs), {
82
+ "show-close": !e.loading,
83
+ onClose: v
84
+ }), j({
85
+ header: l(() => [
86
+ d(e.$slots, "header")
87
+ ]),
88
+ default: l(() => [
89
+ e.openScroll ? x((r(), u(I, i({ key: 0 }, o(m)(o(h), e.$attrs), { "max-height": o(C) }), {
90
+ default: l(() => [
91
+ d(e.$slots, "default")
92
+ ]),
93
+ _: 3
94
+ }, 16, ["max-height"])), [
95
+ [A, e.contentLoading]
96
+ ]) : (r(), G("div", oe, [
97
+ d(e.$slots, "default")
98
+ ]))
99
+ ]),
100
+ _: 2
101
+ }, [
102
+ e.hasFooter ? {
103
+ name: "footer",
104
+ fn: l(() => [
105
+ J("div", te, [
106
+ o($).footer ? d(e.$slots, "footer", { key: 0 }) : D("", !0),
107
+ e.hasCancelBtn ? (r(), u(B, i({ key: 1 }, o(k), {
108
+ disabled: e.loading,
109
+ onClick: v
110
+ }), {
111
+ default: l(() => [
112
+ _(E(o(k).txt), 1)
113
+ ]),
114
+ _: 1
115
+ }, 16, ["disabled"])) : D("", !0),
116
+ K(B, i(o(y), {
117
+ loading: e.loading,
118
+ disabled: e.loading,
119
+ onClick: M
120
+ }), {
121
+ default: l(() => [
122
+ _(E(o(y).txt), 1)
123
+ ]),
124
+ _: 1
125
+ }, 16, ["loading", "disabled"])
126
+ ])
127
+ ]),
128
+ key: "0"
129
+ } : void 0
130
+ ]), 1040, ["class", "modelValue", "show-close"]);
131
+ };
132
+ }
133
+ });
5
134
  export {
6
- f as default
135
+ Ce as default
7
136
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */exports.default=e.default;
@@ -0,0 +1,5 @@
1
+ import o from "./index.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -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-af24afd9"]]);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-5d122118"]]);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-af24afd9"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5d122118"]]);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var C=Object.defineProperty;var t=(o,c)=>C(o,"name",{value:c,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../_hooks/useNamespace/index.cjs"),m=require("../../types/index.cjs"),a=require("../../../_utils/utils/index.cjs"),g=require("../../../_utils/check/index.cjs"),_=require("luckyexcel"),b=t(o=>(e.pushScopeId("data-v-af24afd9"),o=o(),e.popScopeId(),o),"_withScopeId"),v=b(()=>e.createElementVNode("div",{id:"luckysheet",class:"luckysheet-wrap"},null,-1)),B=e.defineComponent({name:"LSXlsx"}),S=e.defineComponent({...B,props:m.xlsxProps,emits:m.previewEmits,setup(o,{emit:c}){const u=[{id:"luckysheet1",src:"/luckysheet/plugins/js/plugin.js"},{id:"luckysheet2",src:"/luckysheet/luckysheet.umd.js"}],f=[{id:"luckysheetCss1",src:"/luckysheet/plugins/css/pluginsCss.css"},{id:"luckysheetCss2",src:"/luckysheet/plugins/plugins.css"},{id:"luckysheetCss3",src:"/luckysheet/css/luckysheet.css"},{id:"luckysheetCss4",src:"/luckysheet/assets/iconfont/iconfont.css"}],n=w.useNamespace("xlsx"),p=n.b(),i=o,r=c;e.watch(()=>i.source,s=>{k(s)},{immediate:!0,deep:!0});function d(){const s=document.scripts;for(let l=0;l<s.length;l++)if(s[l].src.includes("luckysheet"))return!0;return!1}t(d,"isLuckySheet");const y=t(()=>{i.onClose&&i.onClose(),r("update:source",[])},"closeFunc");async function k(s){if(!(!s||!g.isFile(s)))try{d()||(await a.loadCss(f),await a.loadJs(u)),_.transformExcelToLucky(s,function(l){l.sheets!=null&&(window.luckysheet.destroy(),window.luckysheet.create({container:"luckysheet",data:l.sheets,title:l.info.name,lang:"zh",gridKey:new Date().getTime(),showinfobar:!1,allowEdit:!1,allowCopy:!1,allowUpdate:!1,showtoolbar:!1,enableAddRow:!1,enableAddBackTop:!1,sheetFormulaBar:!1,showstatisticBar:!1,showsheetbar:!1,forceCalculation:!0,showConfigWindowResize:!1,showsheetbarConfig:{sheet:!0},sheetRightClickConfig:{delete:!1,copy:!1,rename:!1,color:!1,hide:!1,move:!1},cellRightClickConfig:{copy:!1,copyAs:!1,paste:!1,insertRow:!1,insertColumn:!1,deleteRow:!1,deleteColumn:!1,deleteCell:!1,hideRow:!1,hideColumn:!1,rowHeight:!1,columnWidth:!1,clear:!1,matrix:!1,sort:!1,filter:!1,chart:!1,image:!1,link:!1,data:!1,cellFormat:!1},hook:{cellUpdateBefore:t(()=>!1,"cellUpdateBefore"),imageDeleteBefore:t(()=>!1,"imageDeleteBefore"),imageUpdateBefore:t(()=>!1,"imageUpdateBefore")}}))}),r("loadComplete")}catch{r("loadError")}}return t(k,"initXlsx"),e.onBeforeUnmount(()=>{d()||(a.removeCss(f),a.removeJs(u))}),(s,l)=>{const h=e.resolveComponent("LSIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(n).e("btn"),e.unref(n).e("close")]),onClick:y},[e.createVNode(h,{name:"Close",size:24,color:"#FFF"})],2),v],2)}}});exports.default=S;
1
+ "use strict";var C=Object.defineProperty;var t=(o,a)=>C(o,"name",{value:a,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../_hooks/useNamespace/index.cjs"),m=require("../../types/index.cjs"),c=require("../../../_utils/utils/index.cjs"),g=require("../../../_utils/check/index.cjs"),_=require("luckyexcel"),b=t(o=>(e.pushScopeId("data-v-5d122118"),o=o(),e.popScopeId(),o),"_withScopeId"),v=b(()=>e.createElementVNode("div",{id:"luckysheet",class:"luckysheet-wrap"},null,-1)),B=e.defineComponent({name:"LSXlsx"}),S=e.defineComponent({...B,props:m.xlsxProps,emits:m.previewEmits,setup(o,{emit:a}){const u=[{id:"luckysheet1",src:"/luckysheet/plugins/js/plugin.js"},{id:"luckysheet2",src:"/luckysheet/luckysheet.umd.js"}],f=[{id:"luckysheetCss1",src:"/luckysheet/plugins/css/pluginsCss.css"},{id:"luckysheetCss2",src:"/luckysheet/plugins/plugins.css"},{id:"luckysheetCss3",src:"/luckysheet/css/luckysheet.css"},{id:"luckysheetCss4",src:"/luckysheet/assets/iconfont/iconfont.css"}],n=w.useNamespace("xlsx"),p=n.b(),i=o,r=a;e.watch(()=>i.source,s=>{k(s)},{immediate:!0,deep:!0});function d(){const s=document.scripts;for(let l=0;l<s.length;l++)if(s[l].src.includes("luckysheet"))return!0;return!1}t(d,"isLuckySheet");const y=t(()=>{i.onClose&&i.onClose(),r("update:source",[])},"closeFunc");async function k(s){if(!(!s||!g.isFile(s)))try{d()||(await c.loadCss(f),await c.loadJs(u)),_.transformExcelToLucky(s,function(l){l.sheets!=null&&(window.luckysheet.destroy(),window.luckysheet.create({container:"luckysheet",data:l.sheets,title:l.info.name,lang:"zh",gridKey:new Date().getTime(),showinfobar:!1,allowEdit:!1,allowCopy:!1,allowUpdate:!1,showtoolbar:!1,enableAddRow:!1,enableAddBackTop:!1,sheetFormulaBar:!1,showstatisticBar:!1,showsheetbar:!1,forceCalculation:!0,showConfigWindowResize:!1,showsheetbarConfig:{sheet:!0},sheetRightClickConfig:{delete:!1,copy:!1,rename:!1,color:!1,hide:!1,move:!1},cellRightClickConfig:{copy:!1,copyAs:!1,paste:!1,insertRow:!1,insertColumn:!1,deleteRow:!1,deleteColumn:!1,deleteCell:!1,hideRow:!1,hideColumn:!1,rowHeight:!1,columnWidth:!1,clear:!1,matrix:!1,sort:!1,filter:!1,chart:!1,image:!1,link:!1,data:!1,cellFormat:!1},hook:{cellUpdateBefore:t(()=>!1,"cellUpdateBefore"),imageDeleteBefore:t(()=>!1,"imageDeleteBefore"),imageUpdateBefore:t(()=>!1,"imageUpdateBefore")}}))}),r("loadComplete")}catch{r("loadError")}}return t(k,"initXlsx"),e.onBeforeUnmount(()=>{d()||(c.removeCss(f),c.removeJs(u))}),(s,l)=>{const h=e.resolveComponent("LSIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(n).e("btn"),e.unref(n).e("close")]),onClick:y},[e.createVNode(h,{name:"Close",size:24,color:"#FFF"})],2),v],2)}}});exports.default=S;
@@ -6,7 +6,7 @@ import { xlsxProps as S, previewEmits as v } from "../../types/index.js";
6
6
  import { loadCss as I, loadJs as j, removeCss as z, removeJs as U } from "../../../_utils/utils/index.js";
7
7
  import { isFile as A } from "../../../_utils/check/index.js";
8
8
  import N from "luckyexcel";
9
- const T = /* @__PURE__ */ l((t) => (E("data-v-af24afd9"), t = t(), F(), t), "_withScopeId"), D = /* @__PURE__ */ T(() => /* @__PURE__ */ p("div", {
9
+ const T = /* @__PURE__ */ l((t) => (E("data-v-5d122118"), t = t(), F(), t), "_withScopeId"), D = /* @__PURE__ */ T(() => /* @__PURE__ */ p("div", {
10
10
  id: "luckysheet",
11
11
  class: "luckysheet-wrap"
12
12
  }, null, -1)), V = h({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingshugroup/web-plus",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "零数科技前端UI组件库(Vue3)",
5
5
  "type": "module",
6
6
  "main": "./lib/index/index.cjs",
@@ -1 +0,0 @@
1
- "use strict";var N=Object.defineProperty;var r=(n,s)=>N(n,"name",{value:s,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),_=,/* empty css */v=,/* empty css */l=,/* empty css */D=,/* empty css */x=,/* empty css */E=,/* empty css */M={key:1,class:"content-wrap"},P={class:"dialog-footer"},$=e.defineComponent({name:"LSDialog",inheritAttrs:!1,__name:"Index",props:e.mergeModels(v.lsDialogProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(v.lsEmitNames,["update:modelValue"]),setup(n,{expose:s,emit:k}){const a=n,i=k,S=e.useSlots(),t=e.useModel(n,"modelValue"),y=_.useNamespace("dialog").b(),d=e.ref(),u=e.ref({width:"50%",closeOnClickModal:!1,closeOnPressEscape:!1,zIndex:2e3}),c=e.ref(0);e.watch(()=>t==null?void 0:t.value,o=>{o&&p()},{immediate:!0,deep:!0});const f=e.computed(()=>l.default({txt:"取消"},a.btnCancelConfig)),m=e.computed(()=>l.default({type:"primary",txt:"确认"},a.btnConfirmConfig));function g(){t.value=!1,i("onCancel")}r(g,"handleClose");function B(){i("onConfirm")}r(B,"handleConfirm");async function p(){await e.nextTick();const o=a.hasFooter?108:60;c.value=parseInt(getComputedStyle(d.value.querySelector(".el-dialog")).height)-o}return r(p,"updateHeight"),s({updateHeight:p}),(o,C)=>{const q=D.ElScrollbar,h=e.resolveComponent("LSButton"),w=x.ElDialog,V=E.vLoading;return e.openBlock(),e.createElementBlock("div",{ref_key:"lsDialogRef",ref:d,class:e.normalizeClass(e.unref(y))},[e.createVNode(w,e.mergeProps({modelValue:t.value,"onUpdate:modelValue":C[0]||(C[0]=b=>t.value=b)},e.unref(l.default)(e.unref(u),o.$attrs),{"show-close":!o.loading,onClose:g}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),default:e.withCtx(()=>[o.openScroll?e.withDirectives((e.openBlock(),e.createBlock(q,e.mergeProps({key:0},e.unref(l.default)(e.unref(u),o.$attrs),{"max-height":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3},16,["max-height"])),[[V,o.contentLoading]]):(e.openBlock(),e.createElementBlock("div",M,[e.renderSlot(o.$slots,"default",{},void 0,!0)]))]),_:2},[o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",P,[e.unref(S).footer?e.renderSlot(o.$slots,"footer",{key:0},void 0,!0):e.createCommentVNode("",!0),o.hasCancelBtn?(e.openBlock(),e.createBlock(h,e.mergeProps({key:1},e.unref(f),{disabled:o.loading,onClick:g}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f).txt),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.createVNode(h,e.mergeProps(e.unref(m),{loading:o.loading,disabled:o.loading,onClick:B}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m).txt),1)]),_:1},16,["loading","disabled"])])]),key:"0"}:void 0]),1040,["modelValue","show-close"])],2)}}});exports.default=$;