-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Short word for @update:model-value #8177
Labels
✨ feature request
New feature or request
Comments
<script lang="ts" setup>
const modelValue = defineModel<string>({ default: '' });
</script>
<template>
<input v-model="modelValue" />
</template> <script lang="ts" setup>
import { ref } from 'vue';
import TextField from '~/components/TextField.vue';
const val = ref('');
</script>
<template>
<TextField v-model="val" />
{{ val }}
</template> |
Thank you but you have misconceptions about what i want. i will try describe in details |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
@update:model-value used many time and can be used instead of creating watch function so it will be pretty if their is short word instead of a long word.
some suggestions
1-$u (as $ can be used as short syntax for v-model so we can add u character to it to inform as update $)
2-@$
3-@::
What does the proposed API look like?
make syntax more clean with short code
The text was updated successfully, but these errors were encountered: