@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.js CHANGED
@@ -105,7 +105,7 @@ const _hoisted_5$c = {
105
105
  key: 2,
106
106
  class: "u-input__suffix"
107
107
  };
108
- const _hoisted_6$8 = { class: "u-input__icon" };
108
+ const _hoisted_6$7 = { class: "u-input__icon" };
109
109
  const __default__$K = {
110
110
  options: {
111
111
  virtualHost: true,
@@ -196,7 +196,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
196
196
  ])])) : vue.createCommentVNode("", true),
197
197
  _ctx.$slots.suffix || __props.suffixIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$c, [
198
198
  vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
199
- vue.createElementVNode("text", _hoisted_6$8, vue.toDisplayString(__props.suffixIcon), 1)
199
+ vue.createElementVNode("text", _hoisted_6$7, vue.toDisplayString(__props.suffixIcon), 1)
200
200
  ], true)
201
201
  ])) : vue.createCommentVNode("", true)
202
202
  ], 2);
@@ -212,13 +212,13 @@ const _hoisted_2$t = {
212
212
  const _hoisted_3$m = ["src"];
213
213
  const _hoisted_4$e = { class: "u-cell__content" };
214
214
  const _hoisted_5$b = { class: "u-cell__title" };
215
- const _hoisted_6$7 = { class: "u-cell__title-text" };
216
- const _hoisted_7$6 = {
215
+ const _hoisted_6$6 = { class: "u-cell__title-text" };
216
+ const _hoisted_7$5 = {
217
217
  key: 0,
218
218
  class: "u-cell__label"
219
219
  };
220
- const _hoisted_8$5 = { class: "u-cell__value" };
221
- const _hoisted_9$5 = { class: "u-cell__value-text" };
220
+ const _hoisted_8$4 = { class: "u-cell__value" };
221
+ const _hoisted_9$4 = { class: "u-cell__value-text" };
222
222
  const _hoisted_10$3 = {
223
223
  key: 1,
224
224
  class: "u-cell__arrow"
@@ -280,12 +280,12 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
280
280
  ])) : vue.createCommentVNode("", true),
281
281
  vue.createElementVNode("view", _hoisted_4$e, [
282
282
  vue.createElementVNode("view", _hoisted_5$b, [
283
- vue.createElementVNode("text", _hoisted_6$7, vue.toDisplayString(__props.title), 1),
284
- __props.label ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7$6, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true)
283
+ vue.createElementVNode("text", _hoisted_6$6, vue.toDisplayString(__props.title), 1),
284
+ __props.label ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7$5, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true)
285
285
  ]),
286
- vue.createElementVNode("view", _hoisted_8$5, [
286
+ vue.createElementVNode("view", _hoisted_8$4, [
287
287
  vue.renderSlot(_ctx.$slots, "value", {}, () => [
288
- vue.createElementVNode("text", _hoisted_9$5, vue.toDisplayString(__props.value), 1)
288
+ vue.createElementVNode("text", _hoisted_9$4, vue.toDisplayString(__props.value), 1)
289
289
  ], true)
290
290
  ])
291
291
  ]),
@@ -487,6 +487,10 @@ const upload = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='h
487
487
  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";
488
488
  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";
489
489
  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";
490
+ 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";
491
+ 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";
492
+ 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";
493
+ 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";
490
494
  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";
491
495
  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";
492
496
  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";
@@ -553,10 +557,15 @@ const icons = {
553
557
  "share": share,
554
558
  // 用户类
555
559
  "user": user,
560
+ "user-fill": userFill,
556
561
  "account": account,
562
+ "account-fill": accountFill,
557
563
  "group": group,
558
564
  "smile": smile,
559
565
  "smile-o": smileO,
566
+ // 导航类 - 新增首页图标
567
+ "home": home,
568
+ "home-fill": homeFill,
560
569
  // 安全类
561
570
  "lock": lock,
562
571
  "unlock": unlock,
@@ -676,7 +685,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
676
685
  };
