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