-
-
- No cell selected to view
+
+
+ Run your query and get results here
+
+
+ Fetching results...
+
+
+ No rows retrieved according to your query
+
+
+
+
+
-
+
+
+
+
-
-
-
-
- Run your query and get results here
-
-
-
- Fetching results...
-
-
- No rows retrieved according to your query
-
-
-
-
-
-
-
@@ -151,7 +135,7 @@ import cIo from '@/lib/utils/clipboardIo'
import time from '@/lib/utils/time'
import loadingDialog from '@/components/Common/LoadingDialog'
import events from '@/lib/utils/events'
-import ValueViewer from './ValueViewer'
+import ValueViewer from '@/components/ValueViewer'
import Record from './Record/index.vue'
export default {
@@ -172,7 +156,6 @@ export default {
Splitpanes
},
props: {
- tab: Object,
result: Object,
isGettingResults: Boolean,
error: Object,
@@ -194,20 +177,6 @@ export default {
showLoadingDialog: false
}
},
- computed: {
- resultSetTeleportTarget() {
- if (!this.enableTeleport) {
- return undefined
- }
- const base = `#${
- this.viewValuePanelVisible
- ? 'run-result-left-pane'
- : 'run-result-result-set'
- }`
- const tabIdPostfix = `-${this.tab.id}`
- return base + tabIdPostfix
- }
- },
watch: {
result() {
this.defaultSelectedCell = null
@@ -332,19 +301,12 @@ export default {
width: 0;
}
-.result-set-container,
-.result-set-container > div {
+.result-set-container {
position: relative;
height: 100%;
width: 100%;
box-sizing: border-box;
}
-.value-viewer-container {
- height: 100%;
- width: 100%;
- background-color: var(--color-white);
- position: relative;
-}
.table-preview {
position: absolute;
diff --git a/src/components/Tab.vue b/src/components/Tab.vue
index c7c4a70..51c3714 100644
--- a/src/components/Tab.vue
+++ b/src/components/Tab.vue
@@ -37,7 +37,6 @@
:disabled="!enableTeleport"
>
-
@@ -65,7 +73,9 @@ export default {
Logs
},
props: {
- cellValue: [String, Number, Uint8Array]
+ cellValue: [String, Number, Uint8Array],
+ empty: Boolean,
+ emptyMessage: String
},
data() {
return {
@@ -153,8 +163,10 @@ export default {
.value-viewer {
background-color: var(--color-white);
height: 100%;
+ width: 100%;
display: flex;
flex-direction: column;
+ position: relative;
}
.value-viewer-toolbar {
display: flex;
@@ -219,4 +231,14 @@ export default {
width: 1px;
background: var(--color-text-base);
}
+
+.empty-message {
+ position: absolute;
+ top: 40%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ color: var(--color-text-base);
+ font-size: 13px;
+ text-align: center;
+}