677
686
  }
678
687
  });
679
- const uIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-5d845d48"]]);
688
+ const UIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-5d845d48"]]);
680
689
  const __default__$F = {
681
690
  options: {
682
691
  virtualHost: true,
@@ -2029,7 +2038,7 @@ const _hoisted_4$c = {
2029
2038
  class: "u-grid-item__badge"
2030
2039
  };
2031
2040
  const _hoisted_5$9 = { class: "u-grid-item__badge-text" };
2032
- const _hoisted_6$6 = {
2041
+ const _hoisted_6$5 = {
2033
2042
  key: 1,
2034
2043
  class: "u-grid-item__text"
2035
2044
  };
@@ -2101,7 +2110,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
2101
2110
  vue.createElementVNode("text", _hoisted_5$9, vue.toDisplayString(__props.badge), 1)
2102
2111
  ])) : vue.createCommentVNode("", true)
2103
2112
  ])) : vue.createCommentVNode("", true),
2104
- __props.text || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$6, [
2113
+ __props.text || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$5, [
2105
2114
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
2106
2115
  vue.createTextVNode(vue.toDisplayString(__props.text), 1)
2107
2116
  ], true)
@@ -2631,13 +2640,13 @@ const _hoisted_4$9 = {
2631
2640
  class: "u-upload__video"
2632
2641
  };
2633
2642
  const _hoisted_5$7 = ["src", "onClick"];
2634
- const _hoisted_6$5 = ["onClick"];
2635
- const _hoisted_7$5 = { class: "u-upload__file-name" };
2636
- const _hoisted_8$4 = {
2643
+ const _hoisted_6$4 = ["onClick"];
2644
+ const _hoisted_7$4 = { class: "u-upload__file-name" };
2645
+ const _hoisted_8$3 = {
2637
2646
  key: 3,
2638
2647
  class: "u-upload__progress"
2639
2648
  };
2640
- const _hoisted_9$4 = ["onClick"];
2649
+ const _hoisted_9$3 = ["onClick"];
2641
2650
  const _hoisted_10$2 = {
2642
2651
  key: 5,
2643
2652
  class: "u-upload__error"
@@ -2786,9 +2795,9 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
2786
2795
  onClick: ($event) => handlePreview(file, index)
2787
2796
  }, [
2788
2797
  _cache[1] || (_cache[1] = vue.createElementVNode("text", { class: "u-upload__file-icon" }, "📄", -1)),
2789
- vue.createElementVNode("text", _hoisted_7$5, vue.toDisplayString(getFileName(file)), 1)
2790
- ], 8, _hoisted_6$5)),
2791
- file.status === "uploading" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$4, [
2798
+ vue.createElementVNode("text", _hoisted_7$4, vue.toDisplayString(getFileName(file)), 1)
2799
+ ], 8, _hoisted_6$4)),
2800
+ file.status === "uploading" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$3, [
2792
2801
  vue.createElementVNode("view", {
2793
2802
  class: "u-upload__progress-bar",
2794
2803
  style: vue.normalizeStyle({ width: file.progress + "%" })
@@ -2800,7 +2809,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
2800
2809
  onClick: ($event) => handleDelete(index)
2801
2810
  }, [..._cache[2] || (_cache[2] = [
2802
2811
  vue.createElementVNode("text", { class: "u-upload__delete-icon" }, "×", -1)
2803
- ])], 8, _hoisted_9$4)) : vue.createCommentVNode("", true),
2812
+ ])], 8, _hoisted_9$3)) : vue.createCommentVNode("", true),
2804
2813
  file.status === "error" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$2, [..._cache[3] || (_cache[3] = [
2805
2814
  vue.createElementVNode("text", null, "上传失败", -1)
2806
2815
  ])])) : vue.createCommentVNode("", true)
@@ -2941,13 +2950,13 @@ const _hoisted_5$6 = {
2941
2950
  key: 0,
2942
2951
  class: "u-slider__tooltip"
2943
2952
  };
