Skip to content

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

Add allowNext hook

天舟90f5582b2dd6
diff --git a/frontend/src/bbkit/BBStepTab.vue b/frontend/src/bbkit/BBStepTab.vue
index c2e13d3ff4..89c8d901fc 100644
--- a/frontend/src/bbkit/BBStepTab.vue
+++ b/frontend/src/bbkit/BBStepTab.vue
@@ -93,6 +93,7 @@
</button>
<button
v-if="state.currentStep == stepItemList.length - 1"
+ :disabled="!allowNext"
type="button"
class="btn-primary"
@click.prevent="finish"
@@ -101,6 +102,7 @@
</button>
<button
v-else
+ :disabled="!allowNext"
type="button"
class="btn-primary"
@click.prevent="switchStep(state.currentStep + 1)"
@@ -128,6 +130,10 @@ export default {
required: true,
type: Object as PropType<BBStepTabItem[]>,
},
+ allowNext: {
+ default: true,
+ type: Boolean,
+ },
},
setup(props, { emit }) {
const state = reactive<LocalState>({