refactor(web-ele): 移除未使用的工具函数

- 删除了 utils/index.ts 中未使用的树处理和类型判断函数
- 更新了相关文件中的导入路径
- 优化了代码结构,提高了代码的可读性和维护性
This commit is contained in:
吃货
2025-07-13 09:08:12 +08:00
parent 2464bf8e8f
commit 8f8f3481ff
8 changed files with 6 additions and 566 deletions

View File

@@ -14,8 +14,8 @@
padding: 0 4px 2px;
font-size: 0.9em;
line-height: 0.9;
vertical-align: 2px;
color: hsl(var(--secondary-foreground));
vertical-align: 2px;
cursor: pointer;
user-select: none;
background-color: hsl(var(--secondary));

View File

@@ -1072,8 +1072,8 @@ watch(
box-sizing: border-box;
width: 100%;
height: 100%;
outline: 1px dashed #d6d6d6;
content: '';
outline: 1px dashed #d6d6d6;
}
.resize-stick {

View File

@@ -132,8 +132,8 @@ function toggleTheme(event: MouseEvent) {
&__sun {
@apply fill-foreground/90 stroke-none;
transform-origin: center center;
transition: transform 1.6s cubic-bezier(0.25, 0, 0.2, 1);
transform-origin: center center;
&:hover > svg > & {
@apply fill-foreground/90;
@@ -143,10 +143,10 @@ function toggleTheme(event: MouseEvent) {
&__sun-beams {
@apply stroke-foreground/90 stroke-[2px];
transform-origin: center center;
transition:
transform 1.6s cubic-bezier(0.5, 1.5, 0.75, 1.25),
opacity 0.6s cubic-bezier(0.25, 0, 0.3, 1);
transform-origin: center center;
&:hover > svg > & {
@apply stroke-foreground;