From 16213c0f85aa3ac8317797bf4a05fd12940e16d3 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 05 三月 2025 17:29:42 +0800 Subject: [PATCH] - --- src/uni_modules/uview-plus/components/u-dropdown/u-dropdown.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uni_modules/uview-plus/components/u-dropdown/u-dropdown.vue b/src/uni_modules/uview-plus/components/u-dropdown/u-dropdown.vue index 02964bc..55fa086 100644 --- a/src/uni_modules/uview-plus/components/u-dropdown/u-dropdown.vue +++ b/src/uni_modules/uview-plus/components/u-dropdown/u-dropdown.vue @@ -37,7 +37,7 @@ import { props } from './props'; import { mpMixin } from '../../libs/mixin/mpMixin'; import { mixin } from '../../libs/mixin/mixin'; - import { addUnit, sys} from '../../libs/function/index'; + import { addUnit, getWindowInfo} from '../../libs/function/index'; /** * dropdown 涓嬫媺鑿滃崟 * @description 璇ョ粍浠朵竴鑸敤浜庡悜涓嬪睍寮�鑿滃崟锛屽悓鏃跺彲鍒囨崲澶氫釜閫夐」鍗$殑鍦烘櫙 @@ -166,8 +166,8 @@ getContentHeight() { // 杩欓噷鐨勫師鐞嗕负锛屽洜涓篸ropdown缁勪欢鏄浉瀵瑰畾浣嶇殑锛屽畠鐨勪笅鎷夊嚭鏉ョ殑鍐呭锛屽繀椤荤粰瀹氫竴涓珮搴� // 鎵嶈兘璁╅伄缃╁崰婊¤彍鍗曚竴涓嬶紝鐩村埌灞忓箷搴曢儴鐨勯珮搴� - // sys()涓簎view-plus灏佽鐨勮幏鍙栬澶囦俊鎭殑鏂规硶 - let windowHeight = sys().windowHeight; + // getWindowInfo()涓簎view-plus灏佽鐨勮幏鍙栬澶囦俊鎭殑鏂规硶 + let windowHeight = getWindowInfo().windowHeight; this.$uGetRect('.u-dropdown__menu').then(res => { // 杩欓噷鑾峰彇鐨勬槸dropdown鐨勫昂瀵革紝鍦℉5涓婏紝uniapp鑾峰彇灏哄鏄湁bug鐨�(浠ュ墠鎻愬嚭淇杩囷紝鍚庢潵鍙堝嚭鐜颁簡姝ug锛岀洰鍓峢x2.8.11鐗堟湰) // H5绔痓ug琛ㄧ幇涓哄厓绱犲昂瀵哥殑top鍊间负瀵艰埅鏍忓簳閮ㄥ埌鍒板厓绱犵殑涓婅竟娌跨殑璺濈锛屼絾鏄厓绱犵殑bottom鍊肩‘鏄鑸爮椤堕儴鍒板厓绱犲簳閮ㄧ殑璺濈 -- Gitblit v1.9.1