This commit is contained in:
Luiz Silva 2026-02-15 15:17:08 -03:00
parent 8a5596e860
commit 57325f6744
100 changed files with 16153 additions and 4623 deletions

View file

@ -23,8 +23,8 @@
</template>
<script lang="ts">
import { defineComponent, ref, watch } from "vue";
import { Search } from "lucide-vue-next";
import { Search } from "lucide-vue-next"
import { defineComponent, ref, watch } from "vue"
export default defineComponent({
name: "EliTabelaCaixaDeBusca",
@ -38,7 +38,7 @@ export default defineComponent({
},
emits: {
buscar(valor: string) {
return typeof valor === "string";
return typeof valor === "string"
},
},
setup(props, { emit }) {
@ -46,24 +46,24 @@ export default defineComponent({
* Estado local da entrada para que o usuário possa digitar livremente antes
* de disparar uma nova consulta.
*/
const texto = ref(props.modelo ?? "");
const texto = ref(props.modelo ?? "")
watch(
() => props.modelo,
(novo) => {
if (novo !== undefined && novo !== texto.value) {
texto.value = novo;
texto.value = novo
}
}
);
},
)
function emitirBusca() {
emit("buscar", texto.value.trim());
emit("buscar", texto.value.trim())
}
return { texto, emitirBusca };
return { texto, emitirBusca }
},
});
})
</script>
<style>