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

This commit is contained in:
megavrilinvv
2022-11-29 19:04:32 +03:00
parent 670c4bf71c
commit fb36d5f284
4 changed files with 67 additions and 46 deletions

View File

@@ -1,6 +1,8 @@
<template lang="pug">
.flex.box-border.px-4.items-center.gap-x-3.w-full.text-sm(:style="{ minWidth : width + 'px' }")
BaseAvatar(:size="36", :color="avatarColor") {{avatar}}
base-avatar(:size="36", :color="avatarColor", v-if="!photo") {{avatar}}
base-avatar(:size="36", v-else)
img.h-full(:src="url + photo")
span.font-semibold(v-if="!isOpenChange") {{value.fullName}}
base-input(v-if="isOpenChange" type="text" v-model:value="value.fullName" :width-input="300")
</template>
@@ -14,11 +16,17 @@ export default {
props: {
value: Object,
avatar: String,
photo: String,
width: Number,
imgUrl: String,
isOpenChange: Boolean,
avatarColor: String,
},
data() {
return {
url: "http://45.84.227.122:8080",
};
},
};
</script>