Добавил сохранение адресов и паспортных данных

This commit is contained in:
megavrilinvv
2022-11-10 19:30:24 +03:00
parent 098f46e981
commit c1bfb4fab6
5 changed files with 77 additions and 16 deletions

View File

@@ -1,16 +1,25 @@
<template lang="pug">
.input-wrapper.flex.gap-x-2.px-3.box-border.w-max-fit(class="py-2.5")
textarea.place-input.w-full.outline-0.text-sm.not-italic.resize-none(:rows="Math.ceil(value.length/heightInput)" :value="value" @input="$emit('update:value', $event.target.value)")
input.place-input.w-full.outline-0.text-sm.not-italic.resize-none(
:rows="Math.ceil(value.length/heightInput)"
:value="value"
@input="$emit('update:value', $event.target.value)"
v-mask="sharp"
)
slot
</template>
<script>
import { mask } from "vue-the-mask";
export default {
name: "ClientDetailInput",
props: {
value: String,
width: Number,
sharp: String,
},
directives: { mask },
computed: {
heightInput() {
return ((this.width / 100) * 70) / 11;