Migrated Sidebar to V3
parent
cacf0609f7
commit
4be27bd422
|
@ -207,27 +207,27 @@ export default {
|
|||
transition: none;
|
||||
}
|
||||
|
||||
.p-sidebar-left.p-sidebar-enter,
|
||||
.p-sidebar-left.p-sidebar-enter-from,
|
||||
.p-sidebar-left.p-sidebar-leave-to {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.p-sidebar-right.p-sidebar-enter,
|
||||
.p-sidebar-right.p-sidebar-enter-from,
|
||||
.p-sidebar-right.p-sidebar-leave-to {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.p-sidebar-top.p-sidebar-enter,
|
||||
.p-sidebar-top.p-sidebar-enter-from,
|
||||
.p-sidebar-top.p-sidebar-leave-to {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
.p-sidebar-bottom.p-sidebar-enter,
|
||||
.p-sidebar-bottom.p-sidebar-enter-from,
|
||||
.p-sidebar-bottom.p-sidebar-leave-to {
|
||||
transform: translateY(100%);
|
||||
}
|
||||
|
||||
.p-sidebar-full.p-sidebar-enter,
|
||||
.p-sidebar-full.p-sidebar-enter-from,
|
||||
.p-sidebar-full.p-sidebar-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ import Sidebar from 'primevue/sidebar';
|
|||
</CodeHighlight>
|
||||
|
||||
<h5>Getting Started</h5>
|
||||
<p>Sidebar is used as a container and visibility is controlled with <i>visible</i> property that requires the sync operator for two-way binding.</p>
|
||||
<p>Sidebar is used as a container and visibility is controlled with the <i>visible</i> property that requires a v-model two-way binding.</p>
|
||||
<CodeHighlight>
|
||||
<Sidebar :visible.sync="visibleLeft">
|
||||
<Sidebar v-model:visible="visibleLeft">
|
||||
Content
|
||||
</Sidebar>
|
||||
|
||||
|
@ -20,7 +20,7 @@ import Sidebar from 'primevue/sidebar';
|
|||
<h5>Position</h5>
|
||||
<p>Sidebar can either be located on the left (default), right, top or bottom of the screen depending on the <i>position</i> property.</p>
|
||||
<CodeHighlight>
|
||||
<Sidebar :visible.sync="visibleRight" position="right">
|
||||
<Sidebar v-model:visible="visibleRight" position="right">
|
||||
Content
|
||||
</Sidebar>
|
||||
</CodeHighlight>
|
||||
|
@ -28,15 +28,15 @@ import Sidebar from 'primevue/sidebar';
|
|||
<h5>Size</h5>
|
||||
<p>Sidebar size can be changed using a fixed value or using one of the three predefined ones.</p>
|
||||
<CodeHighlight>
|
||||
<Sidebar :visible.sync="visibleLeft" class="p-sidebar-sm"></Sidebar>
|
||||
<Sidebar :visible.sync="visibleLeft" class="p-sidebar-md"></Sidebar>
|
||||
<Sidebar :visible.sync="visibleLeft" class="p-sidebar-lg"></Sidebar>
|
||||
<Sidebar v-model:visible="visibleLeft" class="p-sidebar-sm"></Sidebar>
|
||||
<Sidebar v-model:visible="visibleLeft" class="p-sidebar-md"></Sidebar>
|
||||
<Sidebar v-model:visible="visibleLeft" class="p-sidebar-lg"></Sidebar>
|
||||
</CodeHighlight>
|
||||
|
||||
<h5>Full Screen</h5>
|
||||
<p>Full screen mode allows the sidebar to cover whole screen.</p>
|
||||
<CodeHighlight>
|
||||
<Sidebar :visible.sync="visibleFull" position="full">
|
||||
<Sidebar v-model:visible="visibleFull" position="full">
|
||||
Content
|
||||
</Sidebar>
|
||||
</CodeHighlight>
|
||||
|
@ -210,23 +210,23 @@ import Sidebar from 'primevue/sidebar';
|
|||
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" class="p-mr-2" />
|
||||
<Button icon="pi pi-th-large" @click="visibleFull = true" />
|
||||
|
||||
<Sidebar :visible.sync="visibleLeft" :baseZIndex="1000">
|
||||
<Sidebar v-model:visible="visibleLeft" :baseZIndex="1000">
|
||||
<h3>Left Sidebar</h3>
|
||||
</Sidebar>
|
||||
|
||||
<Sidebar :visible.sync="visibleRight" :baseZIndex="1000" position="right">
|
||||
<Sidebar v-model:visible="visibleRight" :baseZIndex="1000" position="right">
|
||||
<h3>Right Sidebar</h3>
|
||||
</Sidebar>
|
||||
|
||||
<Sidebar :visible.sync="visibleTop" :baseZIndex="1000" position="top">
|
||||
<Sidebar v-model:visible="visibleTop" :baseZIndex="1000" position="top">
|
||||
<h3>Top Sidebar</h3>
|
||||
</Sidebar>
|
||||
|
||||
<Sidebar :visible.sync="visibleBottom" :baseZIndex="1000" position="bottom">
|
||||
<Sidebar v-model:visible="visibleBottom" :baseZIndex="1000" position="bottom">
|
||||
<h3>Bottom Sidebar</h3>
|
||||
</Sidebar>
|
||||
|
||||
<Sidebar :visible.sync="visibleFull" :baseZIndex="1000" position="full">
|
||||
<Sidebar v-model:visible="visibleFull" :baseZIndex="1000" position="full">
|
||||
<h3>Full Screen</h3>
|
||||
</Sidebar>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue