28 lines
498 B
Vue
28 lines
498 B
Vue
<template>
|
|
|
|
<div id='MENU'>
|
|
|
|
<div v-for='(item, index) in gstore.menu_item' class='menu-item-wrapper'>
|
|
|
|
<div :class="(index == gstore.menu_item_active) ? 'menu-item active' : 'menu-item'" @click='navigate(index)' :data-theme='item.theme'>
|
|
<span>{{ item.label }}</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
export default {
|
|
name: 'MENU',
|
|
data(){ return { gstore: gstore.data }; },
|
|
methods: {
|
|
navigate(uri){
|
|
this.gstore.func.nav(this.$router, uri);
|
|
}
|
|
}
|
|
}
|
|
</script> |