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
ffebc5f7
Commit
ffebc5f7
authored
Apr 25, 2024
by
Yuan Zhixiang
Browse files
修改高亮颜色
parent
eaf7dc8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/LineUnit.vue
View file @
ffebc5f7
...
...
@@ -82,6 +82,6 @@ pre {
}
.breakpoint
{
color
:
red
;
color
:
#ff2700
;
}
</
style
>
\ No newline at end of file
src/components/StepUnit.vue
View file @
ffebc5f7
...
...
@@ -14,9 +14,9 @@ const finished = computed(() => { // 已完成
const
css_background_color
=
computed
(()
=>
{
// 获取对应style
if
(
Object
.
values
(
highlight_steps
.
value
).
includes
(
this_step
.
value
))
{
if
(
finished
.
value
)
{
return
'
#ff
b4ab
'
// 已完成 高亮
return
'
#ff
2700
'
// 已完成 高亮
}
else
{
return
'
#ff
dad6
'
// 未完成 高亮
return
'
#ff
937f
'
// 未完成 高亮
}
}
else
{
if
(
finished
.
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