WIP Исправлены inputs в SectionAddress

This commit is contained in:
Daria Golova
2022-12-30 17:07:40 +03:00
parent 9fe57eda5e
commit bda481cfe5
5 changed files with 125 additions and 80 deletions

View File

@@ -1,6 +1,9 @@
<template lang="pug">
.flex.flex-col.gap-y-2
.label.font-semibold.text-sm.opacity-40(v-if="label") {{ label }}
.font-semibold.text-sm.opacity-40(
v-if="label",
:class="labelClass"
) {{ label }}
.base-select.flex.justify-between.items-center.py-9px.px-4.gap-4.cursor-pointer.relative(
ref="select",
@click="open = !open",
@@ -46,6 +49,7 @@ export default {
center: Boolean,
label: String,
textStyle: String,
labelStyle: String,
},
emits: ["update:modelValue"],
data() {
@@ -71,6 +75,15 @@ export default {
"text-base": true,
};
},
labelClass() {
return this.labelStyle
? {
[this.labelStyle]: true,
}
: {
"text-sm": true,
};
},
},
methods: {
clickItem(id, label) {