pull/1196/head^2
Cagatay Civici 2021-05-12 12:13:53 +03:00
commit 401d9eb59e
36 changed files with 101349 additions and 138752 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,10 +2,12 @@
<Teleport to="body"> <Teleport to="body">
<transition name="p-sidebar" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" appear> <transition name="p-sidebar" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" appear>
<div :class="containerClass" v-if="visible" :ref="containerRef" role="complementary" :aria-modal="modal" v-bind="$attrs"> <div :class="containerClass" v-if="visible" :ref="containerRef" role="complementary" :aria-modal="modal" v-bind="$attrs">
<div class="p-sidebar-content"> <div class="p-sidebar-header">
<button class="p-sidebar-close p-link" @click="hide" :aria-label="ariaCloseLabel" v-if="showCloseIcon" type="button" v-ripple> <button class="p-sidebar-close p-sidebar-icon p-link" @click="hide" :aria-label="ariaCloseLabel" v-if="showCloseIcon" type="button" v-ripple>
<span class="p-sidebar-close-icon pi pi-times" /> <span class="p-sidebar-close-icon pi pi-times" />
</button> </button>
</div>
<div class="p-sidebar-content">
<slot></slot> <slot></slot>
</div> </div>
</div> </div>
@ -171,21 +173,25 @@ export default {
.p-sidebar { .p-sidebar {
position: fixed; position: fixed;
transition: transform .3s; transition: transform .3s;
overflow: scroll; display: flex;
flex-direction: column;
} }
.p-sidebar-content { .p-sidebar-content {
position: relative; position: relative;
overflow-y: auto;
} }
.p-sidebar-close { .p-sidebar-header {
position: absolute; display: flex;
top: 0; align-items: center;
right: 0; justify-content: flex-end;
}
.p-sidebar-icon {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
overflow: hidden;
} }
.p-sidebar-mask { .p-sidebar-mask {

View File

@ -90,7 +90,7 @@ export default {
if (this.isTabPanel(child)) { if (this.isTabPanel(child)) {
tabs.push(child); tabs.push(child);
} }
else if (child.children.length > 0) { else if (child.children && child.children instanceof Array) {
child.children.forEach(nestedChild => { child.children.forEach(nestedChild => {
if (this.isTabPanel(nestedChild)) { if (this.isTabPanel(nestedChild)) {
tabs.push(nestedChild) tabs.push(nestedChild)