Add price checker demo
This commit is contained in:
21
src/components/Inputs/TextInput.vue
Normal file
21
src/components/Inputs/TextInput.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
const props = defineProps<{
|
||||
modelValue: string;
|
||||
}>();
|
||||
|
||||
const emits = defineEmits<{
|
||||
(e: "update:modelValue", value: string): void;
|
||||
(e: "blur"): void;
|
||||
(e: "focus"): void;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<input
|
||||
:value="props.modelValue"
|
||||
@input="emits('update:modelValue', (<HTMLInputElement>$event.target).value)"
|
||||
@blur="emits('blur')"
|
||||
@focus="emits('focus')"
|
||||
type="text"
|
||||
/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user