mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [tabs] optimize new icon style (#6327)
This commit is contained in:
@@ -18,7 +18,6 @@ const handleClick = (tab: string, event: Event) => {
|
||||
<style>
|
||||
.demo-tabs > .el-tabs__content {
|
||||
padding: 32px;
|
||||
background-color: #f4f5f7;
|
||||
color: #6b778c;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -23,7 +23,6 @@ const handleClick = (tab: string, event: Event) => {
|
||||
<style>
|
||||
.demo-tabs > .el-tabs__content {
|
||||
padding: 32px;
|
||||
background-color: #f4f5f7;
|
||||
color: #6b778c;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<el-tabs type="border-card" class="demo-tabs">
|
||||
<el-tab-pane>
|
||||
<template #label>
|
||||
<span>
|
||||
<el-icon><calendar /></el-icon>Route
|
||||
<span class="custom-tabs-label">
|
||||
<el-icon><calendar /></el-icon>
|
||||
<span>Route</span>
|
||||
</span>
|
||||
</template>
|
||||
Route
|
||||
@@ -20,9 +21,15 @@ import { Calendar } from '@element-plus/icons-vue'
|
||||
<style>
|
||||
.demo-tabs > .el-tabs__content {
|
||||
padding: 32px;
|
||||
background-color: #f4f5f7;
|
||||
color: #6b778c;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.demo-tabs .custom-tabs-label .el-icon {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.demo-tabs .custom-tabs-label span {
|
||||
vertical-align: middle;
|
||||
margin-left: 4px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -69,7 +69,6 @@ const removeTab = (targetName: string) => {
|
||||
<style>
|
||||
.demo-tabs > .el-tabs__content {
|
||||
padding: 32px;
|
||||
background-color: #f4f5f7;
|
||||
color: #6b778c;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -65,7 +65,6 @@ const handleTabsEdit = (targetName: string, action: 'remove' | 'add') => {
|
||||
<style>
|
||||
.demo-tabs > .el-tabs__content {
|
||||
padding: 32px;
|
||||
background-color: #f4f5f7;
|
||||
color: #6b778c;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -21,7 +21,6 @@ const tabPosition = ref('left')
|
||||
<style>
|
||||
.demo-tabs > .el-tabs__content {
|
||||
padding: 32px;
|
||||
background-color: #f4f5f7;
|
||||
color: #6b778c;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -21,16 +21,19 @@
|
||||
list-style: none;
|
||||
}
|
||||
@include e(new-tab) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
float: right;
|
||||
border: 1px solid #d3dce6;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
line-height: 18px;
|
||||
margin: 10px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
line-height: 20px;
|
||||
margin: 10px 0 10px 10px;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #d3dce6;
|
||||
color: var(--el-text-color-primary);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user