From 6017f46b762663b9393cdae8422e0de1ed3db218 Mon Sep 17 00:00:00 2001
From: guifei zhu <guifeizhu@guifeideiMac.local>
Date: 星期三, 27 十一月 2024 13:30:06 +0800
Subject: [PATCH] 添加mqtt数据接口
---
colorui/components/cu-custom.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/colorui/components/cu-custom.vue b/colorui/components/cu-custom.vue
index b09f70d..c4c36cf 100644
--- a/colorui/components/cu-custom.vue
+++ b/colorui/components/cu-custom.vue
@@ -9,7 +9,11 @@
<view class="content" :style="[{top:StatusBar + 'px'}]">
<slot name="content"></slot>
</view>
- <slot name="right"></slot>
+ <!-- <slot name="right"></slot> -->
+ <view class="right" @tap="HandleRight" v-if="isRight">
+ <text class="cuIcon-discover"></text>
+ <slot name="rihjtText"></slot>
+ </view>
</view>
</view>
</view>
@@ -44,6 +48,10 @@
isBack: {
type: [Boolean, String],
default: false
+ },
+ isRight: {
+ type: [Boolean, String],
+ default: false
},
bgImage: {
type: String,
@@ -55,6 +63,9 @@
uni.navigateBack({
delta: 1
});
+ },
+ HandleRight(){
+ this.$emit('rightclick'); // 瑙﹀彂鑷畾涔変簨浠�
}
}
}
--
Gitblit v1.9.3