Skip to content

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

Optional hide next button and give content to trigger next action

天舟3dcd834b6ac0
diff --git a/frontend/src/bbkit/BBStepTab.vue b/frontend/src/bbkit/BBStepTab.vue
index 89c8d901fc..7af2f7488d 100644
--- a/frontend/src/bbkit/BBStepTab.vue
+++ b/frontend/src/bbkit/BBStepTab.vue
@@ -62,7 +62,15 @@
</li>
</ol>
<template v-for="(step, index) in stepItemList" :key="index">
- <slot v-if="state.currentStep == index" :name="index" />
+ <slot
+ v-if="state.currentStep == index"
+ :name="index"
+ :next="
+ () => {
+ switchStep(state.currentStep + 1);
+ }
+ "
+ />
</template>
<div class="pt-4 flex justify-between">
<button type="button" class="btn-normal" @click.prevent="cancel">
@@ -101,7 +109,7 @@
Finish
</button>
<button
- v-else
+ v-else-if="!stepItemList[state.currentStep].hideNext"
:disabled="!allowNext"
type="button"
class="btn-primary"
diff --git a/frontend/src/bbkit/types.ts b/frontend/src/bbkit/types.ts
index 121bf41a6e..9ee7a93fc7 100644
--- a/frontend/src/bbkit/types.ts
+++ b/frontend/src/bbkit/types.ts
@@ -35,6 +35,7 @@ export type BBStep = {
export type BBStepTabItem = {
title: string;
+ hideNext?: boolean;
};
export type BBOutlineItem = {