2944
- const _hoisted_6$4 = { class: "u-slider__tooltip-text" };
2945
- const _hoisted_7$4 = {
2953
+ const _hoisted_6$3 = { class: "u-slider__tooltip-text" };
2954
+ const _hoisted_7$3 = {
2946
2955
  key: 0,
2947
2956
  class: "u-slider__tooltip"
2948
2957
  };
2949
- const _hoisted_8$3 = { class: "u-slider__tooltip-text" };
2950
- const _hoisted_9$3 = {
2958
+ const _hoisted_8$2 = { class: "u-slider__tooltip-text" };
2959
+ const _hoisted_9$2 = {
2951
2960
  key: 0,
2952
2961
  class: "u-slider__ticks"
2953
2962
  };
@@ -3212,7 +3221,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
3212
3221
  onTouchend: vue.withModifiers(handleButtonTouchEnd, ["stop"])
3213
3222
  }, [
3214
3223
  __props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$6, [
3215
- vue.createElementVNode("text", _hoisted_6$4, vue.toDisplayString(startValue.value), 1)
3224
+ vue.createElementVNode("text", _hoisted_6$3, vue.toDisplayString(startValue.value), 1)
3216
3225
  ])) : vue.createCommentVNode("", true)
3217
3226
  ], 36),
3218
3227
  vue.createElementVNode("view", {
@@ -3222,13 +3231,13 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
3222
3231
  onTouchmove: vue.withModifiers(handleEndButtonTouchMove, ["stop"]),
3223
3232
  onTouchend: vue.withModifiers(handleButtonTouchEnd, ["stop"])
3224
3233
  }, [
3225
- __props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$4, [
3226
- vue.createElementVNode("text", _hoisted_8$3, vue.toDisplayString(endValue.value), 1)
3234
+ __props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$3, [
3235
+ vue.createElementVNode("text", _hoisted_8$2, vue.toDisplayString(endValue.value), 1)
3227
3236
  ])) : vue.createCommentVNode("", true)
3228
3237
  ], 36)
3229
3238
  ], 64))
3230
3239
  ], 4),
