|
|
|
@ -35,6 +35,8 @@ const appStore = useAppStore()
|
|
|
|
|
|
|
|
|
|
|
|
const tagsViewIcon = computed(() => appStore.getTagsViewIcon)
|
|
|
|
const tagsViewIcon = computed(() => appStore.getTagsViewIcon)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isDark = computed(() => appStore.getIsDark)
|
|
|
|
|
|
|
|
|
|
|
|
// 初始化tag
|
|
|
|
// 初始化tag
|
|
|
|
const initTags = () => {
|
|
|
|
const initTags = () => {
|
|
|
|
affixTagArr.value = filterAffixTags(unref(routers))
|
|
|
|
affixTagArr.value = filterAffixTags(unref(routers))
|
|
|
|
@ -270,7 +272,8 @@ watch(
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
icon="ep:d-arrow-left"
|
|
|
|
icon="ep:d-arrow-left"
|
|
|
|
:color="appStore.getIsDark ? 'var(--el-text-color-regular)' : '#333'"
|
|
|
|
color="var(--el-text-color-placeholder)"
|
|
|
|
|
|
|
|
:hover-color="isDark ? '#fff' : 'var(--el-color-black)'"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div class="overflow-hidden flex-1">
|
|
|
|
<div class="overflow-hidden flex-1">
|
|
|
|
@ -368,6 +371,7 @@ watch(
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
:class="`${prefixCls}__item--close`"
|
|
|
|
:class="`${prefixCls}__item--close`"
|
|
|
|
color="#333"
|
|
|
|
color="#333"
|
|
|
|
|
|
|
|
hover-color="var(--el-color-white)"
|
|
|
|
icon="ant-design:close-outlined"
|
|
|
|
icon="ant-design:close-outlined"
|
|
|
|
:size="12"
|
|
|
|
:size="12"
|
|
|
|
@click.prevent.stop="closeSelectedTag(item)"
|
|
|
|
@click.prevent.stop="closeSelectedTag(item)"
|
|
|
|
@ -386,7 +390,8 @@ watch(
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
icon="ep:d-arrow-right"
|
|
|
|
icon="ep:d-arrow-right"
|
|
|
|
:color="appStore.getIsDark ? 'var(--el-text-color-regular)' : '#333'"
|
|
|
|
color="var(--el-text-color-placeholder)"
|
|
|
|
|
|
|
|
:hover-color="isDark ? '#fff' : 'var(--el-color-black)'"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
@ -396,7 +401,8 @@ watch(
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
icon="ant-design:reload-outlined"
|
|
|
|
icon="ant-design:reload-outlined"
|
|
|
|
:color="appStore.getIsDark ? 'var(--el-text-color-regular)' : '#333'"
|
|
|
|
color="var(--el-text-color-placeholder)"
|
|
|
|
|
|
|
|
:hover-color="isDark ? '#fff' : 'var(--el-color-black)'"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<ContextMenu
|
|
|
|
<ContextMenu
|
|
|
|
@ -459,7 +465,8 @@ watch(
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
icon="ant-design:setting-outlined"
|
|
|
|
icon="ant-design:setting-outlined"
|
|
|
|
:color="appStore.getIsDark ? 'var(--el-text-color-regular)' : '#333'"
|
|
|
|
color="var(--el-text-color-placeholder)"
|
|
|
|
|
|
|
|
:hover-color="isDark ? '#fff' : 'var(--el-color-black)'"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</ContextMenu>
|
|
|
|
</ContextMenu>
|
|
|
|
@ -476,7 +483,7 @@ watch(
|
|
|
|
|
|
|
|
|
|
|
|
&__tool {
|
|
|
|
&__tool {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
&:after {
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
top: 1px;
|
|
|
|
left: 0;
|
|
|
|
left: 0;
|
|
|
|
@ -487,27 +494,17 @@ watch(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&--first {
|
|
|
|
&--first {
|
|
|
|
&:after {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
top: 1px;
|
|
|
|
left: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
height: calc(~'100% - 1px');
|
|
|
|
height: calc(~'100% - 1px');
|
|
|
|
|
|
|
|
border-left: none;
|
|
|
|
border-right: 1px solid var(--el-border-color);
|
|
|
|
border-right: 1px solid var(--el-border-color);
|
|
|
|
content: '';
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
:deep(span),
|
|
|
|
|
|
|
|
:deep(i),
|
|
|
|
|
|
|
|
:deep(svg) {
|
|
|
|
|
|
|
|
color: var(--el-color-black) !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
&__item {
|
|
|
|
@ -546,7 +543,7 @@ watch(
|
|
|
|
background-color: var(--el-color-primary);
|
|
|
|
background-color: var(--el-color-primary);
|
|
|
|
border: 1px solid var(--el-color-primary);
|
|
|
|
border: 1px solid var(--el-color-primary);
|
|
|
|
.@{prefix-cls}__item--close {
|
|
|
|
.@{prefix-cls}__item--close {
|
|
|
|
:deep(span) {
|
|
|
|
:deep(svg) {
|
|
|
|
color: var(--el-color-white) !important;
|
|
|
|
color: var(--el-color-white) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -556,14 +553,6 @@ watch(
|
|
|
|
.dark {
|
|
|
|
.dark {
|
|
|
|
.@{prefix-cls} {
|
|
|
|
.@{prefix-cls} {
|
|
|
|
&__tool {
|
|
|
|
&__tool {
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
:deep(span),
|
|
|
|
|
|
|
|
:deep(i),
|
|
|
|
|
|
|
|
:deep(svg) {
|
|
|
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&--first {
|
|
|
|
&--first {
|
|
|
|
&:after {
|
|
|
|
&:after {
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
@ -586,7 +575,7 @@ watch(
|
|
|
|
background-color: var(--el-color-primary);
|
|
|
|
background-color: var(--el-color-primary);
|
|
|
|
border: 1px solid var(--el-color-primary);
|
|
|
|
border: 1px solid var(--el-color-primary);
|
|
|
|
.@{prefix-cls}__item--close {
|
|
|
|
.@{prefix-cls}__item--close {
|
|
|
|
:deep(span) {
|
|
|
|
:deep(svg) {
|
|
|
|
color: var(--el-color-white) !important;
|
|
|
|
color: var(--el-color-white) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|