mirror of
https://github.com/tenrok/maska.git
synced 2026-06-11 18:02:27 +03:00
Optimize directive work
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<script setup>
|
||||
defineProps(['modelValue'])
|
||||
defineEmits(['update:modelValue'])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<input
|
||||
:value="modelValue"
|
||||
@input="$emit('update:modelValue', $event.target.value)"
|
||||
/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user