International Telephone Input with Vue

feature: rewrite to Composition API#446

Closed
Opened 3/7/20244 commentsby daniil4udo
daniil4udo

I know it's a lot of changes... I didn't change any logic, just an attempt to add typings and Composition API - Why Vue version upgraded? To be able to use `defineModel` - Why `getDefault` moved to the `utils.ts` - there's an important limitation to keep in mind: defineProps() (and similar functions like defineEmits() or useSlots()) cannot reference locally declared variables within the same <script setup> block. This limitation arises because these API calls are hoisted outside of the setup function by the Vue compiler during the SFC compilation process. Hoisting means that these calls are moved to the top of the module scope, so they execute before any local variables are defined, thus they cannot reference those variables.

AI Analysis

This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by daniil4udo and has received 4 comments.

Add a comment
Comment form would go here