Skip to content

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

Support @input like normal <input> for BBTextField

天舟54f58eaa89f6
diff --git a/frontend/src/bbkit/BBTextField.vue b/frontend/src/bbkit/BBTextField.vue
index edbd0a7d3d..4477f469f6 100644
--- a/frontend/src/bbkit/BBTextField.vue
+++ b/frontend/src/bbkit/BBTextField.vue
@@ -16,7 +16,7 @@
:placeholder="placeholder"
@focus="onFocus"
@blur="onBlur"
- @input="onInput"
+ @input="onInput($event)"
/>
</template>
@@ -32,7 +32,7 @@ interface LocalState {
export default {
name: "BBTextField",
- emits: ["end-editing"],
+ emits: ["end-editing", "input"],
props: {
required: {
default: false,
@@ -102,8 +102,9 @@ export default {
}
};
- const onInput = () => {
+ const onInput = (e: any) => {
state.hasError = false;
+ emit("input", e);
};
return {