标签及样式调整

master
milo 2022-04-02 15:25:09 +08:00
parent 0217700c2c
commit 137a003eb0
2 changed files with 7 additions and 4 deletions

View File

@ -4,15 +4,15 @@
<li class="tags-li" v-for="(item,index) in tagsList" :class="{'active': isActive(item.path)}" :key="index"> <li class="tags-li" v-for="(item,index) in tagsList" :class="{'active': isActive(item.path)}" :key="index">
<router-link :to="item.path" class="tags-li-title">{{item.title}}</router-link> <router-link :to="item.path" class="tags-li-title">{{item.title}}</router-link>
<span class="tags-li-icon" @click="closeTags(index)"> <span class="tags-li-icon" @click="closeTags(index)">
<i class="el-icon-close"></i> <el-icon class="el-icon-close"><close /></el-icon>
</span> </span>
</li> </li>
</ul> </ul>
<div class="tags-close-box"> <div class="tags-close-box">
<el-dropdown @command="handleTags"> <el-dropdown @command="handleTags">
<el-button size="mini" type="primary"> <el-button size="small" type="primary">
标签选项 标签选项
<i class="el-icon-arrow-down el-icon--right"></i> <el-icon class="el-icon-arrow-down el-icon--right"><arrow-down /></el-icon>
</el-button> </el-button>
<template #dropdown> <template #dropdown>
<el-dropdown-menu size="small"> <el-dropdown-menu size="small">
@ -25,7 +25,7 @@
</div> </div>
</template> </template>
<script> <script lang="ts">
import { computed } from "vue"; import { computed } from "vue";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router"; import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";

View File

@ -51,4 +51,7 @@ export default {
.el-header{ .el-header{
--el-header-padding:0 --el-header-padding:0
} }
.el-main{
--el-main-padding:0
}
</style> </style>