Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuan Zhixiang
c-render-vue
Commits
7a50fc91
Commit
7a50fc91
authored
Apr 26, 2024
by
Yuan Zhixiang
Browse files
添加 右键删除上色
parent
d8c63d96
Changes
1
Show whitespace changes
Inline
Side-by-side
src/components/VarUnit.vue
View file @
7a50fc91
...
...
@@ -177,6 +177,13 @@ function highlight_pointer() { // 点击某个地址,使其和对应元素改
}
}
}
function
unhighlight_pointer
()
{
// 点击某个地址,使其和对应元素改变style
if
(
is_data
.
value
)
{
if
(
var_content
.
value
[
2
]
==
'
pointer
'
)
{
pointer_color
.
value
=
-
1
}
}
}
watch
(
current_step
,
()
=>
{
pointer_color
.
value
=
-
1
...
...
@@ -189,7 +196,7 @@ watch(current_step, () => {
<div
class=
"small-box var-name"
>
<span
v-if=
"!is_element"
>
{{
display_name
}}
=
</span>
<div
v-else
class=
"element-index"
>
{{
display_name
}}
<br></div>
<span
:class=
"
{ changed: is_changed, new: is_new, pointer: is_pointer }" @click="highlight_pointer">
<span
:class=
"
{ changed: is_changed, new: is_new, pointer: is_pointer }" @click="highlight_pointer"
@contextmenu.prevent="unhighlight_pointer"
>
{{
display_content
}}
</span>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment