Skip to content

Commit 09dfeda

Browse files
feat: document
1 parent 491b06a commit 09dfeda

File tree

6 files changed

+515
-475
lines changed

6 files changed

+515
-475
lines changed

ui/src/components/common-list/index.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const props = withDefaults(
3232
{
3333
data: () => [],
3434
defaultActive: '',
35-
valueKey: 'id'
36-
}
35+
valueKey: 'id',
36+
},
3737
)
3838
3939
const current = ref<Number | String>(0)
@@ -43,7 +43,7 @@ watch(
4343
(val) => {
4444
current.value = val
4545
},
46-
{ immediate: true }
46+
{ immediate: true },
4747
)
4848
4949
const emit = defineEmits(['click', 'mouseenter', 'mouseleave'])
@@ -64,7 +64,7 @@ function clearCurrent() {
6464
current.value = 0
6565
}
6666
defineExpose({
67-
clearCurrent
67+
clearCurrent,
6868
})
6969
</script>
7070
<style lang="scss" scoped>
@@ -88,6 +88,12 @@ defineExpose({
8888
border-radius: 4px;
8989
background: var(--app-text-color-light-1);
9090
}
91+
&.is-active {
92+
&:hover {
93+
color: var(--el-color-primary);
94+
background: var(--el-color-primary-light-9);
95+
}
96+
}
9197
}
9298
}
9399
</style>

ui/src/layout/components/sidebar/index.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ const activeMenu = computed(() => {
4848
.el-menu {
4949
height: 100%;
5050
border: none;
51+
background: none;
52+
.el-menu-item {
53+
&:hover {
54+
background: var(--app-text-color-light-1);
55+
color: var(--el-menu-text-color);
56+
cursor: pointer;
57+
}
58+
}
5159
}
5260
}
5361
</style>

0 commit comments

Comments
 (0)