3231
- __props.showTicks ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_9$3, [
3240
+ __props.showTicks ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_9$2, [
3232
3241
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(ticks.value, (tick2, index) => {
3233
3242
  return vue.openBlock(), vue.createElementBlock("view", {
3234
3243
  key: index,
@@ -3257,13 +3266,13 @@ const _hoisted_4$7 = {
3257
3266
  class: "u-list__loading"
3258
3267
  };
3259
3268
  const _hoisted_5$5 = { class: "u-list__loading-text" };
3260
- const _hoisted_6$3 = {
3269
+ const _hoisted_6$2 = {
3261
3270
  key: 2,
3262
3271
  class: "u-list__finished"
3263
3272
  };
3264
- const _hoisted_7$3 = { class: "u-list__finished-text" };
3265
- const _hoisted_8$2 = { class: "u-list__error-text" };
3266
- const _hoisted_9$2 = {
3273
+ const _hoisted_7$2 = { class: "u-list__finished-text" };
3274
+ const _hoisted_8$1 = { class: "u-list__error-text" };
3275
+ const _hoisted_9$1 = {
3267
3276
  key: 4,
3268
3277
  class: "u-list__footer"
3269
3278
  };
@@ -3310,17 +3319,17 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
3310
3319
  _cache[0] || (_cache[0] = vue.createElementVNode("view", { class: "u-list__loading-icon" }, null, -1)),
3311
3320
  vue.createElementVNode("text", _hoisted_5$5, vue.toDisplayString(__props.loadingText), 1)
3312
3321
  ])) : vue.createCommentVNode("", true),
3313
- __props.finished && !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$3, [
3314
- vue.createElementVNode("text", _hoisted_7$3, vue.toDisplayString(__props.finishedText), 1)
3322
+ __props.finished && !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$2, [
3323
+ vue.createElementVNode("text", _hoisted_7$2, vue.toDisplayString(__props.finishedText), 1)
3315
3324
  ])) : vue.createCommentVNode("", true),
3316
3325
  __props.error && !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", {
3317
3326
  key: 3,
3318
3327
  class: "u-list__error",
3319
3328
  onClick: handleErrorClick
3320
3329
  }, [
3321
- vue.createElementVNode("text", _hoisted_8$2, vue.toDisplayString(__props.errorText), 1)
3330
+ vue.createElementVNode("text", _hoisted_8$1, vue.toDisplayString(__props.errorText), 1)
3322
3331
  ])) : vue.createCommentVNode("", true),
3323
- _ctx.$slots.footer || __props.footer ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_9$2, [
3332
+ _ctx.$slots.footer || __props.footer ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_9$1, [
3324
3333
  vue.renderSlot(_ctx.$slots, "footer", {}, () => [
3325
3334
  vue.createTextVNode(vue.toDisplayString(__props.footer), 1)
3326
3335
  ], true)
@@ -3344,19 +3353,19 @@ const _hoisted_5$4 = {
3344
3353
  key: 0,
3345
3354
  class: "u-list-item__title"
3346
3355
  };
3347
- const _hoisted_6$2 = {
3356
+ const _hoisted_6$1 = {
3348
3357
  key: 1,
3349
3358
  class: "u-list-item__desc"
3350
3359
  };
3351
- const _hoisted_7$2 = {
3360
+ const _hoisted_7$1 = {
3352
3361
  key: 2,
3353
3362
  class: "u-list-item__content"
3354
3363
  };
3355
- const _hoisted_8$1 = {
3364
+ const _hoisted_8 = {
3356
3365
  key: 1,
3357
3366
  class: "u-list-item__extra"
3358
3367
  };
3359
- const _hoisted_9$1 = {
3368
+ const _hoisted_9 = {
3360
3369
  key: 0,
3361
3370
  class: "u-list-item__value"
3362
3371
  };
@@ -3420,18 +3429,18 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
3420
3429
  vue.createTextVNode(vue.toDisplayString(__props.title), 1)
3421
3430
  ], true)
3422
3431
  ])) : vue.createCommentVNode("", true),
3423
- __props.desc || _ctx.$slots.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$2, [
3432
+ __props.desc || _ctx.$slots.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$1, [
3424
3433
  vue.renderSlot(_ctx.$slots, "desc", {}, () => [
3425
3434
  vue.createTextVNode(vue.toDisplayString(__props.desc), 1)
3426
3435
  ], true)
3427
3436
  ])) : vue.createCommentVNode("", true),
3428
- _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$2, [
3437
+ _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$1, [
3429
3438
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
3430
3439
  ])) : vue.createCommentVNode("", true)
3431
3440
  ]),
3432
- _ctx.$slots.extra || __props.extra || __props.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$1, [
3441
+ _ctx.$slots.extra || __props.extra || __props.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8, [
3433
3442
  vue.renderSlot(_ctx.$slots, "extra", {}, () => [
3434
- __props.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_9$1, vue.toDisplayString(__props.value), 1)) : vue.createCommentVNode("", true),
3443
+ __props.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_9, vue.toDisplayString(__props.value), 1)) : vue.createCommentVNode("", true),
3435
3444
  __props.extra ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_10, vue.toDisplayString(__props.extra), 1)) : vue.createCommentVNode("", true)
3436
3445
  ], true),
