feat(badge): [badge] Adapting to the SMB theme (#2087)

* feat(badge): [badge] Adapting to the SMB theme

* feat(badge): [badge] Adapting to the SMB theme

* feat(badge): [badge] Adapting to the SMB theme
This commit is contained in:
东风使命必达 2024-09-09 23:47:31 -07:00 committed by GitHub
parent ad849e99ef
commit 44e27799e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 3 deletions

View File

@ -33,7 +33,7 @@
vertical-align: baseline;
white-space: nowrap;
text-align: center;
margin-left: 4px;
margin-left: var(--ti-badge-margin-left);
border: var(--ti-badge-border) solid #FFFFFF;
&:empty {

View File

@ -6,5 +6,6 @@ export const tinyBadgeSmbTheme = {
'ti-badge-text-color': 'var(--ti-base-color-bg-7)',
'ti-badge-border-radius': 'var(--ti-common-border-radius-4)',
'ti-badge-border': 'var(--ti-common-border-weight-normal)',
'ti-badge-font-weight': 'var(--ti-common-font-weight-normal)'
'ti-badge-font-weight': 'var(--ti-common-font-weight-normal)',
'ti-badge-margin-left': '0'
}

View File

@ -27,4 +27,5 @@
--ti-badge-danger-bg-color: var(--ti-base-color-error-3, #f66f6a);
--ti-badge-info-bg-color: var(--ti-common-color-info-normal, #252b3a);
--ti-badge-border: 0;
--ti-badge-margin-left: 4px;
}

View File

@ -22,7 +22,7 @@
type ? 'tiny-badge--' + type : '',
badgeClass || ''
]"
:style="state.transform"
:style="!isDot ? state.transform : ''"
>
<slot name="content">
<a v-if="state.href" :href="state.href" :target="target" rel="noopener noreferrer">{{ state.content }}</a>