From a61e3a56ec4cf6403cdd7aa8994440c219460845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E6=B9=BE=E7=94=9F=E6=B4=BB=E5=9C=88?= Date: Mon, 24 Feb 2025 09:46:11 +0000 Subject: [PATCH] =?UTF-8?q?update=20uni=5Fmodules/uv-badge/components/uv-b?= =?UTF-8?q?adge/uv-badge.vue.=20=E5=A2=9E=E5=8A=A0zIndex=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=20=E9=98=B2=E6=AD=A2=E5=90=AF=E7=94=A8=E7=BB=9D?= =?UTF-8?q?=E5=AF=B9=E5=AE=9A=E4=BD=8D=E6=97=B6=E8=A2=AB=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E6=B3=BD=E5=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 前湾生活圈 --- uni_modules/uv-badge/components/uv-badge/uv-badge.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uni_modules/uv-badge/components/uv-badge/uv-badge.vue b/uni_modules/uv-badge/components/uv-badge/uv-badge.vue index f7d3911..123c97e 100644 --- a/uni_modules/uv-badge/components/uv-badge/uv-badge.vue +++ b/uni_modules/uv-badge/components/uv-badge/uv-badge.vue @@ -30,6 +30,7 @@ * @property {Boolean} inverted 是否反转背景和字体颜色(默认 false ) * @property {Boolean} absolute 是否绝对定位(默认 false ) * @property {Object} customStyle 定义需要用到的外部样式 + * @property {String | Number} zIndex 启用绝对定位设置显示内容的层级(默认 99) * @example */ export default { @@ -52,6 +53,7 @@ } if (this.absolute) { style.position = 'absolute' + style.zIndex = this.zIndex || 99 // 如果有设置offset参数 if(this.offset.length) { // top和right分为为offset的第一个和第二个值,如果没有第二个值,则right等于top -- Gitee