1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00
This commit is contained in:
lana-k
2024-01-06 11:23:23 +01:00
parent 78e9ca2120
commit 42f040975d
7 changed files with 518 additions and 163 deletions

View File

@@ -4,6 +4,7 @@
:disabled="value === 0"
tooltip="First row"
tooltip-position="top-left"
class="first"
@click="$emit('input', 0)"
>
<edge-arrow-icon :disabled="false" />
@@ -12,6 +13,7 @@
:disabled="value === 0"
tooltip="Previous row"
tooltip-position="top-left"
class="prev"
@click="$emit('input', value - 1)"
>
<arrow-icon :disabled="false" />
@@ -20,7 +22,7 @@
:disabled="value === total - 1"
tooltip="Next row"
tooltip-position="top-left"
class="next-last"
class="next"
@click="$emit('input', value + 1)"
>
<arrow-icon :disabled="false" />
@@ -29,7 +31,7 @@
:disabled="value === total - 1"
tooltip="Last row"
tooltip-position="top-left"
class="next-last"
class="last"
@click="$emit('input', total - 1)"
>
<edge-arrow-icon :disabled="false" />
@@ -60,7 +62,8 @@ export default {
display: flex;
}
.record-navigator .next-last {
.record-navigator .next,
.record-navigator .last {
transform: rotate(180deg);
}
</style>

View File

@@ -79,7 +79,8 @@ export default {
}
},
watch: {
currentRowIndex () {
async currentRowIndex () {
await this.$nextTick()
if (this.selectedCellElement) {
const previouslySelected = this.selectedCellElement
this.selectCell(null)

View File

@@ -6,6 +6,7 @@
:key="format.value"
type="button"
:aria-selected="currentFormat === format.value"
:class="format.value"
@click="currentFormat = format.value"
>
{{ format.text }}
@@ -13,6 +14,7 @@
<button
type="button"
class="copy"
@click="copyToClipboard"
>
Copy