erp-plus 1.0.11 → 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 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
- 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
  // 基础属性
@@ -79,30 +79,30 @@ 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) => {
84
- o("click", d);
82
+ setup(e, { emit: u }) {
83
+ const o = H(), a = e, n = u, i = (s) => {
84
+ n("click", s);
85
85
  };
86
- return (d, y) => {
87
- const m = x("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
- }), k({ _: 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 i = e, r = h(() => i.className ? (console.log(i.className), `svg-icon ${i.className}`) : "svg-icon"), t = h(() => `#icon-${i.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,
@@ -258,66 +285,66 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
258
285
  }
259
286
  },
260
287
  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({
288
+ setup(e, { emit: u }) {
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(u) {
267
- o("update:modelValue", u);
293
+ set(r) {
294
+ n("update:modelValue", r);
268
295
  }
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);
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 (u, S) => {
285
- const n = x("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, i) => {
331
- const r = e.__vccOpts || e;
332
- for (const [t, o] of i)
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: {
@@ -369,222 +396,27 @@ const D = /* @__PURE__ */ V({
369
396
  }
370
397
  },
371
398
  emits: ["error"],
372
- setup(e, { emit: i }) {
373
- const r = e, t = i, o = (c) => {
374
- t("error", c);
375
- };
376
- return (c, d) => {
377
- const y = x("el-avatar");
378
- return g(), v(y, C(r, { onError: o }), k({ _: 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: i }) {
458
- const r = e, t = i, 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 = x("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
- }), k({ _: 2 }, [
481
- w(a.$slots, (u, 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 L = /* @__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: i, 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);
399
+ setup(e, { emit: u }) {
400
+ const o = e, a = u, n = (i) => {
401
+ a("error", i);
559
402
  };
560
- return i({
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 = x("el-form-item");
569
- return g(), v(p, C(c.value, {
570
- onValidate: d,
571
- onResetFields: y,
572
- onClearValidate: m
573
- }), k({ _: 2 }, [
574
- w(s.$slots, (b, u) => ({
575
- name: u,
576
- fn: _((S) => [
577
- O(s.$slots, u, 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
- L.install = (e) => {
585
- e.component("YwFormItem", L);
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: {
@@ -609,7 +441,7 @@ const A = /* @__PURE__ */ V({
609
441
  },
610
442
  clearIcon: {
611
443
  type: [String, Object],
612
- default: () => B("svg", {
444
+ default: () => d("svg", {
613
445
  viewBox: "0 0 1024 1024",
614
446
  width: "12",
615
447
  height: "12",
@@ -617,7 +449,7 @@ const A = /* @__PURE__ */ V({
617
449
  class: "your-prefix-clear-icon",
618
450
  style: { color: "#b2b4c6" }
619
451
  }, [
620
- B("path", {
452
+ d("path", {
621
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"
622
454
  })
623
455
  ])
@@ -728,69 +560,69 @@ const A = /* @__PURE__ */ V({
728
560
  }
729
561
  },
730
562
  emits: ["update:modelValue", "change", "blur", "focus", "input", "clear", "keydown", "mouseleave", "mouseenter", "compositionstart", "compositionupdate", "compositionend"],
731
- setup(e, { emit: i }) {
732
- const r = e, t = i, o = h({
563
+ setup(e, { emit: u }) {
564
+ const o = e, a = u, n = S({
733
565
  get() {
734
- return r.modelValue;
566
+ return o.modelValue;
735
567
  },
736
- set(l) {
737
- t("update:modelValue", l);
568
+ set(t) {
569
+ a("update:modelValue", t);
738
570
  }
739
- }), c = (l) => {
740
- t("input", l);
741
- }, d = (l) => {
742
- t("change", l);
743
- }, y = (l) => {
744
- t("blur", l);
745
- }, m = (l) => {
746
- t("focus", l);
747
- }, s = () => {
748
- t("clear");
749
- }, a = (l) => {
750
- t("keydown", l);
751
- }, p = (l) => {
752
- t("mouseleave", l);
753
- }, b = (l) => {
754
- t("mouseenter", l);
755
- }, u = (l) => {
756
- t("compositionstart", l);
757
- }, S = (l) => {
758
- t("compositionupdate", l);
759
- }, n = (l) => {
760
- 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);
761
593
  };
762
- return (l, f) => {
763
- const T = x("el-input");
764
- return g(), v(T, C(r, {
765
- modelValue: P(o),
766
- "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),
767
599
  class: "yw-input",
768
- onInput: c,
769
- onChange: d,
600
+ onInput: i,
601
+ onChange: s,
770
602
  onBlur: y,
771
- onFocus: m,
772
- onClear: s,
773
- onKeydown: a,
774
- onMouseleave: p,
775
- onMouseenter: b,
776
- onCompositionstart: u,
777
- onCompositionupdate: S,
778
- onCompositionend: n
779
- }), k({ _: 2 }, [
780
- 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) => ({
781
613
  name: Y,
782
- fn: _((G) => [
783
- O(l.$slots, Y, N($(G || {})))
614
+ fn: m((U) => [
615
+ P(t.$slots, Y, T(A(U || {})))
784
616
  ])
785
617
  }))
786
618
  ]), 1040, ["modelValue"]);
787
619
  };
788
620
  }
789
621
  });
790
- A.install = (e) => {
791
- e.component("YwInput", A);
622
+ I.install = (e) => {
623
+ e.component("YwInput", I);
792
624
  };
793
- const R = /* @__PURE__ */ V({
625
+ const $ = /* @__PURE__ */ C({
794
626
  __name: "Select",
795
627
  props: {
796
628
  modelValue: {
@@ -927,14 +759,17 @@ const R = /* @__PURE__ */ V({
927
759
  default: !1
928
760
  },
929
761
  clearIcon: {
930
- type: String,
931
- default: () => B("svg", {
932
- class: "svg-icon",
933
- "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" }
934
770
  }, [
935
- B("use", {
936
- "xlink:href": "#icon-12_12_fill_delete",
937
- 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"
938
773
  })
939
774
  ])
940
775
  },
@@ -943,14 +778,18 @@ const R = /* @__PURE__ */ V({
943
778
  default: !1
944
779
  },
945
780
  suffixIcon: {
946
- type: String,
947
- 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",
948
787
  class: "svg-icon",
949
- "aria-hidden": "true"
788
+ "aria-hidden": "true",
789
+ style: { color: "#1a1a1a" }
950
790
  }, [
951
- B("use", {
952
- "xlink:href": "#icon-12_12_arrow_bottom",
953
- 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"
954
793
  })
955
794
  ])
956
795
  },
@@ -992,83 +831,83 @@ const R = /* @__PURE__ */ V({
992
831
  }
993
832
  },
994
833
  emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "focus", "blur", "popup-scroll"],
995
- setup(e, { emit: i }) {
996
- const r = e, t = h(() => r.props), o = U(), c = h(() => o.default?.().length === 0 ? [] : o.default?.().flatMap((n) => {
997
- const l = String(n.type);
998
- if (l.includes("yw-option") || l.includes("ywOption")) {
999
- const f = n.children;
834
+ setup(e, { emit: u }) {
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;
1000
839
  return {
1001
- type: K,
1002
- props: n.props || {},
1003
- children: f && f[0].children,
1004
- key: n.key
840
+ type: R,
841
+ props: l.props || {},
842
+ children: p && p[0].children,
843
+ key: l.key
1005
844
  };
1006
845
  }
1007
- return n;
1008
- })), d = i, y = h({
846
+ return l;
847
+ })), s = u, y = S({
1009
848
  get() {
1010
- return r.modelValue;
849
+ return o.modelValue;
1011
850
  },
1012
- set(n) {
1013
- d("update:modelValue", n);
851
+ set(l) {
852
+ s("update:modelValue", l);
1014
853
  }
1015
- }), m = (n) => {
1016
- d("change", n);
1017
- }, s = (n) => {
1018
- d("visible-change", n);
1019
- }, a = (n) => {
1020
- d("remove-tag", n);
1021
- }, p = () => {
1022
- d("clear");
1023
- }, b = (n) => {
1024
- d("focus", n);
1025
- }, u = (n) => {
1026
- d("blur", n);
1027
- }, S = (n) => {
1028
- 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);
1029
868
  };
1030
- return (n, l) => (g(), v(P(te), C(r, {
869
+ return (l, t) => (f(), v(z(Z), _(o, {
1031
870
  modelValue: y.value,
1032
- "onUpdate:modelValue": l[0] || (l[0] = (f) => y.value = f),
871
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => y.value = p),
1033
872
  class: "yw-select",
1034
873
  "popper-class": "yw-select-popper",
1035
- onChange: m,
1036
- onVisibleChange: s,
1037
- onRemoveTag: a,
1038
- onClear: p,
1039
- onBlur: u,
1040
- onFocus: b,
1041
- onPopupScroll: S
874
+ onChange: h,
875
+ onVisibleChange: g,
876
+ onRemoveTag: c,
877
+ onClear: b,
878
+ onBlur: r,
879
+ onFocus: w,
880
+ onPopupScroll: B
1042
881
  }), {
1043
- default: _(() => [
1044
- 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, {
1045
- 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
1046
885
  }), {
1047
- default: _(() => [
1048
- Z(ee(f.children), 1)
886
+ default: m(() => [
887
+ Q(X(p.children), 1)
1049
888
  ]),
1050
889
  _: 2
1051
- }, 1040))), 128)) : (g(!0), M(W, { key: 1 }, w(e.options, (f) => (g(), v(P(K), {
1052
- key: f[t.value.value],
1053
- label: f[t.value.label],
1054
- value: f[t.value.value],
1055
- 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]
1056
895
  }, null, 8, ["label", "value", "disabled"]))), 128))
1057
896
  ]),
1058
897
  _: 1
1059
898
  }, 16, ["modelValue"]));
1060
899
  }
1061
900
  });
1062
- R.install = (e) => {
1063
- e.component("YwSelect", R);
901
+ $.install = (e) => {
902
+ e.component("YwSelect", $);
1064
903
  };
1065
- const ne = [j, z, D, E, L, A, R], ue = {
904
+ const le = [L, F, j, I, $], re = {
1066
905
  install(e) {
1067
- ne.forEach((i) => {
1068
- e.use(i);
906
+ le.forEach((u) => {
907
+ e.use(u);
1069
908
  });
1070
909
  }
1071
910
  };
1072
911
  export {
1073
- ue as default
912
+ re as default
1074
913
  };