erp-plus 1.0.8 → 1.0.10

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.
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755511074461" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6320" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M396.458667 396.458667a42.666667 42.666667 0 0 1 60.416 0L682.666667 622.336l225.792-225.877333a42.666667 42.666667 0 0 1 60.416 60.416l-256 256a42.666667 42.666667 0 0 1-60.416 0l-256-256a42.666667 42.666667 0 0 1 0-60.416z" p-id="6321"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1752626608214" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3991" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z" p-id="3992"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755593358305" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4420" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M417.92 801.92a48 48 0 0 0 0-67.84L195.84 512l222.08-222.08a48 48 0 0 0-67.84-67.84l-256 256a48 48 0 0 0 0 67.84l256 256a48 48 0 0 0 67.84 0z" fill="#000000" p-id="4421"></path><path d="M673.92 801.92a48 48 0 0 0 0-67.84L451.84 512l222.08-222.08a48 48 0 1 0-67.84-67.84l-256 256a48 48 0 0 0 0 67.84l256 256a48 48 0 0 0 67.84 0z" p-id="4422"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755593355510" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4277" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M606.08 801.92a48 48 0 0 1 0-67.84L828.16 512 606.08 289.92a48 48 0 0 1 67.84-67.84l256 256a48 48 0 0 1 0 67.84l-256 256a48 48 0 0 1-67.84 0z" fill="#000000" p-id="4278"></path><path d="M350.08 801.92a48 48 0 0 1 0-67.84L572.16 512 350.08 289.92a48 48 0 0 1 67.84-67.84l256 256a48 48 0 0 1 0 67.84l-256 256a48 48 0 0 1-67.84 0z" p-id="4279"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755593348355" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3993" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M673.92 801.92a48 48 0 0 0 0-67.84L451.84 512l222.08-222.08a48 48 0 1 0-67.84-67.84l-256 256a48 48 0 0 0 0 67.84l256 256a48 48 0 0 0 67.84 0z" p-id="3994"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755593352360" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4135" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M350.08 801.92a48 48 0 0 1 0-67.84L572.16 512 350.08 289.92a48 48 0 0 1 67.84-67.84l256 256a48 48 0 0 1 0 67.84l-256 256a48 48 0 0 1-67.84 0z" p-id="4136"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1755593009030" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3849" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M640 53.312a32 32 0 0 1 32 32V256a32 32 0 0 1-64 0v-53.312H448a32 32 0 0 1 0-64h160v-53.312a32 32 0 0 1 32-32zM96 426.688a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32v384c0 64.768-52.48 117.312-117.312 117.312H213.312A117.312 117.312 0 0 1 96 810.688v-384z m64 32v352c0 29.44 23.872 53.312 53.312 53.312h597.376c29.44 0 53.312-23.872 53.312-53.312v-352h-704z" p-id="3850"></path><path d="M213.312 202.688A53.312 53.312 0 0 0 160 256v170.688a32 32 0 0 1-64 0V256c0-64.768 52.48-117.312 117.312-117.312h85.376a32 32 0 0 1 0 64H213.312z" p-id="3851"></path><path d="M298.688 53.312a32 32 0 0 1 32 32V256a32 32 0 1 1-64 0V85.312a32 32 0 0 1 32-32zM757.312 170.688a32 32 0 0 1 32-32h21.376c64.768 0 117.312 52.48 117.312 117.312v170.688a32 32 0 0 1-64 0V256a53.312 53.312 0 0 0-53.312-53.312h-21.376a32 32 0 0 1-32-32z" p-id="3852"></path></svg>
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, useSlots as U, resolveComponent as F, createBlock as B, openBlock as g, mergeProps as C, createSlots as k, renderList as w, unref as P, withCtx as _, renderSlot as O, normalizeProps as I, guardReactiveProps as N, computed as h, createElementBlock as M, normalizeClass as H, createElementVNode as J, h as x, createVNode as $, isRef as Q, Fragment as W, resolveDynamicComponent as X, createTextVNode as Z, toDisplayString as ee } from "vue";
1
+ import { defineComponent as V, useSlots as U, resolveComponent as k, createBlock as v, openBlock as g, mergeProps as C, createSlots as x, renderList as w, unref as P, withCtx as _, renderSlot as O, normalizeProps as N, guardReactiveProps as $, computed as h, createElementBlock as M, normalizeClass as H, createElementVNode as J, h as B, createVNode as I, isRef as Q, Fragment as W, resolveDynamicComponent as X, createTextVNode as Z, toDisplayString as ee } from "vue";
2
2
  import { ElOption as K, ElSelect as te } from "element-plus";
