|
| 1 | +<template> |
| 2 | + <div class="page-container"> |
| 3 | + <md-app md-waterfall md-mode="fixed-last"> |
| 4 | + <md-app-toolbar class="md-large md-primary"> |
| 5 | + <div class="md-toolbar-row"> |
| 6 | + <div class="md-toolbar-section-start"> |
| 7 | + <md-button class="md-icon-button" @click="menuVisible = !menuVisible"> |
| 8 | + <md-icon>menu</md-icon> |
| 9 | + </md-button> |
| 10 | + |
| 11 | + <span class="md-title">My Title</span> |
| 12 | + </div> |
| 13 | + |
| 14 | + <div class="md-toolbar-section-end"> |
| 15 | + <md-button class="md-icon-button"> |
| 16 | + <md-icon>more_vert</md-icon> |
| 17 | + </md-button> |
| 18 | + </div> |
| 19 | + </div> |
| 20 | + |
| 21 | + <div class="md-toolbar-row"> |
| 22 | + <md-button>Home</md-button> |
| 23 | + <md-button>Pages</md-button> |
| 24 | + <md-button>Posts</md-button> |
| 25 | + <md-button>Favorites</md-button> |
| 26 | + </div> |
| 27 | + </md-app-toolbar> |
| 28 | + |
| 29 | + <md-app-drawer :md-visible.sync="menuVisible"> |
| 30 | + <md-toolbar class="md-transparent" md-elevation="0">Navigation</md-toolbar> |
| 31 | + |
| 32 | + <md-list> |
| 33 | + <md-list-item> |
| 34 | + <md-icon>move_to_inbox</md-icon> |
| 35 | + <span class="md-list-item-text">Inbox</span> |
| 36 | + </md-list-item> |
| 37 | + |
| 38 | + <md-list-item> |
| 39 | + <md-icon>send</md-icon> |
| 40 | + <span class="md-list-item-text">Sent Mail</span> |
| 41 | + </md-list-item> |
| 42 | + |
| 43 | + <md-list-item> |
| 44 | + <md-icon>delete</md-icon> |
| 45 | + <span class="md-list-item-text">Trash</span> |
| 46 | + </md-list-item> |
| 47 | + |
| 48 | + <md-list-item> |
| 49 | + <md-icon>error</md-icon> |
| 50 | + <span class="md-list-item-text">Spam</span> |
| 51 | + </md-list-item> |
| 52 | + </md-list> |
| 53 | + </md-app-drawer> |
| 54 | + |
| 55 | + <md-app-content> |
| 56 | + <p>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.</p> |
| 57 | + <p>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.</p> |
| 58 | + <p>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.</p> |
| 59 | + <p>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.</p> |
| 60 | + <p>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.</p> |
| 61 | + <p>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.</p> |
| 62 | + <p>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.</p> |
| 63 | + <p>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.</p> |
| 64 | + <p>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.</p> |
| 65 | + <p>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.</p> |
| 66 | + <p>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.</p> |
| 67 | + <p>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.</p> |
| 68 | + <p>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.</p> |
| 69 | + <p>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.</p> |
| 70 | + <p>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.</p> |
| 71 | + </md-app-content> |
| 72 | + </md-app> |
| 73 | + </div> |
| 74 | +</template> |
| 75 | + |
| 76 | +<style lang="scss" scoped> |
| 77 | + .md-app { |
| 78 | + max-height: 400px; |
| 79 | + border: 1px solid rgba(#000, .12); |
| 80 | + } |
| 81 | +
|
| 82 | + // Demo purposes only |
| 83 | + .md-drawer { |
| 84 | + width: 230px; |
| 85 | + max-width: calc(100vw - 125px); |
| 86 | + } |
| 87 | +</style> |
| 88 | + |
| 89 | +<script> |
| 90 | + export default { |
| 91 | + name: 'LastRowFixed', |
| 92 | + data: () => ({ |
| 93 | + menuVisible: false |
| 94 | + }) |
| 95 | + } |
| 96 | +</script> |
0 commit comments