muzhiyu-ui 1.0.5 → 1.0.6

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.
@@ -410,7 +410,7 @@ function onChooseAvatar(e) { emit('chooseavatar', e) }
410
410
  }
411
411
  }
412
412
 
413
- .mu-dark, page.mu-dark {
413
+ .mu-dark {
414
414
  .mu-button {
415
415
  &--default &__inner {
416
416
  background: rgba(36, 36, 50, 0.9);
@@ -38,12 +38,12 @@
38
38
  </view>
39
39
 
40
40
  <!-- 右侧自定义插槽 (支持绑定/授权手机号按钮、开关、文案等) -->
41
- <view class="mu-cell__right" @tap="handleClick">
41
+ <view class="mu-cell__right">
42
42
  <slot name="right">
43
43
  <slot name="value">
44
44
  <text v-if="value" class="mu-cell__value">{{ value }}</text>
45
45
  </slot>
46
- <view v-if="arrow" class="mu-cell__arrow" @tap="handleClick">
46
+ <view v-if="computedArrow" class="mu-cell__arrow">
47
47
  <mu-icon name="chevron_right" :size="16" color="#94A3B8" />
48
48
  </view>
49
49
  </slot>
@@ -81,6 +81,7 @@ const props = defineProps({
81
81
  iconSize: { type: [Number, String], default: 20 },
82
82
  iconColor: { type: String, default: '' },
83
83
  arrow: { type: Boolean, default: false },
84
+ isLink: { type: Boolean, default: false },
84
85
  disabled: { type: Boolean, default: false },
85
86
  required: { type: Boolean, default: false },
86
87
  divider: { type: Boolean, default: true },
@@ -110,6 +111,8 @@ const contentStyle = computed(() => {
110
111
  return {}
111
112
  })
112
113
 
114
+ const computedArrow = computed(() => props.arrow || props.isLink)
115
+
113
116
  const touchStartX = ref(0)
114
117
  const touchStartY = ref(0)
115
118
  const swipeOffset = ref(0)
@@ -360,7 +363,7 @@ function handleClick(e) {
360
363
  }
361
364
  }
362
365
 
363
- .mu-dark, page.mu-dark {
366
+ .mu-dark {
364
367
 
365
368
  .mu-cell {
366
369
  background: $mu-dark-bg-base;
@@ -789,7 +789,7 @@ function handleClick(e) {
789
789
  }
790
790
  }
791
791
 
792
- .mu-dark, page.mu-dark {
792
+ .mu-dark {
793
793
 
794
794
  .mu-icon {
795
795
  &__svg {
@@ -540,7 +540,7 @@ defineExpose({
540
540
  }
541
541
  }
542
542
 
543
- .mu-dark, page.mu-dark {
543
+ .mu-dark {
544
544
 
545
545
  .mu-input {
546
546
  &__label-text { color: $mu-dark-text-primary; }
@@ -355,7 +355,7 @@ watch(() => props.value, (val) => {
355
355
  }
356
356
  }
357
357
 
358
- .mu-dark, page.mu-dark {
358
+ .mu-dark {
359
359
  .mu-keyboard {
360
360
  &__panel {
361
361
  background: #0F172A;
@@ -271,7 +271,7 @@ watch(() => props.show, (val) => {
271
271
  }
272
272
  }
273
273
 
274
- .mu-dark, page.mu-dark {
274
+ .mu-dark {
275
275
 
276
276
  .mu-picker {
277
277
  &__mask { background: rgba(0, 0, 0, 0.65); }
@@ -269,7 +269,7 @@ defineExpose({ close: handleClose, open: () => { visible.value = true } })
269
269
  }
270
270
  }
271
271
 
272
- .mu-dark, page.mu-dark {
272
+ .mu-dark {
273
273
 
274
274
  .mu-popup {
275
275
  &__content {
@@ -194,7 +194,7 @@ function handleRightClick(e) {
194
194
  }
195
195
  }
196
196
 
197
- .mu-dark, page.mu-dark {
197
+ .mu-dark {
198
198
 
199
199
  .mu-section {
200
200
  &__title { color: $mu-dark-text-primary; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muzhiyu-ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "基于 UniApp Vue3 + SCSS 打造的全端极奢组件库",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "uni_modules": {
30
30
  "id": "muzhiyu-ui",
31
31
  "name": "muzhiyu-ui 极奢组件库",
32
- "version": "1.0.5",
32
+ "version": "1.0.6",
33
33
  "description": "基于 UniApp Vue3 + SCSS 打造的全端极奢 UI 组件库",
34
34
  "site": "",
35
35
  "displayName": "MuzhiyuUI 极奢全端组件库"