erp-plus 1.0.10 → 1.0.12

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.
@@ -1,6 +1,6 @@
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
- import { ElOption as K, ElSelect as te } from "element-plus";
3
- const j = /* @__PURE__ */ V({
1
+ import { defineComponent as C, useSlots as H, resolveComponent as O, createBlock as v, openBlock as f, mergeProps as _, createSlots as D, renderList as x, unref as z, withCtx as m, renderSlot as P, normalizeProps as T, guardReactiveProps as A, computed as S, createElementBlock as M, normalizeClass as W, createElementVNode as q, h as d, createVNode as V, isRef as G, Fragment as K, resolveDynamicComponent as J, createTextVNode as Q, toDisplayString as X } from "vue";
2
+ import { ElOption as R, ElSelect as Z } from "element-plus";
3
+ const L = /* @__PURE__ */ C({
4
4
  __name: "Button",
5
5
  props: {
6
6
  // 基础属性
@@ -80,29 +80,29 @@ const j = /* @__PURE__ */ V({
80
80
  },
81
81
  emits: ["click"],
82
82
  setup(e, { emit: u }) {
83
- const r = U(), t = e, o = u, c = (d) => {
84
- o("click", d);
83
+ const o = H(), a = e, n = u, i = (s) => {
84
+ n("click", s);
85
85
  };
86
- return (d, y) => {
87
- const m = k("el-button");
88
- return g(), v(m, C(t, {
86
+ return (s, y) => {
87
+ const h = O("el-button");
88
+ return f(), v(h, _(a, {
89
89
  class: ["yw-button-" + e.type, "yw-button"],
90
- onClick: c
91
- }), x({ _: 2 }, [
92
- w(P(r), (s, a) => ({
93
- name: a,
94
- fn: _((p) => [
95
- O(d.$slots, a, N($(p || {})))
90
+ onClick: i
91
+ }), D({ _: 2 }, [
92
+ x(z(o), (g, c) => ({
93
+ name: c,
94
+ fn: m((b) => [
95
+ P(s.$slots, c, T(A(b || {})))
96
96
  ])
97
97
  }))
98
98
  ]), 1040, ["class"]);
99
99
  };
100
100
  }
101
101
  });
102
- j.install = (e) => {
103
- e.component("YwButton", j);
102
+ L.install = (e) => {
103
+ e.component("YwButton", L);
104
104
  };
105
- const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
105
+ const ee = ["xlink:href", "fill"], k = /* @__PURE__ */ C({
106
106
  __name: "index",
107
107
  props: {
108
108
  iconClass: {
@@ -119,18 +119,18 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
119
119
  }
120
120
  },
121
121
  setup(e) {
122
- const u = e, r = h(() => u.className ? (console.log(u.className), `svg-icon ${u.className}`) : "svg-icon"), t = h(() => `#icon-${u.iconClass}`);
123
- return (o, c) => (g(), M("svg", {
124
- class: H(r.value),
122
+ const u = e, o = S(() => u.className ? (console.log(u.className), `svg-icon ${u.className}`) : "svg-icon"), a = S(() => `#icon-${u.iconClass}`);
123
+ return (n, i) => (f(), M("svg", {
124
+ class: W(o.value),
125
125
  "aria-hidden": "true"
126
126
  }, [
127
- J("use", {
128
- "xlink:href": t.value,
127
+ q("use", {
128
+ "xlink:href": a.value,
129
129
  fill: e.color
130
- }, null, 8, le)
130
+ }, null, 8, ee)
131
131
  ], 2));
132
132
  }
133
- }), ae = /* @__PURE__ */ V({
133
+ }), te = /* @__PURE__ */ C({
134
134
  __name: "DatePicker",
135
135
  props: {
136
136
  modelValue: {
@@ -207,14 +207,41 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
207
207
  default: !1
208
208
  },
209
209
  prefixIcon: {
210
- type: String,
211
- default: () => B(F, { iconClass: "16_16_calendar", color: "#838599" })
212
- // 设置默认参数
210
+ type: [String, Object],
211
+ default: () => d("svg", {
212
+ viewBox: "0 0 1024 1024",
213
+ width: "16",
214
+ height: "16",
215
+ fill: "currentColor",
216
+ class: "svg-icon",
217
+ "aria-hidden": "true",
218
+ style: { color: "#838599" }
219
+ }, [
220
+ d("path", {
221
+ 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"
222
+ }),
223
+ d("path", {
224
+ 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"
225
+ }),
226
+ d("path", {
227
+ 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"
228
+ })
229
+ ])
213
230
  },
214
231
  clearIcon: {
215
- type: String,
216
- default: () => B(F, { iconClass: "12_12_fill_delete", color: "#b2b4c6" })
217
- // 设置默认参数
232
+ type: [String, Object],
233
+ default: () => d("svg", {
234
+ viewBox: "0 0 1024 1024",
235
+ width: "12",
236
+ height: "12",
237
+ fill: "currentColor",
238
+ class: "your-prefix-clear-icon",
239
+ style: { color: "#b2b4c6" }
240
+ }, [
241
+ d("path", {
242
+ 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"
243
+ })
244
+ ])
218
245
  },
219
246
  validateEvent: {
220
247
  type: Boolean,
@@ -259,65 +286,65 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
259
286
  },
260
287
  emits: ["update:modelValue", "change", "clear", "blur", "focus", "calendar-change", "visible-change", "panel-change"],
261
288
  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({
289
+ const o = e, a = S(() => o.type === "daterange" || o.type === "datetimerange" ? `yw-daterange-picker ${o.popperClass}` : `yw-date-picker ${o.popperClass}`), n = u, i = S({
263
290
  get() {
264
- return r.modelValue;
291
+ return o.modelValue;
265
292
  },
266
- set(i) {
267
- o("update:modelValue", i);
293
+ set(r) {
294
+ n("update:modelValue", r);
268
295
  }
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);
296
+ }), s = (r) => {
297
+ n("change", r);
298
+ }, y = (r) => {
299
+ n("clear", r);
300
+ }, h = (r) => {
301
+ n("blur", r);
302
+ }, g = (r) => {
303
+ n("focus", r);
304
+ }, c = (r) => {
305
+ n("calendar-change", r);
306
+ }, b = (r) => {
307
+ n("visible-change", r);
308
+ }, w = (r) => {
309
+ n("panel-change", r);
283
310
  };
284
- return (i, S) => {
285
- const n = k("el-date-picker");
286
- return g(), v(n, C(r, {
287
- modelValue: c.value,
288
- "onUpdate:modelValue": S[0] || (S[0] = (l) => c.value = l),
289
- popperClass: t.value,
290
- onChange: d,
311
+ return (r, B) => {
312
+ const l = O("el-date-picker");
313
+ return f(), v(l, _(o, {
314
+ modelValue: i.value,
315
+ "onUpdate:modelValue": B[0] || (B[0] = (t) => i.value = t),
316
+ popperClass: a.value,
317
+ onChange: s,
291
318
  onClear: y,
292
- onBlur: m,
293
- onFocus: s,
294
- onCalendarChange: a,
295
- onVisibleChange: p,
296
- onPanelChange: b
319
+ onBlur: h,
320
+ onFocus: g,
321
+ onCalendarChange: c,
322
+ onVisibleChange: b,
323
+ onPanelChange: w
297
324
  }), {
298
- "prev-month": _(() => [
299
- I(F, {
325
+ "prev-month": m(() => [
326
+ V(k, {
300
327
  iconClass: "16_16_arrow_left",
301
328
  color: "#1a1a1a",
302
329
  style: { width: "16px", height: "16px" }
303
330
  })
304
331
  ]),
305
- "next-month": _(() => [
306
- I(F, {
332
+ "next-month": m(() => [
333
+ V(k, {
307
334
  iconClass: "16_16_arrow_right",
308
335
  color: "#1a1a1a",
309
336
  style: { width: "16px", height: "16px" }
310
337
  })
311
338
  ]),
312
- "prev-year": _(() => [
313
- I(F, {
339
+ "prev-year": m(() => [
340
+ V(k, {
314
341
  iconClass: "16_16_arrow_2left",
315
342
  color: "#1a1a1a",
316
343
  style: { width: "16px", height: "16px" }
317
344
  })
318
345
  ]),
319
- "next-year": _(() => [
320
- I(F, {
346
+ "next-year": m(() => [
347
+ V(k, {
321
348
  iconClass: "16_16_arrow_2right",
322
349
  color: "#1a1a1a",
323
350
  style: { width: "16px", height: "16px" }
@@ -327,16 +354,16 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
327
354
  }, 16, ["modelValue", "popperClass"]);
328
355
  };
329
356
  }
330
- }), oe = (e, u) => {
331
- const r = e.__vccOpts || e;
332
- for (const [t, o] of u)
333
- r[t] = o;
334
- return r;
335
- }, z = /* @__PURE__ */ oe(ae, [["__scopeId", "data-v-3083e764"]]);
336
- z.install = (e) => {
337
- e.component("YwDatePicker", z);
357
+ }), ae = (e, u) => {
358
+ const o = e.__vccOpts || e;
359
+ for (const [a, n] of u)
360
+ o[a] = n;
361
+ return o;
362
+ }, F = /* @__PURE__ */ ae(te, [["__scopeId", "data-v-84e7bdaa"]]);
363
+ F.install = (e) => {
364
+ e.component("YwDatePicker", F);
338
365
  };
339
- const D = /* @__PURE__ */ V({
366
+ const j = /* @__PURE__ */ C({
340
367
  __name: "Avatar",
341
368
  props: {
342
369
  size: {
@@ -370,221 +397,26 @@ const D = /* @__PURE__ */ V({
370
397
  },
371
398
  emits: ["error"],
372
399
  setup(e, { emit: u }) {
373
- const r = e, t = u, o = (c) => {
374
- t("error", c);
375
- };
376
- return (c, d) => {
377
- const y = k("el-avatar");
378
- return g(), v(y, C(r, { onError: o }), x({ _: 2 }, [
379
- w(c.$slots, (m, s) => ({
380
- name: s,
381
- fn: _((a) => [
382
- O(c.$slots, s, N($(a || {})))
383
- ])
384
- }))
385
- ]), 1040);
386
- };
387
- }
388
- });
389
- D.install = (e) => {
390
- e.component("YwAvatar", D);
391
- };
392
- const E = /* @__PURE__ */ V({
393
- __name: "Form",
394
- props: {
395
- modelValue: {
396
- type: Object,
397
- default: {}
398
- },
399
- rules: {
400
- type: Object,
401
- default: {}
402
- },
403
- inline: {
404
- type: Boolean,
405
- default: !1
406
- },
407
- labelPosition: {
408
- type: String,
409
- default: "right"
410
- },
411
- labelWidth: {
412
- type: String,
413
- default: ""
414
- },
415
- labelSuffix: {
416
- type: String,
417
- default: ""
418
- },
419
- hideRequiredAsterisk: {
420
- type: Boolean,
421
- default: !1
422
- },
423
- requireAsteriskPosition: {
424
- type: String,
425
- default: "left"
426
- },
427
- showMessage: {
428
- type: Boolean,
429
- default: !0
430
- },
431
- inlineMessage: {
432
- type: Boolean,
433
- default: !1
434
- },
435
- statusIcon: {
436
- type: Boolean,
437
- default: !1
438
- },
439
- validateOnRuleChange: {
440
- type: Boolean,
441
- default: !0
442
- },
443
- size: {
444
- type: String,
445
- default: ""
446
- },
447
- disabled: {
448
- type: Boolean,
449
- default: !1
450
- },
451
- scrollToError: {
452
- type: Boolean,
453
- default: !1
454
- }
455
- },
456
- emits: ["validate", "validateField", "resetFields", "scrollToField", "clearValidate", "fields", "getField"],
457
- setup(e, { emit: u }) {
458
- const r = e, t = u, o = (a, p, b) => {
459
- t("validate", a, p, b);
460
- }, c = (a, p) => {
461
- t("validateField", a, p);
462
- }, d = (a) => {
463
- t("resetFields", a);
464
- }, y = (a) => {
465
- t("scrollToField", a);
466
- }, m = (a) => {
467
- t("clearValidate", a);
468
- }, s = (a) => {
469
- t("getField", a);
470
- };
471
- return (a, p) => {
472
- const b = k("el-form");
473
- return g(), v(b, C(r, {
474
- onValidate: o,
475
- onValidateField: c,
476
- onResetFields: d,
477
- onScrollToField: y,
478
- onClearValidate: m,
479
- onGetField: s
480
- }), x({ _: 2 }, [
481
- w(a.$slots, (i, S) => ({
482
- name: S,
483
- fn: _((n) => [
484
- O(a.$slots, S, N($(n || {})))
485
- ])
486
- }))
487
- ]), 1040);
488
- };
489
- }
490
- });
491
- E.install = (e) => {
492
- e.component("YwForm", E);
493
- };
494
- const R = /* @__PURE__ */ V({
495
- __name: "FormItem",
496
- props: {
497
- prop: {
498
- type: String,
499
- default: ""
500
- },
501
- label: {
502
- type: String,
503
- default: ""
504
- },
505
- labelPosition: {
506
- type: String,
507
- default: ""
508
- },
509
- labelWidth: {
510
- type: [String, Number],
511
- default: ""
512
- },
513
- required: {
514
- type: Boolean,
515
- default: !1
516
- },
517
- rules: {
518
- type: [Object, Array],
519
- default: void 0
520
- },
521
- error: {
522
- type: String,
523
- default: ""
524
- },
525
- showMessage: {
526
- type: Boolean,
527
- default: !0
528
- },
529
- inlineMessage: {
530
- type: Boolean,
531
- default: !1
532
- },
533
- size: {
534
- type: String,
535
- default: ""
536
- },
537
- for: {
538
- type: String,
539
- default: ""
540
- },
541
- validateStatus: {
542
- type: String,
543
- default: ""
544
- }
545
- },
546
- emits: ["validate", "resetFields", "clearValidate"],
547
- setup(e, { expose: u, emit: r }) {
548
- const t = e, o = r, c = h(() => {
549
- const { ...s } = t;
550
- return Object.fromEntries(
551
- Object.entries(s).filter(([a, p]) => p !== void 0 && p !== "")
552
- );
553
- }), d = (s, a, p) => {
554
- o("validate", s, a, p);
555
- }, y = (s) => {
556
- o("resetFields", s);
557
- }, m = (s) => {
558
- o("clearValidate", s);
400
+ const o = e, a = u, n = (i) => {
401
+ a("error", i);
559
402
  };
560
- return u({
561
- size: h(() => document.querySelector(".el-form-item")?.className.includes("size-") || ""),
562
- validateMessage: h(() => document.querySelector(".el-form-item__error")?.textContent || ""),
563
- validateState: h(() => {
564
- const s = document.querySelector(".el-form-item");
565
- return s?.classList.contains("is-error") ? "error" : s?.classList.contains("is-success") ? "success" : s?.classList.contains("is-validating") ? "validating" : "";
566
- })
567
- }), (s, a) => {
568
- const p = k("el-form-item");
569
- return g(), v(p, C(c.value, {
570
- onValidate: d,
571
- onResetFields: y,
572
- onClearValidate: m
573
- }), x({ _: 2 }, [
574
- w(s.$slots, (b, i) => ({
575
- name: i,
576
- fn: _((S) => [
577
- O(s.$slots, i, N($(S || {})))
403
+ return (i, s) => {
404
+ const y = O("el-avatar");
405
+ return f(), v(y, _(o, { onError: n }), D({ _: 2 }, [
406
+ x(i.$slots, (h, g) => ({
407
+ name: g,
408
+ fn: m((c) => [
409
+ P(i.$slots, g, T(A(c || {})))
578
410
  ])
579
411
  }))
580
412
  ]), 1040);
581
413
  };
582
414
  }
583
415
  });
584
- R.install = (e) => {
585
- e.component("YwFormItem", R);
416
+ j.install = (e) => {
417
+ e.component("YwAvatar", j);
586
418
  };
587
- const A = /* @__PURE__ */ V({
419
+ const I = /* @__PURE__ */ C({
588
420
  __name: "Input",
589
421
  props: {
590
422
  modelValue: {
@@ -608,14 +440,17 @@ const A = /* @__PURE__ */ V({
608
440
  default: !0
609
441
  },
610
442
  clearIcon: {
611
- type: String,
612
- default: () => B("svg", {
613
- class: "svg-icon",
614
- "aria-hidden": "true"
443
+ type: [String, Object],
444
+ default: () => d("svg", {
445
+ viewBox: "0 0 1024 1024",
446
+ width: "12",
447
+ height: "12",
448
+ fill: "currentColor",
449
+ class: "your-prefix-clear-icon",
450
+ style: { color: "#b2b4c6" }
615
451
  }, [
616
- B("use", {
617
- "xlink:href": "#icon-12_12_fill_delete",
618
- fill: "#b2b4c6"
452
+ d("path", {
453
+ 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
454
  })
620
455
  ])
621
456
  },
@@ -726,68 +561,68 @@ const A = /* @__PURE__ */ V({
726
561
  },
727
562
  emits: ["update:modelValue", "change", "blur", "focus", "input", "clear", "keydown", "mouseleave", "mouseenter", "compositionstart", "compositionupdate", "compositionend"],
728
563
  setup(e, { emit: u }) {
729
- const r = e, t = u, o = h({
564
+ const o = e, a = u, n = S({
730
565
  get() {
731
- return r.modelValue;
566
+ return o.modelValue;
732
567
  },
733
- set(l) {
734
- t("update:modelValue", l);
568
+ set(t) {
569
+ a("update:modelValue", t);
735
570
  }
736
- }), c = (l) => {
737
- t("input", l);
738
- }, d = (l) => {
739
- t("change", l);
740
- }, y = (l) => {
741
- t("blur", l);
742
- }, m = (l) => {
743
- t("focus", l);
744
- }, s = () => {
745
- t("clear");
746
- }, a = (l) => {
747
- t("keydown", l);
748
- }, p = (l) => {
749
- t("mouseleave", l);
750
- }, b = (l) => {
751
- t("mouseenter", l);
752
- }, i = (l) => {
753
- t("compositionstart", l);
754
- }, S = (l) => {
755
- t("compositionupdate", l);
756
- }, n = (l) => {
757
- t("compositionend", l);
571
+ }), i = (t) => {
572
+ a("input", t);
573
+ }, s = (t) => {
574
+ a("change", t);
575
+ }, y = (t) => {
576
+ a("blur", t);
577
+ }, h = (t) => {
578
+ a("focus", t);
579
+ }, g = () => {
580
+ a("clear");
581
+ }, c = (t) => {
582
+ a("keydown", t);
583
+ }, b = (t) => {
584
+ a("mouseleave", t);
585
+ }, w = (t) => {
586
+ a("mouseenter", t);
587
+ }, r = (t) => {
588
+ a("compositionstart", t);
589
+ }, B = (t) => {
590
+ a("compositionupdate", t);
591
+ }, l = (t) => {
592
+ a("compositionend", t);
758
593
  };
759
- return (l, f) => {
760
- const T = k("el-input");
761
- return g(), v(T, C(r, {
762
- modelValue: P(o),
763
- "onUpdate:modelValue": f[0] || (f[0] = (q) => Q(o) ? o.value = q : null),
594
+ return (t, p) => {
595
+ const N = O("el-input");
596
+ return f(), v(N, _(o, {
597
+ modelValue: z(n),
598
+ "onUpdate:modelValue": p[0] || (p[0] = (E) => G(n) ? n.value = E : null),
764
599
  class: "yw-input",
765
- onInput: c,
766
- onChange: d,
600
+ onInput: i,
601
+ onChange: s,
767
602
  onBlur: y,
768
- onFocus: m,
769
- onClear: s,
770
- onKeydown: a,
771
- onMouseleave: p,
772
- onMouseenter: b,
773
- onCompositionstart: i,
774
- onCompositionupdate: S,
775
- onCompositionend: n
776
- }), x({ _: 2 }, [
777
- w(l.$slots, (q, Y) => ({
603
+ onFocus: h,
604
+ onClear: g,
605
+ onKeydown: c,
606
+ onMouseleave: b,
607
+ onMouseenter: w,
608
+ onCompositionstart: r,
609
+ onCompositionupdate: B,
610
+ onCompositionend: l
611
+ }), D({ _: 2 }, [
612
+ x(t.$slots, (E, Y) => ({
778
613
  name: Y,
779
- fn: _((G) => [
780
- O(l.$slots, Y, N($(G || {})))
614
+ fn: m((U) => [
615
+ P(t.$slots, Y, T(A(U || {})))
781
616
  ])
782
617
  }))
783
618
  ]), 1040, ["modelValue"]);
784
619
  };
785
620
  }
786
621
  });
787
- A.install = (e) => {
788
- e.component("YwInput", A);
622
+ I.install = (e) => {
623
+ e.component("YwInput", I);
789
624
  };
790
- const L = /* @__PURE__ */ V({
625
+ const $ = /* @__PURE__ */ C({
791
626
  __name: "Select",
792
627
  props: {
793
628
  modelValue: {
@@ -924,14 +759,17 @@ const L = /* @__PURE__ */ V({
924
759
  default: !1
925
760
  },
926
761
  clearIcon: {
927
- type: String,
928
- default: () => B("svg", {
929
- class: "svg-icon",
930
- "aria-hidden": "true"
762
+ type: [String, Object],
763
+ default: () => d("svg", {
764
+ viewBox: "0 0 1024 1024",
765
+ width: "12",
766
+ height: "12",
767
+ fill: "currentColor",
768
+ class: "your-prefix-clear-icon",
769
+ style: { color: "#b2b4c6" }
931
770
  }, [
932
- B("use", {
933
- "xlink:href": "#icon-12_12_fill_delete",
934
- fill: "#b2b4c6"
771
+ d("path", {
772
+ 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"
935
773
  })
936
774
  ])
937
775
  },
@@ -940,14 +778,18 @@ const L = /* @__PURE__ */ V({
940
778
  default: !1
941
779
  },
942
780
  suffixIcon: {
943
- type: String,
944
- default: () => B("svg", {
781
+ type: [String, Object],
782
+ default: () => d("svg", {
783
+ viewBox: "0 0 1024 1024",
784
+ width: "12",
785
+ height: "12",
786
+ fill: "currentColor",
945
787
  class: "svg-icon",
946
- "aria-hidden": "true"
788
+ "aria-hidden": "true",
789
+ style: { color: "#1a1a1a" }
947
790
  }, [
948
- B("use", {
949
- "xlink:href": "#icon-12_12_arrow_bottom",
950
- fill: "#1a1a1a"
791
+ d("path", {
792
+ 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"
951
793
  })
952
794
  ])
953
795
  },
@@ -990,82 +832,82 @@ const L = /* @__PURE__ */ V({
990
832
  },
991
833
  emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "focus", "blur", "popup-scroll"],
992
834
  setup(e, { emit: u }) {
993
- const r = e, t = h(() => r.props), o = U(), c = h(() => o.default?.().length === 0 ? [] : o.default?.().flatMap((n) => {
994
- const l = String(n.type);
995
- if (l.includes("yw-option") || l.includes("ywOption")) {
996
- const f = n.children;
835
+ const o = e, a = S(() => o.props), n = H(), i = S(() => n.default?.().length === 0 ? [] : n.default?.().flatMap((l) => {
836
+ const t = String(l.type);
837
+ if (t.includes("yw-option") || t.includes("ywOption")) {
838
+ const p = l.children;
997
839
  return {
998
- type: K,
999
- props: n.props || {},
1000
- children: f && f[0].children,
1001
- key: n.key
840
+ type: R,
841
+ props: l.props || {},
842
+ children: p && p[0].children,
843
+ key: l.key
1002
844
  };
1003
845
  }
1004
- return n;
1005
- })), d = u, y = h({
846
+ return l;
847
+ })), s = u, y = S({
1006
848
  get() {
1007
- return r.modelValue;
849
+ return o.modelValue;
1008
850
  },
1009
- set(n) {
1010
- d("update:modelValue", n);
851
+ set(l) {
852
+ s("update:modelValue", l);
1011
853
  }
1012
- }), m = (n) => {
1013
- d("change", n);
1014
- }, s = (n) => {
1015
- d("visible-change", n);
1016
- }, a = (n) => {
1017
- d("remove-tag", n);
1018
- }, p = () => {
1019
- d("clear");
1020
- }, b = (n) => {
1021
- d("focus", n);
1022
- }, i = (n) => {
1023
- d("blur", n);
1024
- }, S = (n) => {
1025
- d("popup-scroll", n);
854
+ }), h = (l) => {
855
+ s("change", l);
856
+ }, g = (l) => {
857
+ s("visible-change", l);
858
+ }, c = (l) => {
859
+ s("remove-tag", l);
860
+ }, b = () => {
861
+ s("clear");
862
+ }, w = (l) => {
863
+ s("focus", l);
864
+ }, r = (l) => {
865
+ s("blur", l);
866
+ }, B = (l) => {
867
+ s("popup-scroll", l);
1026
868
  };
1027
- return (n, l) => (g(), v(P(te), C(r, {
869
+ return (l, t) => (f(), v(z(Z), _(o, {
1028
870
  modelValue: y.value,
1029
- "onUpdate:modelValue": l[0] || (l[0] = (f) => y.value = f),
871
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => y.value = p),
1030
872
  class: "yw-select",
1031
873
  "popper-class": "yw-select-popper",
1032
- onChange: m,
1033
- onVisibleChange: s,
1034
- onRemoveTag: a,
1035
- onClear: p,
1036
- onBlur: i,
1037
- onFocus: b,
1038
- onPopupScroll: S
874
+ onChange: h,
875
+ onVisibleChange: g,
876
+ onRemoveTag: c,
877
+ onClear: b,
878
+ onBlur: r,
879
+ onFocus: w,
880
+ onPopupScroll: B
1039
881
  }), {
1040
- default: _(() => [
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, {
1042
- key: f.key || T
882
+ default: m(() => [
883
+ l.$slots.default ? (f(!0), M(K, { key: 0 }, x(i.value, (p, N) => (f(), v(J(p.type), _({ ref_for: !0 }, p.props, {
884
+ key: p.key || N
1043
885
  }), {
1044
- default: _(() => [
1045
- Z(ee(f.children), 1)
886
+ default: m(() => [
887
+ Q(X(p.children), 1)
1046
888
  ]),
1047
889
  _: 2
1048
- }, 1040))), 128)) : (g(!0), M(W, { key: 1 }, w(e.options, (f) => (g(), v(P(K), {
1049
- key: f[t.value.value],
1050
- label: f[t.value.label],
1051
- value: f[t.value.value],
1052
- disabled: f[t.value.disabled]
890
+ }, 1040))), 128)) : (f(!0), M(K, { key: 1 }, x(e.options, (p) => (f(), v(z(R), {
891
+ key: p[a.value.value],
892
+ label: p[a.value.label],
893
+ value: p[a.value.value],
894
+ disabled: p[a.value.disabled]
1053
895
  }, null, 8, ["label", "value", "disabled"]))), 128))
1054
896
  ]),
1055
897
  _: 1
1056
898
  }, 16, ["modelValue"]));
1057
899
  }
1058
900
  });
1059
- L.install = (e) => {
1060
- e.component("YwSelect", L);
901
+ $.install = (e) => {
902
+ e.component("YwSelect", $);
1061
903
  };
1062
- const ne = [j, z, D, E, R, A, L], ie = {
904
+ const le = [L, F, j, I, $], re = {
1063
905
  install(e) {
1064
- ne.forEach((u) => {
906
+ le.forEach((u) => {
1065
907
  e.use(u);
1066
908
  });
1067
909
  }
1068
910
  };
1069
911
  export {
1070
- ie as default
912
+ re as default
1071
913
  };