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
16876e0c
Commit
16876e0c
authored
Apr 13, 2024
by
Yuan Zhixiang
Browse files
添加地址指向数据显示
parent
e2d8fd71
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/StackView.vue
View file @
16876e0c
...
...
@@ -108,7 +108,7 @@ const highlight_addresses = ref({})
watch
(
current_step
,
()
=>
{
highlight_addresses
.
value
=
{}
})
provide
(
'
stack_view
'
,{
highlight_addresses
,
check_changed
})
provide
(
'
stack_view
'
,{
highlight_addresses
,
check_changed
,
current_var_map
})
// function click() {
...
...
src/components/VarUnit.vue
View file @
16876e0c
...
...
@@ -2,7 +2,7 @@
import
{
computed
,
inject
,
ref
,
watch
}
from
'
vue
'
;
const
{
current_step
}
=
inject
(
'
app
'
)
const
{
check_changed
,
highlight_addresses
}
=
inject
(
'
stack_view
'
)
const
{
check_changed
,
highlight_addresses
,
current_var_map
}
=
inject
(
'
stack_view
'
)
const
props
=
defineProps
([
'
var_name
'
,
'
var_content
'
,
'
changed
'
])
const
var_name
=
computed
(()
=>
{
...
...
@@ -55,9 +55,15 @@ const address = computed(() => {
const
display_content
=
computed
(()
=>
{
if
(
is_data
.
value
)
{
let
v
=
var_content
.
value
[
3
]
if
(
is_pointer
.
value
){
if
(
v
in
current_var_map
.
value
){
v
=
v
+
'
→
'
+
current_var_map
.
value
[
v
]
return
v
}
}
return
v
!=
'
<UNINITIALIZED>
'
?
v
:
'
?
'
}
return
'
todo
'
return
'
error
'
})
const
array_elements
=
computed
(()
=>
{
if
(
is_array
.
value
)
{
...
...
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