From da1e3dbfc622f7f581d19a56c7e4d3abe13563e1 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 09 七月 2025 18:02:59 +0800 Subject: [PATCH] 上家发布商品功能 --- components/dropdown-menu.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/dropdown-menu.vue b/components/dropdown-menu.vue index 6dee7c9..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; @@ -149,7 +153,7 @@ .dropdown-menu { position: absolute; - left: 0; + left: -50rpx; display: inline-block; white-space: nowrap; background-color: #fff; -- Gitblit v1.8.0