3
3
  const j = /* @__PURE__ */ V({
4
4
  __name: "Button",
@@ -79,20 +79,20 @@ const j = /* @__PURE__ */ V({
79
79
  }
80
80
  },
81
81
  emits: ["click"],
82
- setup(e, { emit: i }) {
83
- const r = U(), t = e, o = i, c = (d) => {
82
+ setup(e, { emit: u }) {
83
+ const r = U(), t = e, o = u, c = (d) => {
84
84
  o("click", d);
85
85
  };
86
86
  return (d, y) => {
87
- const m = F("el-button");
88
- return g(), B(m, C(t, {
87
+ const m = k("el-button");
88
+ return g(), v(m, C(t, {
89
89
  class: ["yw-button-" + e.type, "yw-button"],
90
90
  onClick: c
91
- }), k({ _: 2 }, [
91
+ }), x({ _: 2 }, [
92
92
  w(P(r), (s, a) => ({
93
93
  name: a,
94
94
  fn: _((p) => [
95
- O(d.$slots, a, I(N(p || {})))
95
+ O(d.$slots, a, N($(p || {})))
96
96
  ])
97
97
  }))
98
98
  ]), 1040, ["class"]);
@@ -102,7 +102,7 @@ const j = /* @__PURE__ */ V({
102
102
  j.install = (e) => {
103
103
  e.component("YwButton", j);
104
104
  };
105
- const le = ["xlink:href", "fill"], v = /* @__PURE__ */ V({
105
+ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
106
106
  __name: "index",
107
107
  props: {
108
108
  iconClass: {
@@ -119,7 +119,7 @@ const le = ["xlink:href", "fill"], v = /* @__PURE__ */ V({
119
119
  }
120
120
  },
121
121
  setup(e) {
122
- const i = e, r = h(() => i.className ? (console.log(i.className), `svg-icon ${i.className}`) : "svg-icon"), t = h(() => `#icon-${i.iconClass}`);
122
+ const u = e, r = h(() => u.className ? (console.log(u.className), `svg-icon ${u.className}`) : "svg-icon"), t = h(() => `#icon-${u.iconClass}`);
123
123
  return (o, c) => (g(), M("svg", {
124
124
  class: H(r.value),
125
125
  "aria-hidden": "true"
@@ -208,12 +208,12 @@ const le = ["xlink:href", "fill"], v = /* @__PURE__ */ V({
208
208
  },
209
209
  prefixIcon: {
210
210
  type: String,
211
- default: () => x(v, { iconClass: "16_16_calendar", color: "#838599" })
211
+ default: () => B(F, { iconClass: "16_16_calendar", color: "#838599" })
212
212
  // 设置默认参数
213
213
  },
214
214
  clearIcon: {
215
215
  type: String,
216
- default: () => x(v, { iconClass: "12_12_fill_delete", color: "#b2b4c6" })
216
+ default: () => B(F, { iconClass: "12_12_fill_delete", color: "#b2b4c6" })
217
217
  // 设置默认参数
218
218
  },
219
219
  validateEvent: {
@@ -258,32 +258,32 @@ const le = ["xlink:href", "fill"], v = /* @__PURE__ */ V({
258
258
  }
259
259
  },
260
260
  emits: ["update:modelValue", "change", "clear", "blur", "focus", "calendar-change", "visible-change", "panel-change"],
261
- setup(e, { emit: i }) {
262
- const r = e, t = h(() => r.type === "daterange" || r.type === "datetimerange" ? `yw-daterange-picker ${r.popperClass}` : `yw-date-picker ${r.popperClass}`), o = i, c = h({
261
+ setup(e, { emit: u }) {
262
+ const r = e, t = h(() => r.type === "daterange" || r.type === "datetimerange" ? `yw-daterange-picker ${r.popperClass}` : `yw-date-picker ${r.popperClass}`), o = u, c = h({
263
263
  get() {
264
264
  return r.modelValue;
265
265
  },
266
- set(u) {
267
- o("update:modelValue", u);
266
+ set(i) {
267
+ o("update:modelValue", i);
268
268
  }
269
- }), d = (u) => {
270
- o("change", u);
271
- }, y = (u) => {
272
- o("clear", u);
273
- }, m = (u) => {
274
- o("blur", u);
275
- }, s = (u) => {
276
- o("focus", u);
277
- }, a = (u) => {
278
- o("calendar-change", u);
279
- }, p = (u) => {
280
- o("visible-change", u);
281
- }, b = (u) => {
282
- o("panel-change", u);
269
+ }), d = (i) => {
270
+ o("change", i);
271
+ }, y = (i) => {
272
+ o("clear", i);
273
+ }, m = (i) => {
274
+ o("blur", i);
275
+ }, s = (i) => {
276
+ o("focus", i);
277
+ }, a = (i) => {
278
+ o("calendar-change", i);
279
+ }, p = (i) => {
280
+ o("visible-change", i);
281
+ }, b = (i) => {
282
+ o("panel-change", i);
283
283
  };
284
- return (u, S) => {
285
- const n = F("el-date-picker");
286
- return g(), B(n, C(r, {
284
+ return (i, S) => {
285
+ const n = k("el-date-picker");
286
+ return g(), v(n, C(r, {
287
287
  modelValue: c.value,
288
288
  "onUpdate:modelValue": S[0] || (S[0] = (l) => c.value = l),
289
289
  popperClass: t.value,
@@ -296,28 +296,28 @@ const le = ["xlink:href", "fill"], v = /* @__PURE__ */ V({
296
296
  onPanelChange: b
297
297
  }), {
298
298
  "prev-month": _(() => [
299
- $(v, {
299
+ I(F, {
300
300
  iconClass: "16_16_arrow_left",
301
301
  color: "#1a1a1a",
302
302
  style: { width: "16px", height: "16px" }
303
303
  })
304
304
  ]),
305
305
  "next-month": _(() => [
306
- $(v, {
306
+ I(F, {
307
307
  iconClass: "16_16_arrow_right",
308
308
  color: "#1a1a1a",
309
309
  style: { width: "16px", height: "16px" }
310
310
  })
311
311
  ]),
312
312
  "prev-year": _(() => [
313
- $(v, {
313
+ I(F, {
314
314
  iconClass: "16_16_arrow_2left",
315
315
  color: "#1a1a1a",
316
316
  style: { width: "16px", height: "16px" }
317
317
  })
318
318
  ]),
319
319
  "next-year": _(() => [
320
- $(v, {
320
+ I(F, {
321
321
  iconClass: "16_16_arrow_2right",
322
322
  color: "#1a1a1a",
323
323
  style: { width: "16px", height: "16px" }
@@ -327,14 +327,14 @@ const le = ["xlink:href", "fill"], v = /* @__PURE__ */ V({
327
327
  }, 16, ["modelValue", "popperClass"]);
328
328
  };
329
329
  }
330
- }), oe = (e, i) => {
330
+ }), oe = (e, u) => {
331
331
  const r = e.__vccOpts || e;
332
- for (const [t, o] of i)
332
+ for (const [t, o] of u)
333
333
  r[t] = o;
334
334
  return r;
335
335
  }, z = /* @__PURE__ */ oe(ae, [["__scopeId", "data-v-3083e764"]]);
336
336
  z.install = (e) => {
337
- e.component("YwInput", z);
337
+ e.component("YwDatePicker", z);
338
338
  };
339
339
  const D = /* @__PURE__ */ V({
340
340
  __name: "Avatar",
@@ -369,17 +369,17 @@ const D = /* @__PURE__ */ V({
369
369
  }
370
370
  },
371
371
  emits: ["error"],
372
- setup(e, { emit: i }) {
373
- const r = e, t = i, o = (c) => {
372
+ setup(e, { emit: u }) {
373
+ const r = e, t = u, o = (c) => {
374
374
  t("error", c);
375
375
  };
376
376
  return (c, d) => {
377
- const y = F("el-avatar");
378
- return g(), B(y, C(r, { onError: o }), k({ _: 2 }, [
377
+ const y = k("el-avatar");
378
+ return g(), v(y, C(r, { onError: o }), x({ _: 2 }, [
379
379
  w(c.$slots, (m, s) => ({
380
380
  name: s,
381
381
  fn: _((a) => [
382
- O(c.$slots, s, I(N(a || {})))
382
+ O(c.$slots, s, N($(a || {})))
383
383
  ])
384
384
  }))
385
385
  ]), 1040);
@@ -454,8 +454,8 @@ const E = /* @__PURE__ */ V({
454
454
  }
455
455
  },
456
456
  emits: ["validate", "validateField", "resetFields", "scrollToField", "clearValidate", "fields", "getField"],
457
- setup(e, { emit: i }) {
458
- const r = e, t = i, o = (a, p, b) => {
457
+ setup(e, { emit: u }) {
458
+ const r = e, t = u, o = (a, p, b) => {
459
459
  t("validate", a, p, b);
460
460
  }, c = (a, p) => {
461
461
  t("validateField", a, p);
@@ -469,19 +469,19 @@ const E = /* @__PURE__ */ V({
469
469
  t("getField", a);
470
470
  };
471
471
  return (a, p) => {
472
- const b = F("el-form");
473
- return g(), B(b, C(r, {
472
+ const b = k("el-form");
473
+ return g(), v(b, C(r, {
474
474
  onValidate: o,
475
475
  onValidateField: c,
476
476
  onResetFields: d,
477
477
  onScrollToField: y,
478
478
  onClearValidate: m,
479
479
  onGetField: s
480
- }), k({ _: 2 }, [
481
- w(a.$slots, (u, S) => ({
480
+ }), x({ _: 2 }, [
481
+ w(a.$slots, (i, S) => ({
482
482
  name: S,
483
483
  fn: _((n) => [
484
- O(a.$slots, S, I(N(n || {})))
484
+ O(a.$slots, S, N($(n || {})))
485
485
  ])
486
486
  }))
487
487
  ]), 1040);
@@ -544,7 +544,7 @@ const R = /* @__PURE__ */ V({
544
544
  }
545
545
  },
546
546
  emits: ["validate", "resetFields", "clearValidate"],
547
- setup(e, { expose: i, emit: r }) {
547
+ setup(e, { expose: u, emit: r }) {
548
548
  const t = e, o = r, c = h(() => {
549
549
  const { ...s } = t;
550
550
  return Object.fromEntries(
@@ -557,7 +557,7 @@ const R = /* @__PURE__ */ V({
557
557
  }, m = (s) => {
558
558
  o("clearValidate", s);
559
559
  };
560
- return i({
560
+ return u({
561
561
  size: h(() => document.querySelector(".el-form-item")?.className.includes("size-") || ""),
562
562
  validateMessage: h(() => document.querySelector(".el-form-item__error")?.textContent || ""),
563
563
  validateState: h(() => {
@@ -565,16 +565,16 @@ const R = /* @__PURE__ */ V({
565
565
  return s?.classList.contains("is-error") ? "error" : s?.classList.contains("is-success") ? "success" : s?.classList.contains("is-validating") ? "validating" : "";
566
566
  })
567
567
  }), (s, a) => {
568
- const p = F("el-form-item");
569
- return g(), B(p, C(c.value, {
568
+ const p = k("el-form-item");
569
+ return g(), v(p, C(c.value, {
570
570
  onValidate: d,
571
571
  onResetFields: y,
572
572
  onClearValidate: m
573
- }), k({ _: 2 }, [
574
- w(s.$slots, (b, u) => ({
575
- name: u,
573
+ }), x({ _: 2 }, [
574
+ w(s.$slots, (b, i) => ({
575
+ name: i,
576
576
  fn: _((S) => [
577
- O(s.$slots, u, I(N(S || {})))
577
+ O(s.$slots, i, N($(S || {})))
578
578
  ])
579
579
  }))
580
580
  ]), 1040);
@@ -609,8 +609,15 @@ const A = /* @__PURE__ */ V({
609
609
  },
610
610
  clearIcon: {
611
611
  type: String,
612
- default: () => x(v, { iconClass: "12_12_fill_delete", color: "#b2b4c6" })
613
- // 设置默认参数
612
+ default: () => B("svg", {
613
+ class: "svg-icon",
614
+ "aria-hidden": "true"
615
+ }, [
616
+ B("use", {
617
+ "xlink:href": "#icon-12_12_fill_delete",
618
+ fill: "#b2b4c6"
619
+ })
620
+ ])
614
621
  },
615
622
  formatter: {
616
623
  type: Function,
@@ -718,8 +725,8 @@ const A = /* @__PURE__ */ V({
718
725
  }
719
726
  },
720
727
  emits: ["update:modelValue", "change", "blur", "focus", "input", "clear", "keydown", "mouseleave", "mouseenter", "compositionstart", "compositionupdate", "compositionend"],
721
- setup(e, { emit: i }) {
722
- const r = e, t = i, o = h({
728
+ setup(e, { emit: u }) {
729
+ const r = e, t = u, o = h({
723
730
  get() {
724
731
  return r.modelValue;
725
732
  },
@@ -742,7 +749,7 @@ const A = /* @__PURE__ */ V({
742
749
  t("mouseleave", l);
743
750
  }, b = (l) => {
744
751
  t("mouseenter", l);
745
- }, u = (l) => {
752
+ }, i = (l) => {
746
753
  t("compositionstart", l);
747
754
  }, S = (l) => {
748
755
  t("compositionupdate", l);
@@ -750,8 +757,8 @@ const A = /* @__PURE__ */ V({
750
757
  t("compositionend", l);
751
758
  };
752
759
  return (l, f) => {
753
- const T = F("el-input");
754
- return g(), B(T, C(r, {
760
+ const T = k("el-input");
761
+ return g(), v(T, C(r, {
755
762
  modelValue: P(o),
756
763
  "onUpdate:modelValue": f[0] || (f[0] = (q) => Q(o) ? o.value = q : null),
757
764
  class: "yw-input",
@@ -763,14 +770,14 @@ const A = /* @__PURE__ */ V({
763
770
  onKeydown: a,
764
771
  onMouseleave: p,
765
772
  onMouseenter: b,
766
- onCompositionstart: u,
773
+ onCompositionstart: i,
767
774
  onCompositionupdate: S,
768
775
  onCompositionend: n
769
- }), k({ _: 2 }, [
776
+ }), x({ _: 2 }, [
770
777
  w(l.$slots, (q, Y) => ({
771
778
  name: Y,
772
779
  fn: _((G) => [
773
- O(l.$slots, Y, I(N(G || {})))
780
+ O(l.$slots, Y, N($(G || {})))
774
781
  ])
775
782
  }))
776
783
  ]), 1040, ["modelValue"]);
@@ -918,8 +925,15 @@ const L = /* @__PURE__ */ V({
918
925
  },
919
926
  clearIcon: {
920
927
  type: String,
921
- default: () => x(v, { iconClass: "12_12_fill_delete", color: "#b2b4c6" })
922
- // 设置默认参数
928
+ default: () => B("svg", {
929
+ class: "svg-icon",
930
+ "aria-hidden": "true"
931
+ }, [
932
+ B("use", {
933
+ "xlink:href": "#icon-12_12_fill_delete",
934
+ fill: "#b2b4c6"
935
+ })
936
+ ])
923
937
  },
924
938
  fitInputWidth: {
925
939
  type: Boolean,
@@ -927,8 +941,15 @@ const L = /* @__PURE__ */ V({
927
941
  },
928
942
  suffixIcon: {
929
943
  type: String,
930
- default: () => x(v, { iconClass: "12_12_arrow_bottom", color: "#1a1a1a" })
931
- // 设置默认参数
944
+ default: () => B("svg", {
945
+ class: "svg-icon",
946
+ "aria-hidden": "true"
947
+ }, [
948
+ B("use", {
949
+ "xlink:href": "#icon-12_12_arrow_bottom",
950
+ fill: "#1a1a1a"
951
+ })
952
+ ])
932
953
  },
933
954
  tagType: {
934
955
  type: String,
@@ -968,7 +989,7 @@ const L = /* @__PURE__ */ V({
968
989
  }
969
990
  },
970
991
  emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "focus", "blur", "popup-scroll"],
971
- setup(e, { emit: i }) {
992
+ setup(e, { emit: u }) {
972
993
  const r = e, t = h(() => r.props), o = U(), c = h(() => o.default?.().length === 0 ? [] : o.default?.().flatMap((n) => {
973
994
  const l = String(n.type);
974
995
  if (l.includes("yw-option") || l.includes("ywOption")) {
@@ -981,7 +1002,7 @@ const L = /* @__PURE__ */ V({
981
1002
  };
982
1003
  }
983
1004
  return n;
984
- })), d = i, y = h({
1005
+ })), d = u, y = h({
985
1006
  get() {
986
1007
  return r.modelValue;
987
1008
  },
@@ -998,12 +1019,12 @@ const L = /* @__PURE__ */ V({
998
1019
  d("clear");
999
1020
  }, b = (n) => {
1000
1021
  d("focus", n);
1001
- }, u = (n) => {
1022
+ }, i = (n) => {
1002
1023
  d("blur", n);
1003
1024
  }, S = (n) => {
1004
1025
  d("popup-scroll", n);
1005
1026
  };
1006
- return (n, l) => (g(), B(P(te), C(r, {
1027
+ return (n, l) => (g(), v(P(te), C(r, {
1007
1028
  modelValue: y.value,
1008
1029
  "onUpdate:modelValue": l[0] || (l[0] = (f) => y.value = f),
1009
1030
  class: "yw-select",
@@ -1012,19 +1033,19 @@ const L = /* @__PURE__ */ V({
1012
1033
  onVisibleChange: s,
1013
1034
  onRemoveTag: a,
1014
1035
  onClear: p,
1015
- onBlur: u,
1036
+ onBlur: i,
1016
1037
  onFocus: b,
1017
1038
  onPopupScroll: S
1018
1039
  }), {
1019
1040
  default: _(() => [
1020
- n.$slots.default ? (g(!0), M(W, { key: 0 }, w(c.value, (f, T) => (g(), B(X(f.type), C({ ref_for: !0 }, f.props, {
1041
+ n.$slots.default ? (g(!0), M(W, { key: 0 }, w(c.value, (f, T) => (g(), v(X(f.type), C({ ref_for: !0 }, f.props, {
1021
1042
  key: f.key || T
1022
1043
  }), {
1023
1044
  default: _(() => [
1024
1045
  Z(ee(f.children), 1)
1025
1046
  ]),
1026
1047
  _: 2
1027
- }, 1040))), 128)) : (g(!0), M(W, { key: 1 }, w(e.options, (f) => (g(), B(P(K), {
1048
+ }, 1040))), 128)) : (g(!0), M(W, { key: 1 }, w(e.options, (f) => (g(), v(P(K), {
1028
1049
  key: f[t.value.value],
1029
1050
  label: f[t.value.label],
1030
1051
  value: f[t.value.value],
@@ -1038,13 +1059,13 @@ const L = /* @__PURE__ */ V({
1038
1059
  L.install = (e) => {
1039
1060
  e.component("YwSelect", L);
1040
1061
  };
1041
- const ne = [j, z, D, E, R, A, L], ue = {
1062
+ const ne = [j, z, D, E, R, A, L], ie = {
1042
1063
  install(e) {
1043
- ne.forEach((i) => {
1044
- e.use(i);
1064
+ ne.forEach((u) => {
1065
+ e.use(u);
1045
1066
  });
1046
1067
  }
1047
1068
  };
1048
1069
  export {
1049
- ue as default
1070
+ ie as default
1050
1071
  };
@@ -1 +1 @@
1
- (function(e,B){typeof exports=="object"&&typeof module<"u"?module.exports=B(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],B):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=B(e.Vue,e.ElementPlus))})(this,function(e,B){"use strict";const b=e.defineComponent({__name:"Button",props:{type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},round:{type:Boolean,default:!1},link:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autoInsertSpace:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},color:{type:String,default:void 0},nativeType:{type:String,default:"button"},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(t,{emit:d}){const s=e.useSlots(),l=t,n=d,f=c=>{n("click",c)};return(c,y)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(g,e.mergeProps(l,{class:["yw-button-"+t.type,"yw-button"],onClick:f}),e.createSlots({_:2},[e.renderList(e.unref(s),(i,o)=>({name:o,fn:e.withCtx(u=>[e.renderSlot(c.$slots,o,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class"])}}});b.install=t=>{t.component("YwButton",b)};const $=["xlink:href","fill"],_=e.defineComponent({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(t){const d=t,s=e.computed(()=>d.className?(console.log(d.className),`svg-icon ${d.className}`):"svg-icon"),l=e.computed(()=>`#icon-${d.iconClass}`);return(n,f)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(s.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":l.value,fill:t.color},null,8,$)],2))}}),C=((t,d)=>{const s=t.__vccOpts||t;for(const[l,n]of d)s[l]=n;return s})(e.defineComponent({__name:"DatePicker",props:{modelValue:{type:[String,Number,Object],default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},type:{type:String,default:"date"},format:{type:String,default:"yyyy-MM-dd"},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},rangeSeparator:{type:String,default:" - "},defaultTime:[Date,[Date,Date]],defaultValue:{type:[Date,[Date,Date]],default:()=>""},id:{type:String,default:""},name:{type:String,default:""},unlinkPanels:{type:Boolean,default:!1},prefixIcon:{type:String,default:()=>e.h(_,{iconClass:"16_16_calendar",color:"#838599"})},clearIcon:{type:String,default:()=>e.h(_,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},validateEvent:{type:Boolean,default:!0},disabledDate:{type:Function,default:()=>!1},shortcuts:{type:Array,default:()=>[]},cellClassName:{type:Function,default:()=>""},teleported:{type:Boolean,default:!0},emptyValues:{type:Array,default:()=>[]},valueOnClear:{type:[String,Number,Boolean,Function],default:()=>""},placement:{type:String,default:"bottom"},showFooter:{type:Boolean,default:!0},showWeekNumber:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","blur","focus","calendar-change","visible-change","panel-change"],setup(t,{emit:d}){const s=t,l=e.computed(()=>s.type==="daterange"||s.type==="datetimerange"?`yw-daterange-picker ${s.popperClass}`:`yw-date-picker ${s.popperClass}`),n=d,f=e.computed({get(){return s.modelValue},set(p){n("update:modelValue",p)}}),c=p=>{n("change",p)},y=p=>{n("clear",p)},g=p=>{n("blur",p)},i=p=>{n("focus",p)},o=p=>{n("calendar-change",p)},u=p=>{n("visible-change",p)},S=p=>{n("panel-change",p)};return(p,h)=>{const r=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(r,e.mergeProps(s,{modelValue:f.value,"onUpdate:modelValue":h[0]||(h[0]=a=>f.value=a),popperClass:l.value,onChange:c,onClear:y,onBlur:g,onFocus:i,onCalendarChange:o,onVisibleChange:u,onPanelChange:S}),{"prev-month":e.withCtx(()=>[e.createVNode(_,{iconClass:"16_16_arrow_left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-month":e.withCtx(()=>[e.createVNode(_,{iconClass:"16_16_arrow_right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"prev-year":e.withCtx(()=>[e.createVNode(_,{iconClass:"16_16_arrow_2left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-year":e.withCtx(()=>[e.createVNode(_,{iconClass:"16_16_arrow_2right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),_:1},16,["modelValue","popperClass"])}}}),[["__scopeId","data-v-3083e764"]]);C.install=t=>{t.component("YwInput",C)};const w=e.defineComponent({__name:"Avatar",props:{size:{type:Number,default:40},shape:{type:String,default:"circle"},icon:{type:String,default:""},src:{type:String,default:""},alt:{type:String,default:""},srcSet:{type:String,default:""},fit:{type:String,default:"cover"}},emits:["error"],setup(t,{emit:d}){const s=t,l=d,n=f=>{l("error",f)};return(f,c)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createBlock(y,e.mergeProps(s,{onError:n}),e.createSlots({_:2},[e.renderList(f.$slots,(g,i)=>({name:i,fn:e.withCtx(o=>[e.renderSlot(f.$slots,i,e.normalizeProps(e.guardReactiveProps(o||{})))])}))]),1040)}}});w.install=t=>{t.component("YwAvatar",w)};const k=e.defineComponent({__name:"Form",props:{modelValue:{type:Object,default:{}},rules:{type:Object,default:{}},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},labelWidth:{type:String,default:""},labelSuffix:{type:String,default:""},hideRequiredAsterisk:{type:Boolean,default:!1},requireAsteriskPosition:{type:String,default:"left"},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},statusIcon:{type:Boolean,default:!1},validateOnRuleChange:{type:Boolean,default:!0},size:{type:String,default:""},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1}},emits:["validate","validateField","resetFields","scrollToField","clearValidate","fields","getField"],setup(t,{emit:d}){const s=t,l=d,n=(o,u,S)=>{l("validate",o,u,S)},f=(o,u)=>{l("validateField",o,u)},c=o=>{l("resetFields",o)},y=o=>{l("scrollToField",o)},g=o=>{l("clearValidate",o)},i=o=>{l("getField",o)};return(o,u)=>{const S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps(s,{onValidate:n,onValidateField:f,onResetFields:c,onScrollToField:y,onClearValidate:g,onGetField:i}),e.createSlots({_:2},[e.renderList(o.$slots,(p,h)=>({name:h,fn:e.withCtx(r=>[e.renderSlot(o.$slots,h,e.normalizeProps(e.guardReactiveProps(r||{})))])}))]),1040)}}});k.install=t=>{t.component("YwForm",k)};const V=e.defineComponent({__name:"FormItem",props:{prop:{type:String,default:""},label:{type:String,default:""},labelPosition:{type:String,default:""},labelWidth:{type:[String,Number],default:""},required:{type:Boolean,default:!1},rules:{type:[Object,Array],default:void 0},error:{type:String,default:""},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},size:{type:String,default:""},for:{type:String,default:""},validateStatus:{type:String,default:""}},emits:["validate","resetFields","clearValidate"],setup(t,{expose:d,emit:s}){const l=t,n=s,f=e.computed(()=>{const{...i}=l;return Object.fromEntries(Object.entries(i).filter(([o,u])=>u!==void 0&&u!==""))}),c=(i,o,u)=>{n("validate",i,o,u)},y=i=>{n("resetFields",i)},g=i=>{n("clearValidate",i)};return d({size:e.computed(()=>document.querySelector(".el-form-item")?.className.includes("size-")||""),validateMessage:e.computed(()=>document.querySelector(".el-form-item__error")?.textContent||""),validateState:e.computed(()=>{const i=document.querySelector(".el-form-item");return i?.classList.contains("is-error")?"error":i?.classList.contains("is-success")?"success":i?.classList.contains("is-validating")?"validating":""})}),(i,o)=>{const u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,e.mergeProps(f.value,{onValidate:c,onResetFields:y,onClearValidate:g}),e.createSlots({_:2},[e.renderList(i.$slots,(S,p)=>({name:p,fn:e.withCtx(h=>[e.renderSlot(i.$slots,p,e.normalizeProps(e.guardReactiveProps(h||{})))])}))]),1040)}}});V.install=t=>{t.component("YwFormItem",V)};const x=e.defineComponent({__name:"Input",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},showWordLimit:{type:Boolean,default:!1},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:String,default:()=>e.h(_,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},formatter:{type:Function,default:t=>t},parser:{type:Function,default:t=>t},maxlength:{type:Number,default:null},minlength:{type:Number,default:null},showPassword:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},prefixIcon:{type:[String,Object],default:""},suffixIcon:{type:[String,Object],default:""},rows:{type:Number,default:2},autosize:{type:[Boolean,Object],default:!1},name:{type:String,default:""},readonly:{type:Boolean,default:!1},max:{type:[String,Number],default:""},min:{type:[String,Number],default:""},step:{type:[String,Number],default:""},resize:{type:String,default:""},autofocus:{type:Boolean,default:!1},form:{type:String,default:""},ariaLabel:{type:String,default:""},tabindex:{type:String,default:""},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Object,default:()=>({})},label:{type:String,default:""},inputMode:{type:String,default:""}},emits:["update:modelValue","change","blur","focus","input","clear","keydown","mouseleave","mouseenter","compositionstart","compositionupdate","compositionend"],setup(t,{emit:d}){const s=t,l=d,n=e.computed({get(){return s.modelValue},set(a){l("update:modelValue",a)}}),f=a=>{l("input",a)},c=a=>{l("change",a)},y=a=>{l("blur",a)},g=a=>{l("focus",a)},i=()=>{l("clear")},o=a=>{l("keydown",a)},u=a=>{l("mouseleave",a)},S=a=>{l("mouseenter",a)},p=a=>{l("compositionstart",a)},h=a=>{l("compositionupdate",a)},r=a=>{l("compositionend",a)};return(a,m)=>{const P=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(P,e.mergeProps(s,{modelValue:e.unref(n),"onUpdate:modelValue":m[0]||(m[0]=N=>e.isRef(n)?n.value=N:null),class:"yw-input",onInput:f,onChange:c,onBlur:y,onFocus:g,onClear:i,onKeydown:o,onMouseleave:u,onMouseenter:S,onCompositionstart:p,onCompositionupdate:h,onCompositionend:r}),e.createSlots({_:2},[e.renderList(a.$slots,(N,O)=>({name:O,fn:e.withCtx(T=>[e.renderSlot(a.$slots,O,e.normalizeProps(e.guardReactiveProps(T||{})))])}))]),1040,["modelValue"])}}});x.install=t=>{t.component("YwInput",x)};const F=e.defineComponent({__name:"Select",props:{modelValue:{type:[String,Number],default:""},multiple:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})},disabled:{type:Boolean,default:!1},valueKey:{type:String,default:"value"},size:{type:String,default:""},clearable:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},id:{type:String,default:""},name:{type:String,default:""},effect:{type:String,default:"light"},autocomplete:{type:String,default:"off"},placeholder:{type:String,default:""},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},filterMethod:{type:Function,default:()=>{}},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:()=>{}},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},noMatchText:{type:String,default:""},noDataText:{type:String,default:""},popperClass:{type:String,default:""},reserveKeyword:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},automaticDropdown:{type:Boolean,default:!1},clearIcon:{type:String,default:()=>e.h(_,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:String,default:()=>e.h(_,{iconClass:"12_12_arrow_bottom",color:"#1a1a1a"})},tagType:{type:String,default:"info"},tagEffect:{type:String,default:"light"},validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},maxCollapseTags:{type:Number,default:1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","change","visible-change","remove-tag","clear","focus","blur","popup-scroll"],setup(t,{emit:d}){const s=t,l=e.computed(()=>s.props),n=e.useSlots(),f=e.computed(()=>n.default?.().length===0?[]:n.default?.().flatMap(r=>{const a=String(r.type);if(a.includes("yw-option")||a.includes("ywOption")){const m=r.children;return{type:B.ElOption,props:r.props||{},children:m&&m[0].children,key:r.key}}return r})),c=d,y=e.computed({get(){return s.modelValue},set(r){c("update:modelValue",r)}}),g=r=>{c("change",r)},i=r=>{c("visible-change",r)},o=r=>{c("remove-tag",r)},u=()=>{c("clear")},S=r=>{c("focus",r)},p=r=>{c("blur",r)},h=r=>{c("popup-scroll",r)};return(r,a)=>(e.openBlock(),e.createBlock(e.unref(B.ElSelect),e.mergeProps(s,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=m=>y.value=m),class:"yw-select","popper-class":"yw-select-popper",onChange:g,onVisibleChange:i,onRemoveTag:o,onClear:u,onBlur:p,onFocus:S,onPopupScroll:h}),{default:e.withCtx(()=>[r.$slots.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f.value,(m,P)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.type),e.mergeProps({ref_for:!0},m.props,{key:m.key||P}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.children),1)]),_:2},1040))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,m=>(e.openBlock(),e.createBlock(e.unref(B.ElOption),{key:m[l.value.value],label:m[l.value.label],value:m[l.value.value],disabled:m[l.value.disabled]},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"]))}});F.install=t=>{t.component("YwSelect",F)};const I=[b,C,w,k,V,x,F];return{install(t){I.forEach(d=>{t.use(d)})}}});
1
+ (function(e,_){typeof exports=="object"&&typeof module<"u"?module.exports=_(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],_):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=_(e.Vue,e.ElementPlus))})(this,function(e,_){"use strict";const b=e.defineComponent({__name:"Button",props:{type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},round:{type:Boolean,default:!1},link:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autoInsertSpace:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},color:{type:String,default:void 0},nativeType:{type:String,default:"button"},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(t,{emit:p}){const s=e.useSlots(),l=t,n=p,f=c=>{n("click",c)};return(c,y)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(g,e.mergeProps(l,{class:["yw-button-"+t.type,"yw-button"],onClick:f}),e.createSlots({_:2},[e.renderList(e.unref(s),(i,o)=>({name:o,fn:e.withCtx(u=>[e.renderSlot(c.$slots,o,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class"])}}});b.install=t=>{t.component("YwButton",b)};const $=["xlink:href","fill"],B=e.defineComponent({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(t){const p=t,s=e.computed(()=>p.className?(console.log(p.className),`svg-icon ${p.className}`):"svg-icon"),l=e.computed(()=>`#icon-${p.iconClass}`);return(n,f)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(s.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":l.value,fill:t.color},null,8,$)],2))}}),C=((t,p)=>{const s=t.__vccOpts||t;for(const[l,n]of p)s[l]=n;return s})(e.defineComponent({__name:"DatePicker",props:{modelValue:{type:[String,Number,Object],default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},type:{type:String,default:"date"},format:{type:String,default:"yyyy-MM-dd"},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},rangeSeparator:{type:String,default:" - "},defaultTime:[Date,[Date,Date]],defaultValue:{type:[Date,[Date,Date]],default:()=>""},id:{type:String,default:""},name:{type:String,default:""},unlinkPanels:{type:Boolean,default:!1},prefixIcon:{type:String,default:()=>e.h(B,{iconClass:"16_16_calendar",color:"#838599"})},clearIcon:{type:String,default:()=>e.h(B,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},validateEvent:{type:Boolean,default:!0},disabledDate:{type:Function,default:()=>!1},shortcuts:{type:Array,default:()=>[]},cellClassName:{type:Function,default:()=>""},teleported:{type:Boolean,default:!0},emptyValues:{type:Array,default:()=>[]},valueOnClear:{type:[String,Number,Boolean,Function],default:()=>""},placement:{type:String,default:"bottom"},showFooter:{type:Boolean,default:!0},showWeekNumber:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","blur","focus","calendar-change","visible-change","panel-change"],setup(t,{emit:p}){const s=t,l=e.computed(()=>s.type==="daterange"||s.type==="datetimerange"?`yw-daterange-picker ${s.popperClass}`:`yw-date-picker ${s.popperClass}`),n=p,f=e.computed({get(){return s.modelValue},set(d){n("update:modelValue",d)}}),c=d=>{n("change",d)},y=d=>{n("clear",d)},g=d=>{n("blur",d)},i=d=>{n("focus",d)},o=d=>{n("calendar-change",d)},u=d=>{n("visible-change",d)},S=d=>{n("panel-change",d)};return(d,h)=>{const r=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(r,e.mergeProps(s,{modelValue:f.value,"onUpdate:modelValue":h[0]||(h[0]=a=>f.value=a),popperClass:l.value,onChange:c,onClear:y,onBlur:g,onFocus:i,onCalendarChange:o,onVisibleChange:u,onPanelChange:S}),{"prev-month":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-month":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"prev-year":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_2left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-year":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_2right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),_:1},16,["modelValue","popperClass"])}}}),[["__scopeId","data-v-3083e764"]]);C.install=t=>{t.component("YwDatePicker",C)};const k=e.defineComponent({__name:"Avatar",props:{size:{type:Number,default:40},shape:{type:String,default:"circle"},icon:{type:String,default:""},src:{type:String,default:""},alt:{type:String,default:""},srcSet:{type:String,default:""},fit:{type:String,default:"cover"}},emits:["error"],setup(t,{emit:p}){const s=t,l=p,n=f=>{l("error",f)};return(f,c)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createBlock(y,e.mergeProps(s,{onError:n}),e.createSlots({_:2},[e.renderList(f.$slots,(g,i)=>({name:i,fn:e.withCtx(o=>[e.renderSlot(f.$slots,i,e.normalizeProps(e.guardReactiveProps(o||{})))])}))]),1040)}}});k.install=t=>{t.component("YwAvatar",k)};const w=e.defineComponent({__name:"Form",props:{modelValue:{type:Object,default:{}},rules:{type:Object,default:{}},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},labelWidth:{type:String,default:""},labelSuffix:{type:String,default:""},hideRequiredAsterisk:{type:Boolean,default:!1},requireAsteriskPosition:{type:String,default:"left"},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},statusIcon:{type:Boolean,default:!1},validateOnRuleChange:{type:Boolean,default:!0},size:{type:String,default:""},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1}},emits:["validate","validateField","resetFields","scrollToField","clearValidate","fields","getField"],setup(t,{emit:p}){const s=t,l=p,n=(o,u,S)=>{l("validate",o,u,S)},f=(o,u)=>{l("validateField",o,u)},c=o=>{l("resetFields",o)},y=o=>{l("scrollToField",o)},g=o=>{l("clearValidate",o)},i=o=>{l("getField",o)};return(o,u)=>{const S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps(s,{onValidate:n,onValidateField:f,onResetFields:c,onScrollToField:y,onClearValidate:g,onGetField:i}),e.createSlots({_:2},[e.renderList(o.$slots,(d,h)=>({name:h,fn:e.withCtx(r=>[e.renderSlot(o.$slots,h,e.normalizeProps(e.guardReactiveProps(r||{})))])}))]),1040)}}});w.install=t=>{t.component("YwForm",w)};const V=e.defineComponent({__name:"FormItem",props:{prop:{type:String,default:""},label:{type:String,default:""},labelPosition:{type:String,default:""},labelWidth:{type:[String,Number],default:""},required:{type:Boolean,default:!1},rules:{type:[Object,Array],default:void 0},error:{type:String,default:""},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},size:{type:String,default:""},for:{type:String,default:""},validateStatus:{type:String,default:""}},emits:["validate","resetFields","clearValidate"],setup(t,{expose:p,emit:s}){const l=t,n=s,f=e.computed(()=>{const{...i}=l;return Object.fromEntries(Object.entries(i).filter(([o,u])=>u!==void 0&&u!==""))}),c=(i,o,u)=>{n("validate",i,o,u)},y=i=>{n("resetFields",i)},g=i=>{n("clearValidate",i)};return p({size:e.computed(()=>document.querySelector(".el-form-item")?.className.includes("size-")||""),validateMessage:e.computed(()=>document.querySelector(".el-form-item__error")?.textContent||""),validateState:e.computed(()=>{const i=document.querySelector(".el-form-item");return i?.classList.contains("is-error")?"error":i?.classList.contains("is-success")?"success":i?.classList.contains("is-validating")?"validating":""})}),(i,o)=>{const u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,e.mergeProps(f.value,{onValidate:c,onResetFields:y,onClearValidate:g}),e.createSlots({_:2},[e.renderList(i.$slots,(S,d)=>({name:d,fn:e.withCtx(h=>[e.renderSlot(i.$slots,d,e.normalizeProps(e.guardReactiveProps(h||{})))])}))]),1040)}}});V.install=t=>{t.component("YwFormItem",V)};const x=e.defineComponent({__name:"Input",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},showWordLimit:{type:Boolean,default:!1},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:String,default:()=>e.h("svg",{class:"svg-icon","aria-hidden":"true"},[e.h("use",{"xlink:href":"#icon-12_12_fill_delete",fill:"#b2b4c6"})])},formatter:{type:Function,default:t=>t},parser:{type:Function,default:t=>t},maxlength:{type:Number,default:null},minlength:{type:Number,default:null},showPassword:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},prefixIcon:{type:[String,Object],default:""},suffixIcon:{type:[String,Object],default:""},rows:{type:Number,default:2},autosize:{type:[Boolean,Object],default:!1},name:{type:String,default:""},readonly:{type:Boolean,default:!1},max:{type:[String,Number],default:""},min:{type:[String,Number],default:""},step:{type:[String,Number],default:""},resize:{type:String,default:""},autofocus:{type:Boolean,default:!1},form:{type:String,default:""},ariaLabel:{type:String,default:""},tabindex:{type:String,default:""},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Object,default:()=>({})},label:{type:String,default:""},inputMode:{type:String,default:""}},emits:["update:modelValue","change","blur","focus","input","clear","keydown","mouseleave","mouseenter","compositionstart","compositionupdate","compositionend"],setup(t,{emit:p}){const s=t,l=p,n=e.computed({get(){return s.modelValue},set(a){l("update:modelValue",a)}}),f=a=>{l("input",a)},c=a=>{l("change",a)},y=a=>{l("blur",a)},g=a=>{l("focus",a)},i=()=>{l("clear")},o=a=>{l("keydown",a)},u=a=>{l("mouseleave",a)},S=a=>{l("mouseenter",a)},d=a=>{l("compositionstart",a)},h=a=>{l("compositionupdate",a)},r=a=>{l("compositionend",a)};return(a,m)=>{const P=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(P,e.mergeProps(s,{modelValue:e.unref(n),"onUpdate:modelValue":m[0]||(m[0]=N=>e.isRef(n)?n.value=N:null),class:"yw-input",onInput:f,onChange:c,onBlur:y,onFocus:g,onClear:i,onKeydown:o,onMouseleave:u,onMouseenter:S,onCompositionstart:d,onCompositionupdate:h,onCompositionend:r}),e.createSlots({_:2},[e.renderList(a.$slots,(N,O)=>({name:O,fn:e.withCtx(T=>[e.renderSlot(a.$slots,O,e.normalizeProps(e.guardReactiveProps(T||{})))])}))]),1040,["modelValue"])}}});x.install=t=>{t.component("YwInput",x)};const F=e.defineComponent({__name:"Select",props:{modelValue:{type:[String,Number],default:""},multiple:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})},disabled:{type:Boolean,default:!1},valueKey:{type:String,default:"value"},size:{type:String,default:""},clearable:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},id:{type:String,default:""},name:{type:String,default:""},effect:{type:String,default:"light"},autocomplete:{type:String,default:"off"},placeholder:{type:String,default:""},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},filterMethod:{type:Function,default:()=>{}},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:()=>{}},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},noMatchText:{type:String,default:""},noDataText:{type:String,default:""},popperClass:{type:String,default:""},reserveKeyword:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},automaticDropdown:{type:Boolean,default:!1},clearIcon:{type:String,default:()=>e.h("svg",{class:"svg-icon","aria-hidden":"true"},[e.h("use",{"xlink:href":"#icon-12_12_fill_delete",fill:"#b2b4c6"})])},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:String,default:()=>e.h("svg",{class:"svg-icon","aria-hidden":"true"},[e.h("use",{"xlink:href":"#icon-12_12_arrow_bottom",fill:"#1a1a1a"})])},tagType:{type:String,default:"info"},tagEffect:{type:String,default:"light"},validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},maxCollapseTags:{type:Number,default:1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","change","visible-change","remove-tag","clear","focus","blur","popup-scroll"],setup(t,{emit:p}){const s=t,l=e.computed(()=>s.props),n=e.useSlots(),f=e.computed(()=>n.default?.().length===0?[]:n.default?.().flatMap(r=>{const a=String(r.type);if(a.includes("yw-option")||a.includes("ywOption")){const m=r.children;return{type:_.ElOption,props:r.props||{},children:m&&m[0].children,key:r.key}}return r})),c=p,y=e.computed({get(){return s.modelValue},set(r){c("update:modelValue",r)}}),g=r=>{c("change",r)},i=r=>{c("visible-change",r)},o=r=>{c("remove-tag",r)},u=()=>{c("clear")},S=r=>{c("focus",r)},d=r=>{c("blur",r)},h=r=>{c("popup-scroll",r)};return(r,a)=>(e.openBlock(),e.createBlock(e.unref(_.ElSelect),e.mergeProps(s,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=m=>y.value=m),class:"yw-select","popper-class":"yw-select-popper",onChange:g,onVisibleChange:i,onRemoveTag:o,onClear:u,onBlur:d,onFocus:S,onPopupScroll:h}),{default:e.withCtx(()=>[r.$slots.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f.value,(m,P)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.type),e.mergeProps({ref_for:!0},m.props,{key:m.key||P}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.children),1)]),_:2},1040))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,m=>(e.openBlock(),e.createBlock(e.unref(_.ElOption),{key:m[l.value.value],label:m[l.value.label],value:m[l.value.value],disabled:m[l.value.disabled]},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"]))}});F.install=t=>{t.component("YwSelect",F)};const I=[b,C,k,w,V,x,F];return{install(t){I.forEach(p=>{t.use(p)})}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erp-plus",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "author": "zhangxl",
5
5
  "main": "dist/erp-plus.umd.js",
6
6
  "module": "dist/erp-plus.es.js",