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
f1692c68
Commit
f1692c68
authored
Apr 16, 2024
by
Yuan Zhixiang
Browse files
data类型的element的index改为在数据上方
parent
027fca44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/VarUnit.vue
View file @
f1692c68
...
@@ -150,9 +150,13 @@ watch(current_step, () => {
...
@@ -150,9 +150,13 @@ watch(current_step, () => {
<
template
>
<
template
>
<div
v-if=
"is_data"
class=
"big-box"
:class=
"
{ 'element-box': is_element }">
<div
v-if=
"is_data"
class=
"big-box"
:class=
"
{ 'element-box': is_element }">
<div
class=
"small-box var-name"
>
{{
display_name
}}
<span
v-if=
"!is_element"
>
=
</span><span
v-else
>
:
</span><span
<div
class=
"small-box var-name"
>
:class=
"
{ changed: is_changed, new: is_new, pointer: is_pointer }" @click="highlight_pointer">
{{
display_content
<span
v-if=
"!is_element"
>
{{
display_name
}}
=
</span>
}}
</span></div>
<div
v-else
class=
"element-index"
>
{{
display_name
}}
<br></div>
<span
:class=
"
{ changed: is_changed, new: is_new, pointer: is_pointer }" @click="highlight_pointer">
{{
display_content
}}
</span>
</div>
</div>
</div>
<div
v-if=
"is_array"
class=
"big-box"
>
<div
v-if=
"is_array"
class=
"big-box"
>
<div
class=
"array-box"
>
<div
class=
"array-box"
>
...
@@ -228,4 +232,9 @@ watch(current_step, () => {
...
@@ -228,4 +232,9 @@ watch(current_step, () => {
.var-name
{
.var-name
{
text-decoration
:
v-bind
(
css_var_color
);
text-decoration
:
v-bind
(
css_var_color
);
}
}
.element-index
{
font-size
:
0.4rem
;
}
</
style
>
</
style
>
\ No newline at end of file
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