WIP Исправлены найденные baseInputs

This commit is contained in:
Daria Golova
2022-12-29 15:21:21 +03:00
parent c664f11bfb
commit e138bedfac
31 changed files with 200 additions and 228 deletions

View File

@@ -1,16 +1,15 @@
<template lang="pug">
.flex.box-border.px-4.items-center.w-full.text-sm(:style="{ minWidth : width + 'px', maxWidth : width + 'px' }")
.flex.box-border.px-4.items-center.w-full.text-sm(:style="{ width : width + 'px' }")
span.text-sm(
v-if="!isOpenChange"
) {{value.phone.username.replace(/\+7(\d{3})(\d{3})(\d{2})(\d{2})/, '+7 ($1) $2-$3-$4')}}
base-input(
v-if="isOpenChange",
@click.stop,
:width-input="154",
v-model:value="value.phone.username",
:placeholder="value.phone.username",
v-mask="'+7 (###) ###-##-##'"
)
.phone(v-if="isOpenChange")
base-input(
@click.stop,
v-model="value.phone.username",
:placeholder="value.phone.username",
v-mask="'+7 (###) ###-##-##'"
)
</template>
<script>
@@ -27,3 +26,8 @@ export default {
directives: { mask },
};
</script>
<style lang="sass" scoped>
.phone
width: 158px
</style>