diff --git a/src/pages/clients/components/ClientDetailInfoSection.vue b/src/pages/clients/components/ClientDetailInfoSection.vue index 8c98dcd..b2ab550 100644 --- a/src/pages/clients/components/ClientDetailInfoSection.vue +++ b/src/pages/clients/components/ClientDetailInfoSection.vue @@ -1,6 +1,8 @@ @@ -199,8 +201,21 @@ export default { ? this.sectionInfo.issued_by_date.split("-").reverse().join(".") : ""; }, + sectionAnimationClasses() { + if (this.isData || this.isAddress || this.isAttachments) { + return { + "closed-add": true, + }; + } + return { + "closed-body": true, + }; + }, }, methods: { + output(section) { + console.log(section); + }, openAddDoc() { this.isChange = true; if (this.section === "pass") { @@ -364,7 +379,9 @@ export default { opacity: 0.6 .section-body - overflow-y: auto + max-height: 500px + transition: 0.3s ease all + overflow: hidden &::-webkit-scrollbar width: 4px &::-webkit-scrollbar-track @@ -385,10 +402,18 @@ export default { opacity: 0.6 .section-add - height: 100% - min-height: 64px + height: calc(100% - 44px) + max-height: 100% + overflow: hidden + transition: 0.3s ease all color: var(--btn-blue-color) +.closed-add .section-add + max-height: 0 + +.closed-body .section-body + max-height: 0 + .line width: 100% height: 1px diff --git a/src/pages/clients/utils/tableConfig.js b/src/pages/clients/utils/tableConfig.js index a65fb66..5f07ebf 100644 --- a/src/pages/clients/utils/tableConfig.js +++ b/src/pages/clients/utils/tableConfig.js @@ -126,6 +126,7 @@ export const detail = { issued_by_date: "Дата", }, width: 280, + voidHeight: 242, }, snils: { title: "СНИЛС", @@ -162,12 +163,14 @@ export const detail = { join_adress: "Введите адрес целиком", }, width: 292, + voidHeight: 86, }, docs: { title: "Документы", height: 280, width: 360, addFile: true, + voidHeight: 236, }, additional: { title: "Дополнительные данные",