This repository has been archived by the owner on Nov 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 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,72 @@ | ||
<template> | ||
<m-layout-grid-inner> | ||
<m-layout-grid-cell :span="12"> | ||
<m-typo-title>Normal</m-typo-title> | ||
<m-layout-grid-inner> | ||
<m-layout-grid-cell :span="4"> | ||
<m-menu-anchor> | ||
<m-button raised interactive @click="isMenuOpen=true">open</m-button> | ||
<m-menu v-model="isMenuOpen"> | ||
<m-list> | ||
<m-list-item interactive> | ||
Entry 1 | ||
</m-list-item> | ||
<m-list-divider/> | ||
<m-list-item interactive> | ||
Entry 2 | ||
</m-list-item> | ||
</m-list> | ||
</m-menu> | ||
</m-menu-anchor> | ||
</m-layout-grid-cell> | ||
</m-layout-grid-inner> | ||
</m-layout-grid-cell> | ||
<m-layout-grid-cell :span="12"> | ||
<m-typo-title>QuickOpen</m-typo-title> | ||
<m-layout-grid-inner> | ||
<m-layout-grid-cell :span="4"> | ||
<m-menu-anchor> | ||
<m-button raised interactive @click="isMenu2Open=true">open</m-button> | ||
<m-menu quickOpen v-model="isMenu2Open"> | ||
<m-list> | ||
<m-list-item interactive> | ||
Entry 1 | ||
</m-list-item> | ||
<m-list-divider/> | ||
<m-list-item interactive> | ||
Entry 2 | ||
</m-list-item> | ||
</m-list> | ||
</m-menu> | ||
</m-menu-anchor> | ||
</m-layout-grid-cell> | ||
</m-layout-grid-inner> | ||
</m-layout-grid-cell> | ||
</m-layout-grid-inner> | ||
</template> | ||
|
||
<script> | ||
import Vue from 'vue' | ||
import Button from '../../dist/button' | ||
import List from '../../dist/list' | ||
import Menu from '../../dist/menu' | ||
Vue.use(Button) | ||
Vue.use(List) | ||
Vue.use(Menu) | ||
export default { | ||
data () { | ||
return { | ||
isMenuOpen: false, | ||
isMenu2Open: false | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import "../../dist/button/styles"; | ||
@import "../../dist/list/styles"; | ||
@import "../../dist/menu/styles"; | ||
</style> |