|
@@ -1,13 +1,17 @@
|
|
|
<!--标签页选项-->
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-tabs v-model="editableTabsValue" type="card" closable style="margin-left: 10px" @tab-remove="removeTab" @tab-click="clickTab">
|
|
|
+ <el-tabs v-model="editableTabsValue" type="card" closable style="margin-left: 10px;" @tab-remove="removeTab" @tab-click="clickTab">
|
|
|
<el-tab-pane
|
|
|
:key="item.name"
|
|
|
v-for="item in editableTabs"
|
|
|
:label="item.title"
|
|
|
:name="item.name"
|
|
|
+ style="padding-left: 20px"
|
|
|
>
|
|
|
+ <template #label>
|
|
|
+ <span> {{item.title}}</span>
|
|
|
+ </template>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
@@ -37,7 +41,7 @@
|
|
|
set(val){
|
|
|
this.$store.state.editableTabs=val;
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
methods : {
|
|
|
removeTab(targetName) {
|
|
@@ -116,5 +120,9 @@
|
|
|
/* 选中状态下的样式 */
|
|
|
color: white !important;
|
|
|
background-color: #409EFF !important;
|
|
|
+ background-image: url("../assets/white.png");
|
|
|
+ background-size: 14px;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: 8px 13px;
|
|
|
}
|
|
|
</style>
|