-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comp(MdApp): create a app shell utility to hold drawers
- Loading branch information
1 parent
53a9d98
commit 9d2617e
Showing
20 changed files
with
583 additions
and
251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<example src="./examples/App.vue" /> | ||
|
||
<template> | ||
<page-container centered :title="$t('pages.app.title')"> | ||
<div class="page-container-section"> | ||
<p>The content surfaces that comprise applications are referred to in this spec as material, or sheets of material. The content component is commonly used to resemble a piece of paper. It'll be useful to theme a arbitrary content.</p> | ||
</div> | ||
|
||
<div class="page-container-section"> | ||
<h2>App</h2> | ||
|
||
<code-example title="App Shell" :component="examples['app']" /> | ||
|
||
<api-item title="API - md-app"> | ||
<p>This component do not have any extra option.</p> | ||
</api-item> | ||
</div> | ||
</page-container> | ||
</template> | ||
|
||
<script> | ||
import examples from 'docs-mixins/docsExample' | ||
export default { | ||
name: 'App', | ||
mixins: [examples], | ||
data: () => ({ | ||
}) | ||
} | ||
</script> |
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,46 @@ | ||
<template> | ||
<div class="page-container"> | ||
<md-app> | ||
<md-toolbar class="md-primary"> | ||
<md-button class="md-icon-button" @click="menuVisible = !menuVisible"> | ||
<md-icon>menu</md-icon> | ||
</md-button> | ||
<span class="md-title">Permanent - Full</span> | ||
</md-toolbar> | ||
|
||
<md-drawer md-permanent="full" :md-visible.sync="menuVisible"> | ||
<md-list> | ||
<md-list-item> | ||
<md-icon>move_to_inbox</md-icon> | ||
<span class="md-list-item-text">Inbox</span> | ||
</md-list-item> | ||
</md-list> | ||
</md-drawer> | ||
|
||
<md-content> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error quibusdam, non molestias et! Earum magnam, similique, quo recusandae placeat dicta asperiores modi sint ea repudiandae maxime? Quae non explicabo, neque. | ||
</md-content> | ||
</md-app> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
.md-app { | ||
border: 1px solid rgba(#000, .12); | ||
} | ||
// Demo purposes only | ||
.md-drawer { | ||
width: 230px; | ||
max-width: calc(100vw - 125px); | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
name: 'App', | ||
data: () => ({ | ||
menuVisible: false | ||
}) | ||
} | ||
</script> |
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 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
Oops, something went wrong.