Making checkbox toggle collumns

This commit is contained in:
Peter Olu 2022-06-05 22:57:17 +01:00
parent c37b7ee0f5
commit 615ba79185

View File

@ -17,7 +17,7 @@ limitations under the License. -->
<div v-if="currentSearchTerm === 'column'" class="flex-h items-center mr-5">
<!-- <p style="margin-right: 10px">Select visible columns</p> -->
<el-dropdown class="dark" :hide-on-click="false">
<span class="el-dropdown-link">
<span class="cursor-pointer">
Select visible columns<el-icon class="el-icon--right"
><arrow-down
/></el-icon>
@ -29,15 +29,17 @@ limitations under the License. -->
style="width: 100%"
class="flex-h items-center justify-between"
>
<span style="margin-right: 10px">Show All</span>
<el-checkbox :checked="showAllColumns" size="large" />
<span style="margin-right: 10px">Show All</span>
</div>
</el-dropdown-item>
<el-dropdown-item
v-for="item in logStore.serviceLogColumn"
:key="item.value"
>
<el-checkbox v-model="item.isVisible" :label="item.value" fill="success" />
<el-checkbox class="custom-checkbox" v-model="item.isVisible">
<span>{{ item.value }}</span>
</el-checkbox>
<!-- <div
style="width: 100%"
class="flex-h items-center justify-between"
@ -632,6 +634,14 @@ watch(
display: flex;
align-items: center;
}
.cursor-pointer {
cursor: pointer;
}
.custom-checkbox .el-checkbox__input.is-checked + .el-checkbox__label,
.custom-checkbox .el-checkbox__label {
color: var(--spp-white) !important;
}
// .log-wrapper {
// width: 600px;
// padding-left: 40px;