-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4745 from FlowFuse/sidebar-redesign_left-drawer
Sidebar Re-design: Left Drawer
- Loading branch information
Showing
30 changed files
with
668 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<section id="left-drawer" data-el="left-drawer" :class="{active: leftDrawer.state}"> | ||
<Transition type="transition" mode="out-in" name="fade"> | ||
<component :is="leftDrawer.component" v-if="leftDrawer.component" :key="leftDrawer.component.name" /> | ||
</Transition> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
import { markRaw } from 'vue' | ||
import { mapActions, mapState } from 'vuex' | ||
import MainNav from './navigation/MainNav.vue' | ||
export default { | ||
name: 'LeftDrawer', | ||
computed: { | ||
...mapState('ux', ['leftDrawer', 'mainNav']) | ||
}, | ||
mounted () { | ||
this.setLeftDrawer(markRaw(MainNav)) | ||
}, | ||
methods: { | ||
...mapActions('ux', ['setLeftDrawer']) | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.fade-enter-active, | ||
.fade-leave-active { | ||
transition: opacity .1s ease-in; | ||
} | ||
</style> |
Oops, something went wrong.