| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <div id="LeftNav" class="row">
- <!-- 左导航组件 -->
- <div id="left" class="col-sm-12 col-xs-12 hidden-lg hidden-md">
- <ul class="left-container wow bounceInLeft">
- <p>{{ title }}</p>
- <li v-for="(item,index) in list" :key="index">
- <router-link :to=item.path>{{ item.name }}</router-link>
- </li>
- </ul>
- </div>
- </div>
- </template>
- <script>
- import {WOW} from 'wowjs'
- export default {
- name: "LeftNav",
- props: ['list', 'title'],
- mounted() {
- var wow = new WOW();
- wow.init();
- },
- };
- </script>
- <style scoped>
- #left {
- margin: 24px 0;
- }
- .left-container {
- width: 60%;
- margin: 0 auto;
- border: 1px solid #474747;
- border-radius: 5px;
- }
- .left-container > p {
- text-align: center;
- line-height: 36px;
- padding: 0;
- margin: 0;
- background: #474747;
- color: #fff;
- font-size: 13px;
- font-weight: bold;
- }
- .left-container > li {
- font-size: 12px;
- text-align: center;
- height: 36px;
- line-height: 36px;
- margin: 0;
- border-top: 1px solid #f5f5f5;
- }
- .left-container > li > a {
- text-decoration: none;
- }
- .left-container > li:hover {
- background: #f5f5f5;
- text-decoration: underline;
- text-decoration-color: #1e73be;
- }
- </style>
|