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.
- package/components/muzhiyu/mu-button/mu-button.vue +1 -1
- package/components/muzhiyu/mu-cell/mu-cell.vue +6 -3
- package/components/muzhiyu/mu-icon/mu-icon.vue +1 -1
- package/components/muzhiyu/mu-input/mu-input.vue +1 -1
- package/components/muzhiyu/mu-keyboard/mu-keyboard.vue +1 -1
- package/components/muzhiyu/mu-picker/mu-picker.vue +1 -1
- package/components/muzhiyu/mu-popup/mu-popup.vue +1 -1
- package/components/muzhiyu/mu-section/mu-section.vue +1 -1
- package/package.json +2 -2
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
</view>
|
|
39
39
|
|
|
40
40
|
<!-- 右侧自定义插槽 (支持绑定/授权手机号按钮、开关、文案等) -->
|
|
41
|
-
<view class="mu-cell__right"
|
|
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="
|
|
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
|
|
366
|
+
.mu-dark {
|
|
364
367
|
|
|
365
368
|
.mu-cell {
|
|
366
369
|
background: $mu-dark-bg-base;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muzhiyu-ui",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
32
|
+
"version": "1.0.6",
|
|
33
33
|
"description": "基于 UniApp Vue3 + SCSS 打造的全端极奢 UI 组件库",
|
|
34
34
|
"site": "",
|
|
35
35
|
"displayName": "MuzhiyuUI 极奢全端组件库"
|