[WIP] Добавил приоритет клиента, обработку ввода паспортных данных, фикс чекбокса выбора клиента

This commit is contained in:
megavrilinvv
2022-11-30 15:52:42 +03:00
parent fb36d5f284
commit a66081c14d
6 changed files with 27 additions and 13 deletions

View File

@@ -1,15 +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.font-medium(
v-if="!sharp"
:rows="Math.ceil(value.length/heightInput)",
:value="value",
@input="$emit('update:value', $event.target.value)",
:placeholder="placeholder",
)
input.place-input.w-full.outline-0.text-sm.not-italic.resize-none.font-medium(
v-else,
:rows="Math.ceil(value.length/heightInput)",
:value="value",
@input="$emit('update:value', $event.target.value)",
:placeholder="placeholder",
v-mask="sharp"
)
slot
</template>
<script>
import { mask } from "vue-the-mask";
export default {
name: "ClientDetailInput",
props: {
@@ -20,7 +30,7 @@ export default {
default: "Поиск",
},
},
directives: { mask },
computed: {
heightInput() {
return ((this.width / 100) * 70) / 11;