3437
3446
  __props.showArrow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11, [..._cache[0] || (_cache[0] = [
@@ -4520,11 +4529,11 @@ const _hoisted_5$1 = {
4520
4529
  key: 2,
4521
4530
  class: "u-code-input__placeholder"
4522
4531
  };
4523
- const _hoisted_6$1 = {
4532
+ const _hoisted_6 = {
4524
4533
  key: 3,
4525
4534
  class: "u-code-input__cursor"
4526
4535
  };
4527
- const _hoisted_7$1 = ["value", "maxlength", "disabled", "focus", "password"];
4536
+ const _hoisted_7 = ["value", "maxlength", "disabled", "focus", "password"];
4528
4537
  const __default__$5 = {
4529
4538
  options: {
4530
4539
  virtualHost: true,
@@ -4614,7 +4623,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
4614
4623
  style: vue.normalizeStyle(itemStyle.value)
4615
4624
  }, [
4616
4625
  values.value[i - 1] && !__props.password ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$3, vue.toDisplayString(values.value[i - 1]), 1)) : values.value[i - 1] && __props.password ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$1)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$1, vue.toDisplayString(__props.placeholderChar), 1)),
4617
- __props.focus && i - 1 === currentIndex.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$1)) : vue.createCommentVNode("", true)
4626
+ __props.focus && i - 1 === currentIndex.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6)) : vue.createCommentVNode("", true)
4618
4627
  ], 6);
4619
4628
  }), 128))
4620
4629
  ]),
@@ -4629,7 +4638,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
4629
4638
  onInput: handleInput,
4630
4639
  onFocus: handleFocus,
4631
4640
  onBlur: handleBlur
4632
- }, null, 40, _hoisted_7$1)
4641
+ }, null, 40, _hoisted_7)
4633
4642
  ]);
4634
4643
  };
4635
4644
  }
@@ -4937,13 +4946,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
4937
4946
  const uReadMore = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e27ed42c"]]);
4938
4947
  const _hoisted_1 = { class: "u-tabbar" };
4939
4948
  const _hoisted_2 = { class: "u-tabbar__nav-wrap" };
4940
- const _hoisted_3 = { class: "u-tabbar__tab-icon" };
4941
- const _hoisted_4 = { class: "u-tabbar__tab-text" };
4942
- const _hoisted_5 = { class: "u-tabbar__center" };
4943
- const _hoisted_6 = { class: "u-tabbar__center-brand" };
4944
- const _hoisted_7 = { class: "u-tabbar__center-text" };
4945
- const _hoisted_8 = { class: "u-tabbar__tab-icon" };
4946
- const _hoisted_9 = { class: "u-tabbar__tab-text" };
4949
+ const _hoisted_3 = { class: "u-tabbar__center" };
4950
+ const _hoisted_4 = { class: "u-tabbar__center-brand" };
4951
+ const _hoisted_5 = { class: "u-tabbar__center-text" };
4947
4952
  const __default__ = {
4948
4953
  options: {
4949
4954
  virtualHost: true,
@@ -4955,11 +4960,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4955
4960
  __name: "u-tabbar",
4956
4961
  props: {
4957
4962
  modelValue: { default: "home" },
4958
- leftTab: { default: () => ({ label: "首页", icon: "", value: "home" }) },
4959
- centerTab: { default: () => ({ label: "图域", icon: "TU", value: "center" }) },
4960
- rightTab: { default: () => ({ label: "我的", icon: "", value: "mine" }) },
4963
+ leftTab: { default: () => ({ label: "首页", icon: "home-fill", value: "home" }) },
4964
+ centerTab: { default: () => ({ label: "图域", value: "center" }) },
4965
+ rightTab: { default: () => ({ label: "我的", icon: "account-fill", value: "mine" }) },
4961
4966
  centerBrand: { default: "TU" },
4962
- centerLabel: { default: "图域" }
4967
+ centerLabel: { default: "图域" },
4968
+ activeColor: { default: "#0c958e" },
4969
+ inactiveColor: { default: "#ffffff" }
4963
4970
  },
4964
4971
  emits: ["update:modelValue", "tab-change"],
4965
4972
  setup(__props, { emit: __emit }) {
@@ -4975,31 +4982,47 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4975
4982
  class: vue.normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.leftTab.value }]),
4976
4983
  onClick: _cache[0] || (_cache[0] = ($event) => switchTab(__props.leftTab.value))
4977
4984
  }, [
4978
- vue.createElementVNode("text", _hoisted_3, vue.toDisplayString(__props.leftTab.icon), 1),
4979
- vue.createElementVNode("text", _hoisted_4, vue.toDisplayString(__props.leftTab.label), 1)
4985
+ __props.leftTab.icon ? (vue.openBlock(), vue.createBlock(UIcon, {
4986
+ key: 0,
4987
+ name: __props.leftTab.icon,
4988
+ size: 16,
4989
+ color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor
4990
+ }, null, 8, ["name", "color"])) : vue.createCommentVNode("", true),
4991
+ vue.createElementVNode("text", {
4992
+ class: "u-tabbar__tab-text",
4993
+ style: vue.normalizeStyle({ color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor })
4994
+ }, vue.toDisplayString(__props.leftTab.label), 5)
4980
4995
  ], 2),
4981
- vue.createElementVNode("view", _hoisted_5, [
4996
+ vue.createElementVNode("view", _hoisted_3, [
4982
4997
  vue.createElementVNode("view", {
4983
4998
  class: vue.normalizeClass(["u-tabbar__center-btn", { "u-tabbar__center-btn--active": __props.modelValue === __props.centerTab.value }]),
4984
4999
  onClick: _cache[1] || (_cache[1] = ($event) => switchTab(__props.centerTab.value))
4985
5000
  }, [
4986
- vue.createElementVNode("text", _hoisted_6, vue.toDisplayString(__props.centerBrand), 1),
4987
- vue.createElementVNode("text", _hoisted_7, vue.toDisplayString(__props.centerLabel), 1)
5001
+ vue.createElementVNode("text", _hoisted_4, vue.toDisplayString(__props.centerBrand), 1),
5002
+ vue.createElementVNode("text", _hoisted_5, vue.toDisplayString(__props.centerLabel), 1)
4988
5003
  ], 2)
4989
5004
  ]),
4990
5005
  vue.createElementVNode("view", {
4991
5006
  class: vue.normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.rightTab.value }]),
4992
5007
  onClick: _cache[2] || (_cache[2] = ($event) => switchTab(__props.rightTab.value))
4993
5008
  }, [
4994
- vue.createElementVNode("text", _hoisted_8, vue.toDisplayString(__props.rightTab.icon), 1),
4995
- vue.createElementVNode("text", _hoisted_9, vue.toDisplayString(__props.rightTab.label), 1)
5009
+ __props.rightTab.icon ? (vue.openBlock(), vue.createBlock(UIcon, {
5010
+ key: 0,
5011
+ name: __props.rightTab.icon,
5012
+ size: 16,
5013
+ color: __props.modelValue === __props.rightTab.value ? __props.activeColor : __props.inactiveColor
5014
+ }, null, 8, ["name", "color"])) : vue.createCommentVNode("", true),
5015
+ vue.createElementVNode("text", {
5016
+ class: "u-tabbar__tab-text",
5017
+ style: vue.normalizeStyle({ color: __props.modelValue === __props.rightTab.value ? __props.activeColor : __props.inactiveColor })
5018
+ }, vue.toDisplayString(__props.rightTab.label), 5)
4996
5019
  ], 2)
4997
5020
  ])
4998
5021
  ]);
4999
5022
  };
5000
5023
  }
5001
5024
  });
5002
- const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cdd03f9f"]]);
5025
+ const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a51e79ef"]]);
5003
5026
  exports.UAvatar = uAvatar;
5004
5027
  exports.UBadge = uBadge;
5005
5028
  exports.UButton = uButton;
@@ -5014,7 +5037,7 @@ exports.UDivider = uDivider;
5014
5037
  exports.UEmpty = uEmpty;
5015
5038
  exports.UGrid = uGrid;
5016
5039
  exports.UGridItem = uGridItem;
5017
- exports.UIcon = uIcon;
5040
+ exports.UIcon = UIcon;
5018
5041
  exports.UImage = uImage;
5019
5042
  exports.UInput = uInput;
5020
5043
  exports.UKeyboard = uKeyboard;