erp-plus 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/12_12_arrow_bottom.svg +1 -0
- package/dist/types/12_12_fill_delete.svg +1 -0
- package/dist/types/16_16_arrow_2left.svg +1 -0
- package/dist/types/16_16_arrow_2right.svg +1 -0
- package/dist/types/16_16_arrow_left.svg +1 -0
- package/dist/types/16_16_arrow_right.svg +1 -0
- package/dist/types/16_16_calendar.svg +1 -0
- package/dist/types/erp-plus.es.js +73 -70
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/packages/Input/Input.vue.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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
|
|
1
|
+
import { defineComponent as V, useSlots as U, resolveComponent as x, createBlock as v, openBlock as g, mergeProps as C, createSlots as k, 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,16 +79,16 @@ const j = /* @__PURE__ */ V({
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
emits: ["click"],
|
|
82
|
-
setup(e, { emit:
|
|
83
|
-
const r = U(), t = e, o =
|
|
82
|
+
setup(e, { emit: i }) {
|
|
83
|
+
const r = U(), t = e, o = i, c = (d) => {
|
|
84
84
|
o("click", d);
|
|
85
85
|
};
|
|
86
86
|
return (d, y) => {
|
|
87
|
-
const m =
|
|
87
|
+
const m = x("el-button");
|
|
88
88
|
return g(), v(m, C(t, {
|
|
89
89
|
class: ["yw-button-" + e.type, "yw-button"],
|
|
90
90
|
onClick: c
|
|
91
|
-
}),
|
|
91
|
+
}), k({ _: 2 }, [
|
|
92
92
|
w(P(r), (s, a) => ({
|
|
93
93
|
name: a,
|
|
94
94
|
fn: _((p) => [
|
|
@@ -119,7 +119,7 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
setup(e) {
|
|
122
|
-
const
|
|
122
|
+
const i = e, r = h(() => i.className ? (console.log(i.className), `svg-icon ${i.className}`) : "svg-icon"), t = h(() => `#icon-${i.iconClass}`);
|
|
123
123
|
return (o, c) => (g(), M("svg", {
|
|
124
124
|
class: H(r.value),
|
|
125
125
|
"aria-hidden": "true"
|
|
@@ -258,31 +258,31 @@ const le = ["xlink:href", "fill"], F = /* @__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:
|
|
262
|
-
const r = e, t = h(() => r.type === "daterange" || r.type === "datetimerange" ? `yw-daterange-picker ${r.popperClass}` : `yw-date-picker ${r.popperClass}`), o =
|
|
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({
|
|
263
263
|
get() {
|
|
264
264
|
return r.modelValue;
|
|
265
265
|
},
|
|
266
|
-
set(
|
|
267
|
-
o("update:modelValue",
|
|
266
|
+
set(u) {
|
|
267
|
+
o("update:modelValue", u);
|
|
268
268
|
}
|
|
269
|
-
}), d = (
|
|
270
|
-
o("change",
|
|
271
|
-
}, y = (
|
|
272
|
-
o("clear",
|
|
273
|
-
}, m = (
|
|
274
|
-
o("blur",
|
|
275
|
-
}, s = (
|
|
276
|
-
o("focus",
|
|
277
|
-
}, a = (
|
|
278
|
-
o("calendar-change",
|
|
279
|
-
}, p = (
|
|
280
|
-
o("visible-change",
|
|
281
|
-
}, b = (
|
|
282
|
-
o("panel-change",
|
|
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);
|
|
283
283
|
};
|
|
284
|
-
return (
|
|
285
|
-
const n =
|
|
284
|
+
return (u, S) => {
|
|
285
|
+
const n = x("el-date-picker");
|
|
286
286
|
return g(), v(n, C(r, {
|
|
287
287
|
modelValue: c.value,
|
|
288
288
|
"onUpdate:modelValue": S[0] || (S[0] = (l) => c.value = l),
|
|
@@ -327,9 +327,9 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
|
|
|
327
327
|
}, 16, ["modelValue", "popperClass"]);
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
}), oe = (e,
|
|
330
|
+
}), oe = (e, i) => {
|
|
331
331
|
const r = e.__vccOpts || e;
|
|
332
|
-
for (const [t, o] of
|
|
332
|
+
for (const [t, o] of i)
|
|
333
333
|
r[t] = o;
|
|
334
334
|
return r;
|
|
335
335
|
}, z = /* @__PURE__ */ oe(ae, [["__scopeId", "data-v-3083e764"]]);
|
|
@@ -369,13 +369,13 @@ const D = /* @__PURE__ */ V({
|
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
371
|
emits: ["error"],
|
|
372
|
-
setup(e, { emit:
|
|
373
|
-
const r = e, t =
|
|
372
|
+
setup(e, { emit: i }) {
|
|
373
|
+
const r = e, t = i, o = (c) => {
|
|
374
374
|
t("error", c);
|
|
375
375
|
};
|
|
376
376
|
return (c, d) => {
|
|
377
|
-
const y =
|
|
378
|
-
return g(), v(y, C(r, { onError: o }),
|
|
377
|
+
const y = x("el-avatar");
|
|
378
|
+
return g(), v(y, C(r, { onError: o }), k({ _: 2 }, [
|
|
379
379
|
w(c.$slots, (m, s) => ({
|
|
380
380
|
name: s,
|
|
381
381
|
fn: _((a) => [
|
|
@@ -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:
|
|
458
|
-
const r = e, t =
|
|
457
|
+
setup(e, { emit: i }) {
|
|
458
|
+
const r = e, t = i, o = (a, p, b) => {
|
|
459
459
|
t("validate", a, p, b);
|
|
460
460
|
}, c = (a, p) => {
|
|
461
461
|
t("validateField", a, p);
|
|
@@ -469,7 +469,7 @@ const E = /* @__PURE__ */ V({
|
|
|
469
469
|
t("getField", a);
|
|
470
470
|
};
|
|
471
471
|
return (a, p) => {
|
|
472
|
-
const b =
|
|
472
|
+
const b = x("el-form");
|
|
473
473
|
return g(), v(b, C(r, {
|
|
474
474
|
onValidate: o,
|
|
475
475
|
onValidateField: c,
|
|
@@ -477,8 +477,8 @@ const E = /* @__PURE__ */ V({
|
|
|
477
477
|
onScrollToField: y,
|
|
478
478
|
onClearValidate: m,
|
|
479
479
|
onGetField: s
|
|
480
|
-
}),
|
|
481
|
-
w(a.$slots, (
|
|
480
|
+
}), k({ _: 2 }, [
|
|
481
|
+
w(a.$slots, (u, S) => ({
|
|
482
482
|
name: S,
|
|
483
483
|
fn: _((n) => [
|
|
484
484
|
O(a.$slots, S, N($(n || {})))
|
|
@@ -491,7 +491,7 @@ const E = /* @__PURE__ */ V({
|
|
|
491
491
|
E.install = (e) => {
|
|
492
492
|
e.component("YwForm", E);
|
|
493
493
|
};
|
|
494
|
-
const
|
|
494
|
+
const L = /* @__PURE__ */ V({
|
|
495
495
|
__name: "FormItem",
|
|
496
496
|
props: {
|
|
497
497
|
prop: {
|
|
@@ -544,7 +544,7 @@ const R = /* @__PURE__ */ V({
|
|
|
544
544
|
}
|
|
545
545
|
},
|
|
546
546
|
emits: ["validate", "resetFields", "clearValidate"],
|
|
547
|
-
setup(e, { expose:
|
|
547
|
+
setup(e, { expose: i, 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
|
|
560
|
+
return i({
|
|
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,24 +565,24 @@ 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 =
|
|
568
|
+
const p = x("el-form-item");
|
|
569
569
|
return g(), v(p, C(c.value, {
|
|
570
570
|
onValidate: d,
|
|
571
571
|
onResetFields: y,
|
|
572
572
|
onClearValidate: m
|
|
573
|
-
}),
|
|
574
|
-
w(s.$slots, (b,
|
|
575
|
-
name:
|
|
573
|
+
}), k({ _: 2 }, [
|
|
574
|
+
w(s.$slots, (b, u) => ({
|
|
575
|
+
name: u,
|
|
576
576
|
fn: _((S) => [
|
|
577
|
-
O(s.$slots,
|
|
577
|
+
O(s.$slots, u, N($(S || {})))
|
|
578
578
|
])
|
|
579
579
|
}))
|
|
580
580
|
]), 1040);
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
583
|
});
|
|
584
|
-
|
|
585
|
-
e.component("YwFormItem",
|
|
584
|
+
L.install = (e) => {
|
|
585
|
+
e.component("YwFormItem", L);
|
|
586
586
|
};
|
|
587
587
|
const A = /* @__PURE__ */ V({
|
|
588
588
|
__name: "Input",
|
|
@@ -608,14 +608,17 @@ const A = /* @__PURE__ */ V({
|
|
|
608
608
|
default: !0
|
|
609
609
|
},
|
|
610
610
|
clearIcon: {
|
|
611
|
-
type: String,
|
|
611
|
+
type: [String, Object],
|
|
612
612
|
default: () => B("svg", {
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
viewBox: "0 0 1024 1024",
|
|
614
|
+
width: "12",
|
|
615
|
+
height: "12",
|
|
616
|
+
fill: "currentColor",
|
|
617
|
+
class: "your-prefix-clear-icon",
|
|
618
|
+
style: { color: "#b2b4c6" }
|
|
615
619
|
}, [
|
|
616
|
-
B("
|
|
617
|
-
|
|
618
|
-
fill: "#b2b4c6"
|
|
620
|
+
B("path", {
|
|
621
|
+
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"
|
|
619
622
|
})
|
|
620
623
|
])
|
|
621
624
|
},
|
|
@@ -725,8 +728,8 @@ const A = /* @__PURE__ */ V({
|
|
|
725
728
|
}
|
|
726
729
|
},
|
|
727
730
|
emits: ["update:modelValue", "change", "blur", "focus", "input", "clear", "keydown", "mouseleave", "mouseenter", "compositionstart", "compositionupdate", "compositionend"],
|
|
728
|
-
setup(e, { emit:
|
|
729
|
-
const r = e, t =
|
|
731
|
+
setup(e, { emit: i }) {
|
|
732
|
+
const r = e, t = i, o = h({
|
|
730
733
|
get() {
|
|
731
734
|
return r.modelValue;
|
|
732
735
|
},
|
|
@@ -749,7 +752,7 @@ const A = /* @__PURE__ */ V({
|
|
|
749
752
|
t("mouseleave", l);
|
|
750
753
|
}, b = (l) => {
|
|
751
754
|
t("mouseenter", l);
|
|
752
|
-
},
|
|
755
|
+
}, u = (l) => {
|
|
753
756
|
t("compositionstart", l);
|
|
754
757
|
}, S = (l) => {
|
|
755
758
|
t("compositionupdate", l);
|
|
@@ -757,7 +760,7 @@ const A = /* @__PURE__ */ V({
|
|
|
757
760
|
t("compositionend", l);
|
|
758
761
|
};
|
|
759
762
|
return (l, f) => {
|
|
760
|
-
const T =
|
|
763
|
+
const T = x("el-input");
|
|
761
764
|
return g(), v(T, C(r, {
|
|
762
765
|
modelValue: P(o),
|
|
763
766
|
"onUpdate:modelValue": f[0] || (f[0] = (q) => Q(o) ? o.value = q : null),
|
|
@@ -770,10 +773,10 @@ const A = /* @__PURE__ */ V({
|
|
|
770
773
|
onKeydown: a,
|
|
771
774
|
onMouseleave: p,
|
|
772
775
|
onMouseenter: b,
|
|
773
|
-
onCompositionstart:
|
|
776
|
+
onCompositionstart: u,
|
|
774
777
|
onCompositionupdate: S,
|
|
775
778
|
onCompositionend: n
|
|
776
|
-
}),
|
|
779
|
+
}), k({ _: 2 }, [
|
|
777
780
|
w(l.$slots, (q, Y) => ({
|
|
778
781
|
name: Y,
|
|
779
782
|
fn: _((G) => [
|
|
@@ -787,7 +790,7 @@ const A = /* @__PURE__ */ V({
|
|
|
787
790
|
A.install = (e) => {
|
|
788
791
|
e.component("YwInput", A);
|
|
789
792
|
};
|
|
790
|
-
const
|
|
793
|
+
const R = /* @__PURE__ */ V({
|
|
791
794
|
__name: "Select",
|
|
792
795
|
props: {
|
|
793
796
|
modelValue: {
|
|
@@ -989,7 +992,7 @@ const L = /* @__PURE__ */ V({
|
|
|
989
992
|
}
|
|
990
993
|
},
|
|
991
994
|
emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "focus", "blur", "popup-scroll"],
|
|
992
|
-
setup(e, { emit:
|
|
995
|
+
setup(e, { emit: i }) {
|
|
993
996
|
const r = e, t = h(() => r.props), o = U(), c = h(() => o.default?.().length === 0 ? [] : o.default?.().flatMap((n) => {
|
|
994
997
|
const l = String(n.type);
|
|
995
998
|
if (l.includes("yw-option") || l.includes("ywOption")) {
|
|
@@ -1002,7 +1005,7 @@ const L = /* @__PURE__ */ V({
|
|
|
1002
1005
|
};
|
|
1003
1006
|
}
|
|
1004
1007
|
return n;
|
|
1005
|
-
})), d =
|
|
1008
|
+
})), d = i, y = h({
|
|
1006
1009
|
get() {
|
|
1007
1010
|
return r.modelValue;
|
|
1008
1011
|
},
|
|
@@ -1019,7 +1022,7 @@ const L = /* @__PURE__ */ V({
|
|
|
1019
1022
|
d("clear");
|
|
1020
1023
|
}, b = (n) => {
|
|
1021
1024
|
d("focus", n);
|
|
1022
|
-
},
|
|
1025
|
+
}, u = (n) => {
|
|
1023
1026
|
d("blur", n);
|
|
1024
1027
|
}, S = (n) => {
|
|
1025
1028
|
d("popup-scroll", n);
|
|
@@ -1033,7 +1036,7 @@ const L = /* @__PURE__ */ V({
|
|
|
1033
1036
|
onVisibleChange: s,
|
|
1034
1037
|
onRemoveTag: a,
|
|
1035
1038
|
onClear: p,
|
|
1036
|
-
onBlur:
|
|
1039
|
+
onBlur: u,
|
|
1037
1040
|
onFocus: b,
|
|
1038
1041
|
onPopupScroll: S
|
|
1039
1042
|
}), {
|
|
@@ -1056,16 +1059,16 @@ const L = /* @__PURE__ */ V({
|
|
|
1056
1059
|
}, 16, ["modelValue"]));
|
|
1057
1060
|
}
|
|
1058
1061
|
});
|
|
1059
|
-
|
|
1060
|
-
e.component("YwSelect",
|
|
1062
|
+
R.install = (e) => {
|
|
1063
|
+
e.component("YwSelect", R);
|
|
1061
1064
|
};
|
|
1062
|
-
const ne = [j, z, D, E,
|
|
1065
|
+
const ne = [j, z, D, E, L, A, R], ue = {
|
|
1063
1066
|
install(e) {
|
|
1064
|
-
ne.forEach((
|
|
1065
|
-
e.use(
|
|
1067
|
+
ne.forEach((i) => {
|
|
1068
|
+
e.use(i);
|
|
1066
1069
|
});
|
|
1067
1070
|
}
|
|
1068
1071
|
};
|
|
1069
1072
|
export {
|
|
1070
|
-
|
|
1073
|
+
ue as default
|
|
1071
1074
|
};
|
|
@@ -1 +1 @@
|
|
|
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)})}}});
|
|
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 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: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)}}});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: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)}}});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: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,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("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"})])},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]=O=>e.isRef(n)?n.value=O: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,(O,N)=>({name:N,fn:e.withCtx(I=>[e.renderSlot(a.$slots,N,e.normalizeProps(e.guardReactiveProps(I||{})))])}))]),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 z=[b,C,w,k,V,x,F];return{install(t){z.forEach(p=>{t.use(p)})}}});
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
30
30
|
default: boolean;
|
|
31
31
|
};
|
|
32
32
|
clearIcon: {
|
|
33
|
-
type: StringConstructor;
|
|
33
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
34
34
|
default: () => VNode<RendererNode, RendererElement, {
|
|
35
35
|
[key: string]: any;
|
|
36
36
|
}>;
|
|
@@ -173,7 +173,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
173
173
|
default: boolean;
|
|
174
174
|
};
|
|
175
175
|
clearIcon: {
|
|
176
|
-
type: StringConstructor;
|
|
176
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
177
177
|
default: () => VNode<RendererNode, RendererElement, {
|
|
178
178
|
[key: string]: any;
|
|
179
179
|
}>;
|
|
@@ -308,7 +308,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
308
308
|
placeholder: string;
|
|
309
309
|
name: string;
|
|
310
310
|
prefixIcon: string | Component;
|
|
311
|
-
clearIcon: string
|
|
311
|
+
clearIcon: string | Record<string, any>;
|
|
312
312
|
validateEvent: boolean;
|
|
313
313
|
ariaLabel: string;
|
|
314
314
|
tabindex: string;
|