add avatar to kit

This commit is contained in:
kandrusyak
2022-10-27 18:25:03 +03:00
parent 444f144d33
commit 3869a64888
4 changed files with 69 additions and 6 deletions

View File

@@ -1,16 +1,16 @@
<template lang="pug">
.flex.box-border.px-4.items-center.gap-x-3.w-full.text-sm(:style="{ minWidth : width + 'px' }")
.flex.avatar.justify-center.items-center
span {{avatar}}
BaseAvatar(:size="36") {{avatar}}
span.font-semibold(v-if="!isOpenChange") {{value.fullName}}
base-input(v-if="isOpenChange" type="text" v-model:value="value.fullName" :width-input="300")
</template>
<script>
import BaseInput from "@/components/base/BaseInput";
import BaseAvatar from "@/components/base/BaseAvatar";
export default {
name: "TableCellBodyName",
components: { BaseInput },
components: { BaseAvatar, BaseInput },
props: {
value: Object,
avatar: String,