Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
fix:Solve the problem of the height of the hash list table
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter-ji committed Mar 8, 2022
1 parent b2e613b commit 9da67a1
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 14 deletions.
12 changes: 5 additions & 7 deletions src/views/newKeyValue/hashType.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div class="value-content-container list-type-container">

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand All @@ -21,10 +23,12 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="searchState.isSearching ? searchState.values : state.values"
v-loading="state.loading"
height="100%"
height="700"
size="mini" border stripe @selection-change="handleSelectionChange"
@cell-dblclick="edit"
style="width: 100%;">
Expand Down Expand Up @@ -185,9 +189,3 @@ onMounted(() => {
addRow()
})
</script>

<style>
.value-content-container {
height: calc(100vh - 160px);
}
</style>
4 changes: 4 additions & 0 deletions src/views/newKeyValue/listType.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div class="list-type-container">

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand Down Expand Up @@ -29,6 +31,8 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="searchState.isSearching ? searchState.values : state.values"
v-loading="state.loading"
Expand Down
4 changes: 4 additions & 0 deletions src/views/newKeyValue/setType.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div class="list-type-container">

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand All @@ -20,6 +22,8 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="state.values"
height="700"
Expand Down
4 changes: 4 additions & 0 deletions src/views/newKeyValue/zsetType.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div class="list-type-container">

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand All @@ -21,6 +23,8 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="state.values"
v-loading="state.loading"
Expand Down
14 changes: 7 additions & 7 deletions src/views/valueContent/hashType.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<div class="value-content-container list-type-container">

<!-- top-tab -->
<top-tab :key-name="props.keyName" key-type="hash" class="mb-4"/>

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand Down Expand Up @@ -34,10 +38,12 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="searchState.isSearching ? searchState.values : state.values"
v-loading="state.loading"
height="100%"
height="700"
size="mini" border stripe @selection-change="handleSelectionChange"
@cell-dblclick="edit"
style="width: 100%;">
Expand Down Expand Up @@ -246,9 +252,3 @@ watch(props, () => {
state.loading = false
})
</script>

<style>
.value-content-container {
height: calc(100vh - 160px);
}
</style>
6 changes: 6 additions & 0 deletions src/views/valueContent/listType.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<div class="list-type-container">

<!-- top-tab -->
<top-tab :key-name="props.keyName" key-type="list" class="mb-4"/>

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand Down Expand Up @@ -40,6 +44,8 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="searchState.isSearching ? searchState.values : state.values"
v-loading="state.loading"
Expand Down
6 changes: 6 additions & 0 deletions src/views/valueContent/setType.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<div class="list-type-container">

<!-- top-tab -->
<top-tab :key-name="props.keyName" key-type="set" class="mb-4"/>

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand Down Expand Up @@ -33,6 +37,8 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="searchState.isSearching ? searchState.values : state.values"
height="700"
Expand Down
6 changes: 6 additions & 0 deletions src/views/valueContent/zsetType.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<div class="list-type-container">

<!-- top-tab -->
<top-tab :key-name="props.keyName" key-type="hash" class="mb-4"/>

<!-- tools -->
<div class="w-full flex flex-row justify-between mb-4">
<div class="w-1/5 flex flex-row items-center">
<div class="text-sm mr-1">TTL(s)</div>
Expand Down Expand Up @@ -33,6 +37,8 @@
</el-tooltip>
</div>
</div>

<!-- table -->
<el-table
:data="searchState.isSearching ? searchState.values : state.values"
v-loading="state.loading"
Expand Down

0 comments on commit 9da67a1

Please sign in to comment.