[WIP] Добавил возможность сохранения аватара клиента
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user