From 51e529d5061acf0a8e0580758e335594f5603159 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 04 七月 2025 14:25:19 +0800
Subject: [PATCH] 我的-收藏列表bug、优化
---
components/dropdown-menu.vue | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/components/dropdown-menu.vue b/components/dropdown-menu.vue
index 066a6d6..cf305ba 100644
--- a/components/dropdown-menu.vue
+++ b/components/dropdown-menu.vue
@@ -2,9 +2,9 @@
<view class="dropdown-container" :style="{ '--theme-color': themeColor }">
<!-- 瑙﹀彂鎸夐挳 -->
<view class="dropdown-trigger" @click="toggleDropdown">
- <uni-icons type="more-filled" size="20" color="#666"></uni-icons>
+ <uni-icons type="more-filled" size="20" color="#fff"></uni-icons>
<view class="dropdown-icon" :class="{ 'rotate': isOpen }">
- <uni-icons type="arrowdown" size="16" color="#666"></uni-icons>
+ <uni-icons type="arrowdown" size="16" color="#fff"></uni-icons>
</view>
</view>
@@ -40,6 +40,10 @@
export default {
name: 'DropdownMenu',
props: {
+ // 涓氬姟鏁版嵁锛岄�変腑鑿滃崟鍚庝竴鍚岃繑鍥�
+ data: {
+ type: Object
+ },
// 閫夐」鍒楄〃
options: {
type: Array,
@@ -103,7 +107,7 @@
// 鏍规嵁閰嶇疆杩斿洖鏁翠釜瀵硅薄鎴杤alue鍊�
const emitValue = typeof item === 'object' ? item[this.valueKey] : item
this.$emit('input', emitValue)
- this.$emit('change', emitValue)
+ this.$emit('change', emitValue, this.data)
}
}
}
@@ -120,7 +124,7 @@
height: 70rpx;
line-height: 70rpx;
border-radius: 8rpx;
- background-color: #fff;
+ // background-color: #fff;
box-sizing: border-box;
cursor: pointer;
--
Gitblit v1.8.0