Commit f1692c68 authored by Yuan Zhixiang's avatar Yuan Zhixiang
Browse files

data类型的element的index改为在数据上方

parent 027fca44
...@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment