@atooyu/uxto-ui 1.0.6 → 1.0.8

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/index.mjs CHANGED
@@ -103,7 +103,7 @@ const _hoisted_5$c = {
103
103
  key: 2,
104
104
  class: "u-input__suffix"
105
105
  };
106
- const _hoisted_6$8 = { class: "u-input__icon" };
106
+ const _hoisted_6$7 = { class: "u-input__icon" };
107
107
  const __default__$K = {
108
108
  options: {
109
109
  virtualHost: true,
@@ -194,7 +194,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
194
194
  ])])) : createCommentVNode("", true),
195
195
  _ctx.$slots.suffix || __props.suffixIcon ? (openBlock(), createElementBlock("view", _hoisted_5$c, [
196
196
  renderSlot(_ctx.$slots, "suffix", {}, () => [
197
- createElementVNode("text", _hoisted_6$8, toDisplayString(__props.suffixIcon), 1)
197
+ createElementVNode("text", _hoisted_6$7, toDisplayString(__props.suffixIcon), 1)
198
198
  ], true)
199
199
  ])) : createCommentVNode("", true)
200
200
  ], 2);
@@ -210,13 +210,13 @@ const _hoisted_2$t = {
210
210
  const _hoisted_3$m = ["src"];
211
211
  const _hoisted_4$e = { class: "u-cell__content" };
212
212
  const _hoisted_5$b = { class: "u-cell__title" };
213
- const _hoisted_6$7 = { class: "u-cell__title-text" };
214
- const _hoisted_7$6 = {
213
+ const _hoisted_6$6 = { class: "u-cell__title-text" };
214
+ const _hoisted_7$5 = {
215
215
  key: 0,
216
216
  class: "u-cell__label"
217
217
  };
218
- const _hoisted_8$5 = { class: "u-cell__value" };
219
- const _hoisted_9$5 = { class: "u-cell__value-text" };
218
+ const _hoisted_8$4 = { class: "u-cell__value" };
219
+ const _hoisted_9$4 = { class: "u-cell__value-text" };
220
220
  const _hoisted_10$3 = {
221
221
  key: 1,
222
222
  class: "u-cell__arrow"
@@ -278,12 +278,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
278
278
  ])) : createCommentVNode("", true),
279
279
  createElementVNode("view", _hoisted_4$e, [
280
280
  createElementVNode("view", _hoisted_5$b, [
281
- createElementVNode("text", _hoisted_6$7, toDisplayString(__props.title), 1),
282
- __props.label ? (openBlock(), createElementBlock("text", _hoisted_7$6, toDisplayString(__props.label), 1)) : createCommentVNode("", true)
281
+ createElementVNode("text", _hoisted_6$6, toDisplayString(__props.title), 1),
282
+ __props.label ? (openBlock(), createElementBlock("text", _hoisted_7$5, toDisplayString(__props.label), 1)) : createCommentVNode("", true)
283
283
  ]),
284
- createElementVNode("view", _hoisted_8$5, [
284
+ createElementVNode("view", _hoisted_8$4, [
285
285
  renderSlot(_ctx.$slots, "value", {}, () => [
286
- createElementVNode("text", _hoisted_9$5, toDisplayString(__props.value), 1)
286
+ createElementVNode("text", _hoisted_9$4, toDisplayString(__props.value), 1)
287
287
  ], true)
288
288
  ])
289
289
  ]),
@@ -485,6 +485,10 @@ const upload = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='h
485
485
  const user = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M12%2012c2.21%200%204-1.79%204-4s-1.79-4-4-4-4%201.79-4%204%201.79%204%204%204zm0%202c-2.67%200-8%201.34-8%204v2h16v-2c0-2.66-5.33-4-8-4z'/%3e%3c/svg%3e";
486
486
  const account = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M19%203H5c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h14c1.1%200%202-.9%202-2V5c0-1.1-.9-2-2-2zm-7%203c1.93%200%203.5%201.57%203.5%203.5S13.93%2013%2012%2013s-3.5-1.57-3.5-3.5S10.07%206%2012%206zm7%2013H5v-.23c0-.62.28-1.2.76-1.58C7.47%2015.82%209.64%2015%2012%2015s4.53.82%206.24%202.19c.48.38.76.97.76%201.58V19z'/%3e%3c/svg%3e";
487
487
  const group = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M16%2011c1.66%200%202.99-1.34%202.99-3S17.66%205%2016%205c-1.66%200-3%201.34-3%203s1.34%203%203%203zm-8%200c1.66%200%202.99-1.34%202.99-3S9.66%205%208%205C6.34%205%205%206.34%205%208s1.34%203%203%203zm0%202c-2.33%200-7%201.17-7%203.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8%200c-.29%200-.62.02-.97.05%201.16.84%201.97%201.97%201.97%203.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3e%3c/svg%3e";
488
+ const home = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M10%2020v-6h4v6h5v-8h3L12%203%202%2012h3v8z'/%3e%3c/svg%3e";
489
+ const homeFill = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M12%203L4%209v12h6v-6h4v6h6V9l-8-6z'/%3e%3c/svg%3e";
490
+ const accountFill = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm0%203c1.66%200%203%201.34%203%203s-1.34%203-3%203-3-1.34-3-3%201.34-3%203-3zm0%2014.2c-2.5%200-4.71-1.28-6-3.22.03-1.99%204-3.08%206-3.08%201.99%200%205.97%201.09%206%203.08-1.29%201.94-3.5%203.22-6%203.22z'/%3e%3c/svg%3e";
491
+ const userFill = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm0%203c1.66%200%203%201.34%203%203s-1.34%203-3%203-3-1.34-3-3%201.34-3%203-3zm0%2014.2c-2.5%200-4.71-1.28-6-3.22.03-1.99%204-3.08%206-3.08%201.99%200%205.97%201.09%206%203.08-1.29%201.94-3.5%203.22-6%203.22z'/%3e%3c/svg%3e";
488
492
  const warning = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm1%2015h-2v-2h2v2zm0-4h-2V7h2v6z'/%3e%3c/svg%3e";
489
493
  const warningO = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm1%2015h-2v-2h2v2zm0-4h-2V7h2v6z'/%3e%3c/svg%3e";
490
494
  const zoomIn = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M15.5%2014h-.79l-.28-.27C15.41%2012.59%2016%2011.11%2016%209.5%2016%205.91%2013.09%203%209.5%203S3%205.91%203%209.5%205.91%2016%209.5%2016c1.61%200%203.09-.59%204.23-1.57l.27.28v.79l5%204.99L20.49%2019l-4.99-5zm-6%200C7.01%2014%205%2011.99%205%209.5S7.01%205%209.5%205%2014%207.01%2014%209.5%2011.99%2014%209.5%2014z'/%3e%3c/svg%3e";
@@ -551,10 +555,15 @@ const icons = {
551
555
  "share": share,
552
556
  // 用户类
553
557
  "user": user,
558
+ "user-fill": userFill,
554
559
  "account": account,
560
+ "account-fill": accountFill,
555
561
  "group": group,
556
562
  "smile": smile,
557
563
  "smile-o": smileO,
564
+ // 导航类 - 新增首页图标
565
+ "home": home,
566
+ "home-fill": homeFill,
558
567
  // 安全类
559
568
  "lock": lock,
560
569
  "unlock": unlock,
@@ -674,7 +683,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
674
683
  };
675
684
  }
676
685
  });
677
- const uIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-5d845d48"]]);
686
+ const UIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-5d845d48"]]);
678
687
  const __default__$F = {
679
688
  options: {
680
689
  virtualHost: true,
@@ -2027,7 +2036,7 @@ const _hoisted_4$c = {
2027
2036
  class: "u-grid-item__badge"
2028
2037
  };
2029
2038
  const _hoisted_5$9 = { class: "u-grid-item__badge-text" };
2030
- const _hoisted_6$6 = {
2039
+ const _hoisted_6$5 = {
2031
2040
  key: 1,
2032
2041
  class: "u-grid-item__text"
2033
2042
  };
@@ -2099,7 +2108,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
2099
2108
  createElementVNode("text", _hoisted_5$9, toDisplayString(__props.badge), 1)
2100
2109
  ])) : createCommentVNode("", true)
