Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(VNavigationDrawer): move nested list to list component
- Loading branch information
1 parent
72c563c
commit cd69a51
Showing
6 changed files
with
97 additions
and
125 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 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,92 @@ | ||
<template> | ||
<v-card | ||
class="mx-auto" | ||
width="300" | ||
> | ||
<v-list> | ||
<v-list-item> | ||
<v-list-item-icon> | ||
<v-icon>home</v-icon> | ||
</v-list-item-icon> | ||
|
||
<v-list-item-title>Home</v-list-item-title> | ||
</v-list-item> | ||
|
||
<v-list-group | ||
prepend-icon="account_circle" | ||
value="true" | ||
> | ||
<template v-slot:activator> | ||
<v-list-item> | ||
<v-list-item-title>Users</v-list-item-title> | ||
</v-list-item> | ||
</template> | ||
|
||
<v-list-group | ||
no-action | ||
sub-group | ||
value="true" | ||
> | ||
<template v-slot:activator> | ||
<v-list-item> | ||
<v-list-item-content> | ||
<v-list-item-title>Admin</v-list-item-title> | ||
</v-list-item-content> | ||
</v-list-item> | ||
</template> | ||
|
||
<v-list-item | ||
v-for="(admin, i) in admins" | ||
:key="i" | ||
link | ||
> | ||
<v-list-item-title v-text="admin[0]"></v-list-item-title> | ||
<v-list-item-icon> | ||
<v-icon v-text="admin[1]"></v-icon> | ||
</v-list-item-icon> | ||
</v-list-item> | ||
</v-list-group> | ||
|
||
<v-list-group | ||
sub-group | ||
no-action | ||
> | ||
<template v-slot:activator> | ||
<v-list-item> | ||
<v-list-item-content> | ||
<v-list-item-title>Actions</v-list-item-title> | ||
</v-list-item-content> | ||
</v-list-item> | ||
</template> | ||
<v-list-item | ||
v-for="(crud, i) in cruds" | ||
:key="i" | ||
@click="" | ||
> | ||
<v-list-item-title v-text="crud[0]"></v-list-item-title> | ||
<v-list-item-action> | ||
<v-icon v-text="crud[1]"></v-icon> | ||
</v-list-item-action> | ||
</v-list-item> | ||
</v-list-group> | ||
</v-list-group> | ||
</v-list> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
admins: [ | ||
['Management', 'people_outline'], | ||
['Settings', 'settings'], | ||
], | ||
cruds: [ | ||
['Create', 'add'], | ||
['Read', 'insert_drive_file'], | ||
['Update', 'update'], | ||
['Delete', 'delete'], | ||
], | ||
}), | ||
} | ||
</script> |
120 changes: 0 additions & 120 deletions
120
packages/docs/src/examples/navigation-drawers/intermediate/nested.vue
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
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