From 6142c5c654e6b7514f693e61c3dffb8c29203a7c Mon Sep 17 00:00:00 2001 From: Aisen Date: Fri, 21 Jun 2024 18:24:01 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20tabs=20=E6=96=B0=E5=A2=9E=20inactiveIte?= =?UTF-8?q?mStyle=20=E6=9C=AA=E9=80=89=E4=B8=AD=E7=9A=84item=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tuniao-ui/components/tn-tabs/tn-tabs.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tuniao-ui/components/tn-tabs/tn-tabs.vue b/tuniao-ui/components/tn-tabs/tn-tabs.vue index 04243ad..26993a7 100644 --- a/tuniao-ui/components/tn-tabs/tn-tabs.vue +++ b/tuniao-ui/components/tn-tabs/tn-tabs.vue @@ -89,6 +89,13 @@ type: String, default: '#080808' }, + // 未选中的item样式 + inactiveItemStyle: { + type: Object, + default() { + return {} + } + }, // 选中的item样式 activeItemStyle: { type: Object, @@ -171,6 +178,7 @@ Object.assign(style, this.activeItemStyle) } else { style.color = this.inactiveColor + Object.assign(style, this.inactiveItemStyle) } return style }