phone format
This commit is contained in:
parent
7c20f070f1
commit
33c32ce124
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "axp-ui",
|
||||
"descriiption": "My helper ui lib",
|
||||
"version": "1.7.1",
|
||||
"version": "1.7.2",
|
||||
"homepage": "https://antoxahub.ru/antoxa/axp-ui",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -19,7 +19,11 @@ const emit = defineEmits<TUiFieldPhoneEmits>()
|
||||
|
||||
// Value string.
|
||||
const valueStr = computed({
|
||||
get: () => getPhoneNumberFormat(props.modelValue),
|
||||
get: () => {
|
||||
if (props.modelValue) {
|
||||
return getPhoneNumberFormat(props.modelValue)
|
||||
}
|
||||
},
|
||||
set: val => {
|
||||
emit('update:error')
|
||||
emit('update:model-value', getPhoneNumberValue(val))
|
||||
|
Loading…
Reference in New Issue
Block a user