Skip to content

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

Export BBOutlineItem type since the client needs to know the type to supply the element list.

天舟f8af05ffbee9
diff --git a/frontend/src/bbkit/BBOutline.vue b/frontend/src/bbkit/BBOutline.vue
index 282aa0710d..4fa6d2bc3d 100644
--- a/frontend/src/bbkit/BBOutline.vue
+++ b/frontend/src/bbkit/BBOutline.vue
@@ -69,13 +69,9 @@ interface LocalState {
expandState: boolean;
}
-type OutlineItem = {
- name: string;
- link: string;
-};
-
import { computed, reactive, PropType } from "vue";
import { useStore } from "vuex";
+import { BBOutlineItem } from "./types";
export default {
name: "BBOutline",
@@ -93,7 +89,7 @@ export default {
},
itemList: {
required: true,
- type: Object as PropType<OutlineItem[]>,
+ type: Object as PropType<BBOutlineItem[]>,
},
allowDelete: {
default: false,
diff --git a/frontend/src/bbkit/types.ts b/frontend/src/bbkit/types.ts
index d15ce2d3d4..7080796e24 100644
--- a/frontend/src/bbkit/types.ts
+++ b/frontend/src/bbkit/types.ts
@@ -22,6 +22,12 @@ export type BBStep = {
link(): string;
};
+export type BBOutlineItem = {
+ name: string;
+ link?: string;
+ childList?: [];
+};
+
export type BBNotificationStyle = "INFO" | "SUCCESS" | "WARN" | "CRITICAL";
export type BBNotificationPlacement =
| "TOP_LEFT"