WIP добавил возможность редактирования детальной информации клиента

This commit is contained in:
DwCay
2022-10-21 20:43:17 +03:00
parent 7f03de6155
commit df32fa5da6
11 changed files with 423 additions and 162 deletions

View File

@@ -0,0 +1,27 @@
<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)")
slot
</template>
<script>
export default {
name: "ClientDetailInput",
props: {
value: String,
width: Number,
},
computed: {
heightInput() {
return ((this.width / 100) * 70) / 8;
},
},
};
</script>
<style lang="sass" scoped>
.input-wrapper
border: 2px solid var(--border-light-grey-color)
border-radius: 4px
background-color: var(--default-white)
</style>