From 1113721c0e068c57adbc15149cce15563960a7f2 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期三, 18 六月 2025 23:03:25 +0800 Subject: [PATCH] Merge branch 'dev' of http://42.193.1.25:9521/r/lmk-shop-wx into dev --- components/dropdown-menu.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/dropdown-menu.vue b/components/dropdown-menu.vue index 6dee7c9..24b7d60 100644 --- a/components/dropdown-menu.vue +++ b/components/dropdown-menu.vue @@ -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) } } } @@ -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