feat(hints): visualize completed rows and columns

This commit is contained in:
2026-02-19 06:24:56 +01:00
parent 4138c99e20
commit 43629d72a4
6 changed files with 116 additions and 5 deletions

View File

@@ -16,6 +16,10 @@ defineProps({
activeIndex: {
type: Number,
default: null
},
completedLines: {
type: Array,
default: () => []
}
});
</script>
@@ -34,6 +38,7 @@ defineProps({
class="hint-group"
:class="{
'is-active': index === activeIndex,
'is-completed': completedLines[index],
'guide-right': orientation === 'col' && (index + 1) % 5 === 0 && index !== size - 1,
'guide-bottom': orientation === 'row' && (index + 1) % 5 === 0 && index !== size - 1
}"
@@ -81,6 +86,15 @@ defineProps({
height: 100%;
}
.hint-group.is-completed {
opacity: 0.5;
background-color: var(--hint-bg);
}
.hint-group.is-completed .hint-num {
color: var(--text-muted);
}
.col .hint-group {
flex-direction: column;
padding: 4px 2px;