2101
2110
  ])) : createCommentVNode("", true),
2102
- __props.text || _ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_6$6, [
2111
+ __props.text || _ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_6$5, [
2103
2112
  renderSlot(_ctx.$slots, "default", {}, () => [
2104
2113
  createTextVNode(toDisplayString(__props.text), 1)
2105
2114
  ], true)
@@ -2629,13 +2638,13 @@ const _hoisted_4$9 = {
2629
2638
  class: "u-upload__video"
2630
2639
  };
2631
2640
  const _hoisted_5$7 = ["src", "onClick"];
2632
- const _hoisted_6$5 = ["onClick"];
2633
- const _hoisted_7$5 = { class: "u-upload__file-name" };
2634
- const _hoisted_8$4 = {
2641
+ const _hoisted_6$4 = ["onClick"];
2642
+ const _hoisted_7$4 = { class: "u-upload__file-name" };
2643
+ const _hoisted_8$3 = {
2635
2644
  key: 3,
2636
2645
  class: "u-upload__progress"
2637
2646
  };
2638
- const _hoisted_9$4 = ["onClick"];
2647
+ const _hoisted_9$3 = ["onClick"];
2639
2648
  const _hoisted_10$2 = {
2640
2649
  key: 5,
2641
2650
  class: "u-upload__error"
@@ -2784,9 +2793,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2784
2793
  onClick: ($event) => handlePreview(file, index)
2785
2794
  }, [
2786
2795
  _cache[1] || (_cache[1] = createElementVNode("text", { class: "u-upload__file-icon" }, "📄", -1)),
2787
- createElementVNode("text", _hoisted_7$5, toDisplayString(getFileName(file)), 1)
2788
- ], 8, _hoisted_6$5)),
2789
- file.status === "uploading" ? (openBlock(), createElementBlock("view", _hoisted_8$4, [
2796
+ createElementVNode("text", _hoisted_7$4, toDisplayString(getFileName(file)), 1)
2797
+ ], 8, _hoisted_6$4)),
2798
+ file.status === "uploading" ? (openBlock(), createElementBlock("view", _hoisted_8$3, [
2790
2799
  createElementVNode("view", {
2791
2800
  class: "u-upload__progress-bar",
2792
2801
  style: normalizeStyle({ width: file.progress + "%" })
@@ -2798,7 +2807,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2798
2807
  onClick: ($event) => handleDelete(index)
2799
2808
  }, [..._cache[2] || (_cache[2] = [
2800
2809
  createElementVNode("text", { class: "u-upload__delete-icon" }, "×", -1)
2801
- ])], 8, _hoisted_9$4)) : createCommentVNode("", true),
2810
+ ])], 8, _hoisted_9$3)) : createCommentVNode("", true),
2802
2811
  file.status === "error" ? (openBlock(), createElementBlock("view", _hoisted_10$2, [..._cache[3] || (_cache[3] = [
2803
2812
  createElementVNode("text", null, "上传失败", -1)
2804
2813
  ])])) : createCommentVNode("", true)
@@ -2939,13 +2948,13 @@ const _hoisted_5$6 = {
2939
2948
  key: 0,
2940
2949
  class: "u-slider__tooltip"
2941
2950
  };
