Skip to content

Commit 145afc7

Browse files
committed
feat: 显示文件修改状态
1 parent 952dba2 commit 145afc7

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

frontend/src/App.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<el-tab-pane v-for="item in view" :key="item.path" :name="item.path">
1111
<template #label>
1212
<el-tooltip :content="item.path">
13-
<div>{{ item.path.split('/').pop() }}</div>
13+
<div class="label" :class="item.diff ? 'diff' : ''">{{ item.path.split('/').pop() }}</div>
1414
</el-tooltip>
1515
</template>
1616

@@ -106,6 +106,25 @@ body,
106106
.el-tabs__nav {
107107
border-top: none;
108108
border-radius: 0;
109+
110+
.el-tabs__item {
111+
.label {
112+
&::after {
113+
content: '';
114+
display: inline-block;
115+
width: 8px;
116+
height: 8px;
117+
border-radius: 50%;
118+
margin-left: 4px;
119+
}
120+
121+
&.diff {
122+
&::after {
123+
background-color: var(--el-text-color-placeholder);
124+
}
125+
}
126+
}
127+
}
109128
}
110129
111130
.el-tabs__new-tab {

0 commit comments

Comments
 (0)