left-tab-menu
v1.0.1
Published
Left tab menu component by Vue.
Downloads
1
Readme
left-tab-menu
Left tab menu component by Vue. Must specify the height of the outer container where the component is located.
Install
# install
npm install --save left-tab-menu
预览
##use
<template>
<div id="app">
<left-tab-menu :menuList="menulist"></left-tab-menu>
</div>
</template>
<script>
import leftTabMenu from './myPlugin/leftTabMenu'; // 引入
import menuList from './menuList'; // 引入
export default {
name: 'app',
components: {
leftTabMenu
},
data () {
return {
menulist: menuList
}
}
}
</script>
<style lang="scss">
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
display: flex;
flex-direction: column;
position: absolute;
right: 0;
left: 0;
height: 100%;
}
</style>