2942
- const _hoisted_6$4 = { class: "u-slider__tooltip-text" };
2943
- const _hoisted_7$4 = {
2951
+ const _hoisted_6$3 = { class: "u-slider__tooltip-text" };
2952
+ const _hoisted_7$3 = {
2944
2953
  key: 0,
2945
2954
  class: "u-slider__tooltip"
2946
2955
  };
2947
- const _hoisted_8$3 = { class: "u-slider__tooltip-text" };
2948
- const _hoisted_9$3 = {
2956
+ const _hoisted_8$2 = { class: "u-slider__tooltip-text" };
2957
+ const _hoisted_9$2 = {
2949
2958
  key: 0,
2950
2959
  class: "u-slider__ticks"
2951
2960
  };
@@ -3210,7 +3219,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3210
3219
  onTouchend: withModifiers(handleButtonTouchEnd, ["stop"])
3211
3220
  }, [
3212
3221
  __props.showValue ? (openBlock(), createElementBlock("view", _hoisted_5$6, [
3213
- createElementVNode("text", _hoisted_6$4, toDisplayString(startValue.value), 1)
3222
+ createElementVNode("text", _hoisted_6$3, toDisplayString(startValue.value), 1)
3214
3223
  ])) : createCommentVNode("", true)
3215
3224
  ], 36),
3216
3225
  createElementVNode("view", {
@@ -3220,13 +3229,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3220
3229
  onTouchmove: withModifiers(handleEndButtonTouchMove, ["stop"]),
3221
3230
  onTouchend: withModifiers(handleButtonTouchEnd, ["stop"])
3222
3231
  }, [
3223
- __props.showValue ? (openBlock(), createElementBlock("view", _hoisted_7$4, [
3224
- createElementVNode("text", _hoisted_8$3, toDisplayString(endValue.value), 1)
3232
+ __props.showValue ? (openBlock(), createElementBlock("view", _hoisted_7$3, [
3233
+ createElementVNode("text", _hoisted_8$2, toDisplayString(endValue.value), 1)
3225
3234
  ])) : createCommentVNode("", true)
3226
3235
  ], 36)
3227
3236
  ], 64))
3228
3237
  ], 4),
