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

This commit is contained in:
DwCay
2022-10-26 16:11:56 +03:00
parent a9ae13b943
commit a2715a712f
21 changed files with 515 additions and 387 deletions

View File

@@ -1,14 +1,18 @@
<template lang="pug">
.flex.box-border.px-4.items-center.w-full(:style="{ minWidth : width + 'px' }")
span.text-sm {{value.some((el) => el.kind === "PHONE")?value.find((el) => el.kind === "PHONE").username:''}}
.flex.box-border.px-4.items-center.w-full.text-sm(:style="{ minWidth : width + 'px' }")
span.text-sm(v-if="!isOpenChange") {{value.phone.username}}
base-input(v-if="isOpenChange" :width-input="154" v-model:value="value.phone.username" :placeholder="value.phone.username")
</template>
<script>
import BaseInput from "@/components/base/BaseInput";
export default {
name: "TableCellBodyPhone",
components: { BaseInput },
props: {
value: Array,
value: Object,
width: Number,
isOpenChange: Boolean,
},
};
</script>