Skip to content

Commit

Permalink
move to props
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre BERTRAND committed Aug 27, 2024
1 parent 6c8b044 commit 79c2041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hublot-io/define-model",
"type": "module",
"version": "1.0.2",
"version": "1.0.3",
"description": "defineModel implementation for vue 2.7 according to 3.4 usage",
"main": "src/index.ts",
"repository": "git@github.com:hublot-io/defineModel.git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function defineModel<T>(modelValue : string = 'input') : Ref<T>{
const __internalValue = ref<T>()

if(modelValue === 'input'){
__internalValue.value = __instance.$attrs.value as T
__internalValue.value = __instance.$props.value as T

setTimeout(() => {
watch(__instance.$props, () => {
Expand Down

0 comments on commit 79c2041

Please sign in to comment.