@atooyu/uxto-ui 1.1.7 → 1.1.9

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/style.css CHANGED
@@ -544,44 +544,51 @@ to {
544
544
  }
545
545
  .u-divider__text[data-v-7f88d163] {
546
546
  padding: 0 12px;
547
- }.u-notice-bar[data-v-89a44cf8] {
547
+ }.u-notice-bar[data-v-f80a744d] {
548
548
  display: flex;
549
549
  align-items: center;
550
550
  padding: 12px 16px;
551
551
  font-size: 12px;
552
552
  line-height: 24px;
553
553
  }
554
- .u-notice-bar--wrapable[data-v-89a44cf8] {
554
+ .u-notice-bar--wrapable[data-v-f80a744d] {
555
555
  flex-wrap: wrap;
556
556
  padding: 12px 16px;
557
557
  }
558
- .u-notice-bar__content[data-v-89a44cf8] {
558
+ .u-notice-bar__content[data-v-f80a744d] {
559
559
  flex: 1;
560
560
  overflow: hidden;
561
561
  position: relative;
562
562
  }
563
- .u-notice-bar__content--scrollable[data-v-89a44cf8] {
563
+ .u-notice-bar__content--scrollable[data-v-f80a744d] {
564
564
  overflow: hidden;
565
565
  white-space: nowrap;
566
566
  }
567
- .u-notice-bar__text[data-v-89a44cf8] {
567
+ .u-notice-bar__text[data-v-f80a744d] {
568
568
  display: inline-block;
569
+ white-space: nowrap;
570
+ }
571
+ .u-notice-bar__content--scrollable .u-notice-bar__text[data-v-f80a744d] {
572
+ display: flex;
573
+ animation: u-notice-bar-scroll-f80a744d linear infinite;
569
574
  }
570
- .u-notice-bar__content--scrollable .u-notice-bar__text[data-v-89a44cf8] {
571
- animation: u-notice-bar-scroll-89a44cf8 linear infinite;
575
+ .u-notice-bar__text-item[data-v-f80a744d] {
576
+ display: inline-block;
577
+ white-space: nowrap;
578
+ padding-right: 40px;
572
579
  }
573
- .u-notice-bar__left-icon[data-v-89a44cf8] {
580
+ .u-notice-bar__left-icon[data-v-f80a744d] {
574
581
  margin-right: 8px;
575
582
  }
576
- .u-notice-bar__right-icon[data-v-89a44cf8] {
583
+ .u-notice-bar__right-icon[data-v-f80a744d] {
577
584
  margin-left: 8px;
578
585
  }
579
- @keyframes u-notice-bar-scroll-89a44cf8 {
586
+ @keyframes u-notice-bar-scroll-f80a744d {
580
587
  0% {
581
- transform: translateX(100%);
588
+ transform: translateX(0);
582
589
  }
583
590
  100% {
584
- transform: translateX(-100%);
591
+ transform: translateX(-50%);
585
592
  }
586
593
  }.u-layout[data-v-1682e77a] {
587
594
  display: flex;
@@ -2414,7 +2421,7 @@ to {
2414
2421
  .u-read-more__toggle-icon[data-v-b31720eb] {
2415
2422
  font-size: 12px;
2416
2423
  }
2417
- .u-tabbar[data-v-5998a8d0] {
2424
+ .u-tabbar[data-v-69811cb8] {
2418
2425
  position: fixed;
2419
2426
  left: 0;
2420
2427
  right: 0;
@@ -2423,7 +2430,7 @@ to {
2423
2430
  width: 100%;
2424
2431
  pointer-events: none;
2425
2432
  }
2426
- .u-tabbar__nav-wrap[data-v-5998a8d0] {
2433
+ .u-tabbar__nav-wrap[data-v-69811cb8] {
2427
2434
  pointer-events: auto;
2428
2435
  position: absolute;
2429
2436
  left: 14px;
@@ -2442,7 +2449,7 @@ to {
2442
2449
  padding: 0 8px;
2443
2450
  box-sizing: border-box;
2444
2451
  }
2445
- .u-tabbar__tab-btn[data-v-5998a8d0] {
2452
+ .u-tabbar__tab-btn[data-v-69811cb8] {
2446
2453
  height: 40px;
2447
2454
  border-radius: 20px;
2448
2455
  background: transparent;
@@ -2457,23 +2464,23 @@ to {
2457
2464
  padding: 0 16px;
2458
2465
  margin: 0 20px;
2459
2466
  }
2460
- .u-tabbar__tab-btn--active[data-v-5998a8d0] {
2467
+ .u-tabbar__tab-btn--active[data-v-69811cb8] {
2461
2468
  background: #ffffff;
2462
2469
  box-shadow: inset 0 0 0 1px rgba(17, 135, 128, 0.14);
2463
2470
  }
2464
- .u-tabbar__tab-text[data-v-5998a8d0] {
2471
+ .u-tabbar__tab-text[data-v-69811cb8] {
2465
2472
  font-weight: 600;
2466
2473
  font-size: 14px;
2467
2474
  overflow: hidden;
2468
2475
  text-overflow: ellipsis;
2469
2476
  }
2470
- .u-tabbar__center[data-v-5998a8d0] {
2477
+ .u-tabbar__center[data-v-69811cb8] {
2471
2478
  position: relative;
2472
2479
  width: 72px;
2473
2480
  height: 56px;
2474
2481
  flex-shrink: 0;
2475
2482
  }
2476
- .u-tabbar__center-btn[data-v-5998a8d0] {
2483
+ .u-tabbar__center-btn[data-v-69811cb8] {
2477
2484
  position: absolute;
2478
2485
  left: 50%;
2479
2486
  top: -22px;
@@ -2491,21 +2498,29 @@ to {
2491
2498
  box-shadow: 0 8px 20px rgba(8, 112, 106, 0.25);
2492
2499
  transition: all 200ms ease;
2493
2500
  }
2494
- .u-tabbar__center-btn[data-v-5998a8d0]:active {
2501
+ .u-tabbar__center-btn[data-v-69811cb8]:active {
2495
2502
  transform: translateX(-50%) scale(0.95);
2496
2503
  }
2497
- .u-tabbar__center-btn--active[data-v-5998a8d0] {
2504
+ .u-tabbar__center-btn--active[data-v-69811cb8] {
2498
2505
  border-color: #12b6af;
2499
2506
  box-shadow: 0 8px 24px rgba(8, 112, 106, 0.35);
2500
2507
  }
2501
- .u-tabbar__center-brand[data-v-5998a8d0] {
2508
+ .u-tabbar__center-btn--left-active[data-v-69811cb8] {
2509
+ background: linear-gradient(135deg, #12b6af 0%, #65d8d1 100%);
2510
+ border-color: #9fe4dd;
2511
+ }
2512
+ .u-tabbar__center-btn--left-active .u-tabbar__center-brand[data-v-69811cb8],
2513
+ .u-tabbar__center-btn--left-active .u-tabbar__center-text[data-v-69811cb8] {
2514
+ color: #ffffff;
2515
+ }
2516
+ .u-tabbar__center-brand[data-v-69811cb8] {
2502
2517
  font-size: 22px;
2503
2518
  line-height: 1;
2504
2519
  font-weight: 700;
2505
2520
  color: #12b6af;
2506
2521
  letter-spacing: 1px;
2507
2522
  }
2508
- .u-tabbar__center-text[data-v-5998a8d0] {
2523
+ .u-tabbar__center-text[data-v-69811cb8] {
2509
2524
  font-size: 12px;
2510
2525
  letter-spacing: 0.5px;
2511
2526
  color: #12b6af;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atooyu/uxto-ui",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "跨平台 UI 组件库 - 支持 Android、iOS、鸿蒙",
5
5
  "keywords": [
6
6
  "uxto-ui",
@@ -11,7 +11,8 @@
11
11
  class="u-notice-bar__text"
12
12
  :style="{ animationDuration: speed + 's' }"
13
13
  >
14
- {{ text }}
14
+ <text class="u-notice-bar__text-item">{{ text }}</text>
15
+ <text class="u-notice-bar__text-item">{{ text }}</text>
15
16
  </view>
16
17
  <text v-else class="u-notice-bar__text">{{ text }}</text>
17
18
  </view>
@@ -87,12 +88,20 @@ export default {
87
88
 
88
89
  &__text {
89
90
  display: inline-block;
91
+ white-space: nowrap;
90
92
 
91
93
  .u-notice-bar__content--scrollable & {
94
+ display: flex;
92
95
  animation: u-notice-bar-scroll linear infinite;
93
96
  }
94
97
  }
95
98
 
99
+ &__text-item {
100
+ display: inline-block;
101
+ white-space: nowrap;
102
+ padding-right: 40px;
103
+ }
104
+
96
105
  &__left-icon {
97
106
  margin-right: $--spacing-sm;
98
107
  }
@@ -104,10 +113,10 @@ export default {
104
113
 
105
114
  @keyframes u-notice-bar-scroll {
106
115
  0% {
107
- transform: translateX(100%);
116
+ transform: translateX(0);
108
117
  }
109
118
  100% {
110
- transform: translateX(-100%);
119
+ transform: translateX(-50%);
111
120
  }
112
121
  }
113
122
  </style>
@@ -26,7 +26,10 @@
26
26
  <view class="u-tabbar__center">
27
27
  <view
28
28
  class="u-tabbar__center-btn"
29
- :class="{ 'u-tabbar__center-btn--active': modelValue === centerTab.value }"
29
+ :class="{
30
+ 'u-tabbar__center-btn--active': modelValue === centerTab.value,
31
+ 'u-tabbar__center-btn--left-active': modelValue === leftTab.value
32
+ }"
30
33
  @click="switchTab(centerTab.value)"
31
34
  >
32
35
  <text class="u-tabbar__center-brand">
@@ -228,6 +231,17 @@ $--paper: #ffffff;
228
231
  border-color: $--mint-1;
229
232
  box-shadow: 0 8px 24px rgba(8, 112, 106, 0.35);
230
233
  }
234
+
235
+ // 左侧tab选中时的样式(首页选中)
236
+ &--left-active {
237
+ background: linear-gradient(135deg, $--mint-1 0%, $--mint-3 100%);
238
+ border-color: $--mint-2;
239
+
240
+ .u-tabbar__center-brand,
241
+ .u-tabbar__center-text {
242
+ color: $--paper;
243
+ }
244
+ }
231
245
  }
232
246
 
233
247
  &__center-brand {