|
@@ -1,13 +1,13 @@
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
methods: {
|
|
methods: {
|
|
- handleopen(key, keyPath) {
|
|
|
|
|
|
+ handleOpen(key, keyPath) {
|
|
console.log(key, keyPath);
|
|
console.log(key, keyPath);
|
|
},
|
|
},
|
|
- handleclose(key, keyPath) {
|
|
|
|
|
|
+ handleClose(key, keyPath) {
|
|
console.log(key, keyPath);
|
|
console.log(key, keyPath);
|
|
},
|
|
},
|
|
- handleselect(key, keyPath) {
|
|
|
|
|
|
+ handleSelect(key, keyPath) {
|
|
console.log(key, keyPath);
|
|
console.log(key, keyPath);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -24,7 +24,7 @@ Top bar NavMenu can be used in a variety of scenarios.
|
|
|
|
|
|
::: demo
|
|
::: demo
|
|
```html
|
|
```html
|
|
-<el-menu theme="dark" default-active="1" class="el-menu-demo" mode="horizontal" @select="handleselect">
|
|
|
|
|
|
+<el-menu theme="dark" default-active="1" class="el-menu-demo" mode="horizontal" @select="handleSelect">
|
|
<el-menu-item index="1">Processing Center</el-menu-item>
|
|
<el-menu-item index="1">Processing Center</el-menu-item>
|
|
<el-submenu index="2">
|
|
<el-submenu index="2">
|
|
<template slot="title">Workspace</template>
|
|
<template slot="title">Workspace</template>
|
|
@@ -35,7 +35,7 @@ Top bar NavMenu can be used in a variety of scenarios.
|
|
<el-menu-item index="3">Orders</el-menu-item>
|
|
<el-menu-item index="3">Orders</el-menu-item>
|
|
</el-menu>
|
|
</el-menu>
|
|
<div class="line"></div>
|
|
<div class="line"></div>
|
|
-<el-menu default-active="1" class="el-menu-demo" mode="horizontal" @select="handleselect">
|
|
|
|
|
|
+<el-menu default-active="1" class="el-menu-demo" mode="horizontal" @select="handleSelect">
|
|
<el-menu-item index="1">Processing Center</el-menu-item>
|
|
<el-menu-item index="1">Processing Center</el-menu-item>
|
|
<el-submenu index="2">
|
|
<el-submenu index="2">
|
|
<template slot="title">Workspace</template>
|
|
<template slot="title">Workspace</template>
|
|
@@ -45,8 +45,17 @@ Top bar NavMenu can be used in a variety of scenarios.
|
|
</el-submenu>
|
|
</el-submenu>
|
|
<el-menu-item index="3">Orders </el-menu-item>
|
|
<el-menu-item index="3">Orders </el-menu-item>
|
|
</el-menu>
|
|
</el-menu>
|
|
-```
|
|
|
|
|
|
|
|
|
|
+<script>
|
|
|
|
+ export default {
|
|
|
|
+ methods: {
|
|
|
|
+ handleSelect(key, keyPath) {
|
|
|
|
+ console.log(key, keyPath);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+```
|
|
:::
|
|
:::
|
|
|
|
|
|
### Side bar
|
|
### Side bar
|
|
@@ -58,7 +67,7 @@ Vertical NavMenu with sub-menus.
|
|
<el-row class="tac">
|
|
<el-row class="tac">
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<h5>With icons</h5>
|
|
<h5>With icons</h5>
|
|
- <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleopen" @close="handleclose">
|
|
|
|
|
|
+ <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose">
|
|
<el-submenu index="1">
|
|
<el-submenu index="1">
|
|
<template slot="title"><i class="el-icon-message"></i>Navigator One</template>
|
|
<template slot="title"><i class="el-icon-message"></i>Navigator One</template>
|
|
<el-menu-item-group title="Group One">
|
|
<el-menu-item-group title="Group One">
|
|
@@ -75,7 +84,7 @@ Vertical NavMenu with sub-menus.
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<h5>Without icons</h5>
|
|
<h5>Without icons</h5>
|
|
- <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleopen" @close="handleclose" theme="dark">
|
|
|
|
|
|
+ <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" theme="dark">
|
|
<el-submenu index="1">
|
|
<el-submenu index="1">
|
|
<template slot="title">Navigator One</template>
|
|
<template slot="title">Navigator One</template>
|
|
<el-menu-item-group title="Group One">
|
|
<el-menu-item-group title="Group One">
|
|
@@ -114,6 +123,19 @@ Vertical NavMenu with sub-menus.
|
|
</el-menu>
|
|
</el-menu>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ export default {
|
|
|
|
+ methods: {
|
|
|
|
+ handleOpen(key, keyPath) {
|
|
|
|
+ console.log(key, keyPath);
|
|
|
|
+ },
|
|
|
|
+ handleClose(key, keyPath) {
|
|
|
|
+ console.log(key, keyPath);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
```
|
|
```
|
|
:::
|
|
:::
|
|
|
|
|