diff --git a/src/components/common/VnInputPassword.vue b/src/components/common/VnInputPassword.vue index f0e72ab6d..56981c0c3 100644 --- a/src/components/common/VnInputPassword.vue +++ b/src/components/common/VnInputPassword.vue @@ -2,11 +2,8 @@ import VnInput from 'src/components/common/VnInput.vue'; import { ref } from 'vue'; +const model = defineModel({ type: [Number, String] }); const $props = defineProps({ - modelValue: { - type: [String, Number], - default: null, - }, toggleVisibility: { type: Boolean, default: false, @@ -14,18 +11,16 @@ const $props = defineProps({ }); const showPassword = ref(false); -const model = defineModel({ type: [Number, String] });