3229
- __props.showTicks ? (openBlock(), createElementBlock("view", _hoisted_9$3, [
3238
+ __props.showTicks ? (openBlock(), createElementBlock("view", _hoisted_9$2, [
3230
3239
  (openBlock(true), createElementBlock(Fragment, null, renderList(ticks.value, (tick2, index) => {
3231
3240
  return openBlock(), createElementBlock("view", {
3232
3241
  key: index,
@@ -3255,13 +3264,13 @@ const _hoisted_4$7 = {
3255
3264
  class: "u-list__loading"
3256
3265
  };
3257
3266
  const _hoisted_5$5 = { class: "u-list__loading-text" };
3258
- const _hoisted_6$3 = {
3267
+ const _hoisted_6$2 = {
3259
3268
  key: 2,
3260
3269
  class: "u-list__finished"
3261
3270
  };
3262
- const _hoisted_7$3 = { class: "u-list__finished-text" };
3263
- const _hoisted_8$2 = { class: "u-list__error-text" };
3264
- const _hoisted_9$2 = {
3271
+ const _hoisted_7$2 = { class: "u-list__finished-text" };
3272
+ const _hoisted_8$1 = { class: "u-list__error-text" };
3273
+ const _hoisted_9$1 = {
3265
3274
  key: 4,
3266
3275
  class: "u-list__footer"
3267
3276
  };
@@ -3308,17 +3317,17 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3308
3317
  _cache[0] || (_cache[0] = createElementVNode("view", { class: "u-list__loading-icon" }, null, -1)),
3309
3318
  createElementVNode("text", _hoisted_5$5, toDisplayString(__props.loadingText), 1)
3310
3319
  ])) : createCommentVNode("", true),
3311
- __props.finished && !__props.loading ? (openBlock(), createElementBlock("view", _hoisted_6$3, [
3312
- createElementVNode("text", _hoisted_7$3, toDisplayString(__props.finishedText), 1)
3320
+ __props.finished && !__props.loading ? (openBlock(), createElementBlock("view", _hoisted_6$2, [
3321
+ createElementVNode("text", _hoisted_7$2, toDisplayString(__props.finishedText), 1)
3313
3322
  ])) : createCommentVNode("", true),
3314
3323
  __props.error && !__props.loading ? (openBlock(), createElementBlock("view", {
3315
3324
  key: 3,
3316
3325
  class: "u-list__error",
3317
3326
  onClick: handleErrorClick
3318
3327
  }, [
3319
- createElementVNode("text", _hoisted_8$2, toDisplayString(__props.errorText), 1)
3328
+ createElementVNode("text", _hoisted_8$1, toDisplayString(__props.errorText), 1)
3320
3329
  ])) : createCommentVNode("", true),
3321
- _ctx.$slots.footer || __props.footer ? (openBlock(), createElementBlock("view", _hoisted_9$2, [
3330
+ _ctx.$slots.footer || __props.footer ? (openBlock(), createElementBlock("view", _hoisted_9$1, [
3322
3331
  renderSlot(_ctx.$slots, "footer", {}, () => [
3323
3332
  createTextVNode(toDisplayString(__props.footer), 1)
3324
3333
  ], true)
@@ -3342,19 +3351,19 @@ const _hoisted_5$4 = {
3342
3351
  key: 0,
3343
3352
  class: "u-list-item__title"
3344
3353
  };
3345
- const _hoisted_6$2 = {
3354
+ const _hoisted_6$1 = {
3346
3355
  key: 1,
3347
3356
  class: "u-list-item__desc"
3348
3357
  };
3349
- const _hoisted_7$2 = {
3358
+ const _hoisted_7$1 = {
3350
3359
  key: 2,
3351
3360
  class: "u-list-item__content"
3352
3361
  };
3353
- const _hoisted_8$1 = {
3362
+ const _hoisted_8 = {
3354
3363
  key: 1,
3355
3364
  class: "u-list-item__extra"
3356
3365
  };
3357
- const _hoisted_9$1 = {
3366
+ const _hoisted_9 = {
3358
3367
  key: 0,
3359
3368
  class: "u-list-item__value"
3360
3369
  };
@@ -3418,18 +3427,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3418
3427
  createTextVNode(toDisplayString(__props.title), 1)
3419
3428
  ], true)
3420
3429
  ])) : createCommentVNode("", true),
3421
- __props.desc || _ctx.$slots.desc ? (openBlock(), createElementBlock("view", _hoisted_6$2, [
3430
+ __props.desc || _ctx.$slots.desc ? (openBlock(), createElementBlock("view", _hoisted_6$1, [
3422
3431
  renderSlot(_ctx.$slots, "desc", {}, () => [
3423
3432
  createTextVNode(toDisplayString(__props.desc), 1)
3424
3433
  ], true)
3425
3434
  ])) : createCommentVNode("", true),
3426
- _ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_7$2, [
3435
+ _ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_7$1, [
3427
3436
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
3428
3437
  ])) : createCommentVNode("", true)
3429
3438
  ]),
3430
- _ctx.$slots.extra || __props.extra || __props.value ? (openBlock(), createElementBlock("view", _hoisted_8$1, [
3439
+ _ctx.$slots.extra || __props.extra || __props.value ? (openBlock(), createElementBlock("view", _hoisted_8, [
3431
3440
  renderSlot(_ctx.$slots, "extra", {}, () => [
3432
- __props.value ? (openBlock(), createElementBlock("text", _hoisted_9$1, toDisplayString(__props.value), 1)) : createCommentVNode("", true),
3441
+ __props.value ? (openBlock(), createElementBlock("text", _hoisted_9, toDisplayString(__props.value), 1)) : createCommentVNode("", true),
3433
3442
  __props.extra ? (openBlock(), createElementBlock("text", _hoisted_10, toDisplayString(__props.extra), 1)) : createCommentVNode("", true)
3434
3443
  ], true),
3435
3444
  __props.showArrow ? (openBlock(), createElementBlock("view", _hoisted_11, [..._cache[0] || (_cache[0] = [
@@ -4518,11 +4527,11 @@ const _hoisted_5$1 = {
4518
4527
  key: 2,
4519
4528
  class: "u-code-input__placeholder"
4520
4529
  };
4521
- const _hoisted_6$1 = {
4530
+ const _hoisted_6 = {
4522
4531
  key: 3,
4523
4532
  class: "u-code-input__cursor"
4524
4533
  };
4525
- const _hoisted_7$1 = ["value", "maxlength", "disabled", "focus", "password"];
4534
+ const _hoisted_7 = ["value", "maxlength", "disabled", "focus", "password"];
4526
4535
  const __default__$5 = {
4527
4536
  options: {
4528
4537
  virtualHost: true,
@@ -4612,7 +4621,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4612
4621
  style: normalizeStyle(itemStyle.value)
4613
4622
  }, [
4614
4623
  values.value[i - 1] && !__props.password ? (openBlock(), createElementBlock("text", _hoisted_3$3, toDisplayString(values.value[i - 1]), 1)) : values.value[i - 1] && __props.password ? (openBlock(), createElementBlock("view", _hoisted_4$1)) : (openBlock(), createElementBlock("view", _hoisted_5$1, toDisplayString(__props.placeholderChar), 1)),
4615
- __props.focus && i - 1 === currentIndex.value ? (openBlock(), createElementBlock("view", _hoisted_6$1)) : createCommentVNode("", true)
4624
+ __props.focus && i - 1 === currentIndex.value ? (openBlock(), createElementBlock("view", _hoisted_6)) : createCommentVNode("", true)
4616
4625
  ], 6);
4617
4626
  }), 128))
4618
4627
  ]),
@@ -4627,7 +4636,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4627
4636
  onInput: handleInput,
4628
4637
  onFocus: handleFocus,
4629
4638
  onBlur: handleBlur
4630
- }, null, 40, _hoisted_7$1)
4639
+ }, null, 40, _hoisted_7)
4631
4640
  ]);
4632
4641
  };
4633
4642
  }
@@ -4935,13 +4944,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4935
4944
  const uReadMore = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e27ed42c"]]);
4936
4945
  const _hoisted_1 = { class: "u-tabbar" };
4937
4946
  const _hoisted_2 = { class: "u-tabbar__nav-wrap" };
4938
- const _hoisted_3 = { class: "u-tabbar__tab-icon" };
4939
- const _hoisted_4 = { class: "u-tabbar__tab-text" };
4940
- const _hoisted_5 = { class: "u-tabbar__center" };
4941
- const _hoisted_6 = { class: "u-tabbar__center-brand" };
4942
- const _hoisted_7 = { class: "u-tabbar__center-text" };
4943
- const _hoisted_8 = { class: "u-tabbar__tab-icon" };
4944
- const _hoisted_9 = { class: "u-tabbar__tab-text" };
4947
+ const _hoisted_3 = { class: "u-tabbar__center" };
4948
+ const _hoisted_4 = { class: "u-tabbar__center-brand" };
4949
+ const _hoisted_5 = { class: "u-tabbar__center-text" };
4945
4950
  const __default__ = {
4946
4951
  options: {
4947
4952
  virtualHost: true,
@@ -4953,11 +4958,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4953
4958
  __name: "u-tabbar",
4954
4959
  props: {
4955
4960
  modelValue: { default: "home" },
4956
- leftTab: { default: () => ({ label: "首页", icon: "", value: "home" }) },
4957
- centerTab: { default: () => ({ label: "图域", icon: "TU", value: "center" }) },
4958
- rightTab: { default: () => ({ label: "我的", icon: "", value: "mine" }) },
4961
+ leftTab: { default: () => ({ label: "首页", icon: "home-fill", value: "home" }) },
4962
+ centerTab: { default: () => ({ label: "图域", value: "center" }) },
4963
+ rightTab: { default: () => ({ label: "我的", icon: "account-fill", value: "mine" }) },
4959
4964
  centerBrand: { default: "TU" },
4960
- centerLabel: { default: "图域" }
4965
+ centerLabel: { default: "图域" },
4966
+ activeColor: { default: "#0c958e" },
4967
+ inactiveColor: { default: "#ffffff" }
4961
4968
  },
4962
4969
  emits: ["update:modelValue", "tab-change"],
4963
4970
  setup(__props, { emit: __emit }) {
@@ -4973,31 +4980,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4973
4980
  class: normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.leftTab.value }]),
4974
4981
  onClick: _cache[0] || (_cache[0] = ($event) => switchTab(__props.leftTab.value))
4975
4982
  }, [
4976
- createElementVNode("text", _hoisted_3, toDisplayString(__props.leftTab.icon), 1),
4977
- createElementVNode("text", _hoisted_4, toDisplayString(__props.leftTab.label), 1)
4983
+ __props.leftTab.icon ? (openBlock(), createBlock(UIcon, {
4984
+ key: 0,
4985
+ name: __props.leftTab.icon,
4986
+ size: 16,
4987
+ color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor
4988
+ }, null, 8, ["name", "color"])) : createCommentVNode("", true),
4989
+ createElementVNode("text", {
4990
+ class: "u-tabbar__tab-text",
4991
+ style: normalizeStyle({ color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor })
4992
+ }, toDisplayString(__props.leftTab.label), 5)
4978
4993
  ], 2),
4979
- createElementVNode("view", _hoisted_5, [
4994
+ createElementVNode("view", _hoisted_3, [
4980
4995
  createElementVNode("view", {
4981
4996
  class: normalizeClass(["u-tabbar__center-btn", { "u-tabbar__center-btn--active": __props.modelValue === __props.centerTab.value }]),
4982
4997
  onClick: _cache[1] || (_cache[1] = ($event) => switchTab(__props.centerTab.value))
4983
4998
  }, [
4984
- createElementVNode("text", _hoisted_6, toDisplayString(__props.centerBrand), 1),
4985
- createElementVNode("text", _hoisted_7, toDisplayString(__props.centerLabel), 1)
4999
+ createElementVNode("text", _hoisted_4, toDisplayString(__props.centerBrand), 1),
5000
+ createElementVNode("text", _hoisted_5, toDisplayString(__props.centerLabel), 1)
4986
5001
  ], 2)
4987
5002
  ]),
4988
5003
  createElementVNode("view", {
4989
5004
  class: normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.rightTab.value }]),
4990
5005
  onClick: _cache[2] || (_cache[2] = ($event) => switchTab(__props.rightTab.value))
4991
5006
  }, [
4992
- createElementVNode("text", _hoisted_8, toDisplayString(__props.rightTab.icon), 1),
4993
- createElementVNode("text", _hoisted_9, toDisplayString(__props.rightTab.label), 1)
5007
+ __props.rightTab.icon ? (openBlock(), createBlock(UIcon, {
5008
+ key: 0,
5009
+ name: __props.rightTab.icon,
5010
+ size: 16,
5011
+ color: __props.modelValue === __props.rightTab.value ? __props.activeColor : __props.inactiveColor
5012
+ }, null, 8, ["name", "color"])) : createCommentVNode("", true),
5013
+ createElementVNode("text", {
5014
+ class: "u-tabbar__tab-text",
5015
+ style: normalizeStyle({ color: __props.modelValue === __props.rightTab.value ? __props.activeColor : __props.inactiveColor })
5016
+ }, toDisplayString(__props.rightTab.label), 5)
4994
5017
  ], 2)
4995
5018
  ])
4996
5019
  ]);
4997
5020
  };
4998
5021
  }
4999
5022
  });
5000
- const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cdd03f9f"]]);
5023
+ const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a51e79ef"]]);
5001
5024
  export {
5002
5025
  uAvatar as UAvatar,
5003
5026
  uBadge as UBadge,
@@ -5013,7 +5036,7 @@ export {
5013
5036
  uEmpty as UEmpty,
5014
5037
  uGrid as UGrid,
5015
5038
  uGridItem as UGridItem,
5016
- uIcon as UIcon,
5039
+ UIcon,
5017
5040
  uImage as UImage,
5018
5041
  uInput as UInput,
5019
5042
  uKeyboard as UKeyboard,