diff --git a/packages/devui-vue/devui/badge/src/badge-types.ts b/packages/devui-vue/devui/badge/src/badge-types.ts index ee212e5311..e8215c82b9 100644 --- a/packages/devui-vue/devui/badge/src/badge-types.ts +++ b/packages/devui-vue/devui/badge/src/badge-types.ts @@ -1,9 +1,9 @@ import type { PropType, ExtractPropTypes } from 'vue'; -export type BadgeStatusType = 'danger' | 'warning' | 'waiting' | 'success' | 'info'; +export type BadgeStatusType = 'danger' | 'warning' | 'waiting' | 'success' | 'info' | 'common'; export type BadgePositionType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; -const badgeStatusType = ['danger', 'warning', 'waiting', 'success', 'info']; +const badgeStatusType = ['danger', 'warning', 'waiting', 'success', 'info', 'common']; const badgePositionType = ['top-left', 'top-right', 'bottom-left', 'bottom-right']; export const badgeProps = { diff --git a/packages/devui-vue/devui/badge/src/badge.scss b/packages/devui-vue/devui/badge/src/badge.scss index 9f72576e39..e8ab08b92f 100644 --- a/packages/devui-vue/devui/badge/src/badge.scss +++ b/packages/devui-vue/devui/badge/src/badge.scss @@ -39,6 +39,11 @@ background: $devui-info; } + &-common { + background: $devui-unavailable; + color: $devui-aide-text; + } + &-top-left { left: 0; top: 0; diff --git a/packages/devui-vue/docs/components/badge/index.md b/packages/devui-vue/docs/components/badge/index.md index 5597e7fe30..2092fea73d 100644 --- a/packages/devui-vue/docs/components/badge/index.md +++ b/packages/devui-vue/docs/components/badge/index.md @@ -70,28 +70,27 @@