2019-02-05 03:40:53 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div class="content-section introduction">
|
|
|
|
<div class="feature-intro">
|
|
|
|
<h1>Sidebar</h1>
|
|
|
|
<p>Sidebar is a panel component displayed as an overlay at the edges of the screen.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content-section implementation">
|
2020-06-18 08:58:07 +00:00
|
|
|
<div class="card">
|
2020-07-01 15:27:18 +00:00
|
|
|
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" class="p-mr-2" />
|
|
|
|
<Button icon="pi pi-arrow-left" @click="visibleRight = true" class="p-mr-2" />
|
|
|
|
<Button icon="pi pi-arrow-down" @click="visibleTop = true" class="p-mr-2" />
|
|
|
|
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" class="p-mr-2" />
|
2020-06-18 08:58:07 +00:00
|
|
|
<Button icon="pi pi-th-large" @click="visibleFull = true" />
|
2020-06-19 14:24:07 +00:00
|
|
|
|
2020-06-19 09:16:03 +00:00
|
|
|
<Sidebar :visible.sync="visibleLeft" :baseZIndex="1000">
|
2020-07-01 15:27:18 +00:00
|
|
|
<h3>Left Sidebar</h3>
|
2020-06-19 09:16:03 +00:00
|
|
|
</Sidebar>
|
2019-02-05 03:40:53 +00:00
|
|
|
|
2020-06-19 09:16:03 +00:00
|
|
|
<Sidebar :visible.sync="visibleRight" :baseZIndex="1000" position="right">
|
2020-07-01 15:27:18 +00:00
|
|
|
<h3>Right Sidebar</h3>
|
2020-06-19 09:16:03 +00:00
|
|
|
</Sidebar>
|
2019-02-05 03:40:53 +00:00
|
|
|
|
2020-06-19 09:16:03 +00:00
|
|
|
<Sidebar :visible.sync="visibleTop" :baseZIndex="1000" position="top">
|
2020-07-01 15:27:18 +00:00
|
|
|
<h3>Top Sidebar</h3>
|
2020-06-19 09:16:03 +00:00
|
|
|
</Sidebar>
|
2019-02-05 03:40:53 +00:00
|
|
|
|
2020-06-19 09:16:03 +00:00
|
|
|
<Sidebar :visible.sync="visibleBottom" :baseZIndex="1000" position="bottom">
|
2020-07-01 15:27:18 +00:00
|
|
|
<h3>Bottom Sidebar</h3>
|
2020-06-19 09:16:03 +00:00
|
|
|
</Sidebar>
|
2019-02-05 03:40:53 +00:00
|
|
|
|
2020-06-19 09:16:03 +00:00
|
|
|
<Sidebar :visible.sync="visibleFull" :baseZIndex="1000" position="full">
|
2020-07-01 15:27:18 +00:00
|
|
|
<h3>Full Screen</h3>
|
2020-06-19 09:16:03 +00:00
|
|
|
</Sidebar>
|
|
|
|
</div>
|
2019-02-05 03:40:53 +00:00
|
|
|
</div>
|
2019-04-02 09:12:06 +00:00
|
|
|
|
|
|
|
<SidebarDoc/>
|
2019-02-05 03:40:53 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-04-02 09:12:06 +00:00
|
|
|
import SidebarDoc from './SidebarDoc';
|
|
|
|
|
2019-02-05 03:40:53 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visibleLeft: false,
|
|
|
|
visibleRight: false,
|
|
|
|
visibleTop: false,
|
|
|
|
visibleBottom: false,
|
|
|
|
visibleFull: false
|
|
|
|
}
|
2019-04-02 09:12:06 +00:00
|
|
|
},
|
|
|
|
components: {
|
|
|
|
'SidebarDoc': SidebarDoc
|
2019-02-05 03:40:53 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-01 15:27:18 +00:00
|
|
|
</script>
|