Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion style/web/components/tree/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
background-color: @tree-node-bg-active-color;
}

&::selection {
&:not(:has(input)):not(:has(textarea)):not(:has([contenteditable]))::selection {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has 应该需要比较高版本的浏览器吧?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Collaborator Author

@RylanBot RylanBot Sep 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那干脆移除整个 ::selection 的样式?
不太理解为什么没有禁用复制,但让 Tree 的文本被选中时背景是透明的 🤔

background-color: transparent;
}
}
Expand Down