Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Export BBAlertStyle

天舟7273fb4e3ba0
diff --git a/frontend/src/bbkit/BBAlert.vue b/frontend/src/bbkit/BBAlert.vue
index 7e7e94337c..ca8971f5ce 100644
--- a/frontend/src/bbkit/BBAlert.vue
+++ b/frontend/src/bbkit/BBAlert.vue
@@ -167,13 +167,14 @@
<script lang="ts">
import { onMounted, onUnmounted, PropType } from "vue";
+import { BBAlertStyle } from "./types";
export default {
name: "BBAlert",
emits: ["ok", "cancel"],
props: {
style: {
- type: String as PropType<"INFO" | "SUCCESS" | "WARN" | "CRITICAL">,
+ type: String as PropType<BBAlertStyle>,
default: "INFO",
},
title: {
diff --git a/frontend/src/bbkit/types.ts b/frontend/src/bbkit/types.ts
index 962ac256fe..61ad47cdd5 100644
--- a/frontend/src/bbkit/types.ts
+++ b/frontend/src/bbkit/types.ts
@@ -44,3 +44,5 @@ export type BBNotificationPlacement =
| "TOP_RIGHT"
| "BOTTOM_LEFT"
| "BOTTOM_RIGHT";
+
+export type BBAlertStyle = "INFO" | "SUCCESS" | "WARN" | "CRITICAL";