mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: add box shadow to pwd node
This commit is contained in:
1 parent
54592831ee
commit
6c70a6eaea
2 files changed
+17
-3
No files matched your search
@@ -3,6 +3,8 @@ import { onMounted, ref } from 'vue'
|
||||
import FileNode from './FileNode.vue'
|
||||
import socket from '../utils/socket.js'
|
||||
|
||||
const pwd = ref('/home/rudeus')
|
||||
|
||||
const graph = ref({
|
||||
path: '/',
|
||||
name: '/',
|
||||
@@ -66,7 +68,7 @@ onMounted(() => {
|
||||
<div class="tree w-max h-max">
|
||||
<ul>
|
||||
<li>
|
||||
<FileNode :node="graph" />
|
||||
<FileNode :node="graph" :pwd="pwd" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -175,4 +177,8 @@ ul.discovered,
|
||||
li.discovered {
|
||||
border-color: #94a0b4;
|
||||
}
|
||||
|
||||
a.pwd {
|
||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* 水平偏移、垂直偏移、模糊半徑、顏色 */
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user