mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
#115 tests
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -79,7 +79,8 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
currentRowIndex () {
|
||||
async currentRowIndex () {
|
||||
await this.$nextTick()
|
||||
if (this.selectedCellElement) {
|
||||
const previouslySelected = this.selectedCellElement
|
||||
this.selectCell(null)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user