fix: polish the endpoint list graph (#155)

This commit is contained in:
Fine0830
2022-09-08 21:46:37 +08:00
committed by GitHub
parent 49bc349064
commit 5da441ff9a
7 changed files with 27 additions and 27 deletions

View File

@@ -17,17 +17,17 @@ limitations under the License. -->
<div class="search">
<el-input
v-model="searchText"
placeholder="Please input endpoint name"
size="small"
placeholder="Search for more endpoints"
@change="searchList"
class="inputs"
>
<template #append>
<el-button size="small" @click="searchList">
<Icon size="sm" iconName="search" />
<el-button @click="searchList" class="btn">
<Icon size="middle" iconName="search" />
</el-button>
</template>
</el-input>
<span class="ml-5 tips">{{ t("endpointTips") }}</span>
</div>
<div class="list">
<el-table v-loading="chartLoading" :data="endpoints" style="width: 100%">
@@ -56,6 +56,7 @@ limitations under the License. -->
import { ref, watch, computed } from "vue";
import { useSelectorStore } from "@/store/modules/selectors";
import { ElMessage } from "element-plus";
import { useI18n } from "vue-i18n";
import type { PropType } from "vue";
import { EndpointListConfig } from "@/types/dashboard";
import { Endpoint } from "@/types/selector";
@@ -92,6 +93,7 @@ const props = defineProps({
intervalTime: { type: Array as PropType<string[]>, default: () => [] },
});
const { t } = useI18n();
const selectorStore = useSelectorStore();
const dashboardStore = useDashboardStore();
const chartLoading = ref<boolean>(false);
@@ -191,11 +193,7 @@ watch(
<style lang="scss" scoped>
@import "./style.scss";
.chart {
height: 60px;
}
.inputs {
width: 300px;
.tips {
color: rgba(255, 0, 0, 0.5);
}
</style>

View File

@@ -18,12 +18,11 @@ limitations under the License. -->
<el-input
v-model="searchText"
placeholder="Please input instance name"
size="small"
@change="searchList"
class="inputs"
>
<template #append>
<el-button size="small" @click="searchList">
<el-button class="btn" @click="searchList">
<Icon size="sm" iconName="search" />
</el-button>
</template>
@@ -243,14 +242,6 @@ watch(
<style lang="scss" scoped>
@import "./style.scss";
.chart {
height: 60px;
}
.inputs {
width: 300px;
}
.attributes {
max-height: 400px;
overflow: auto;

View File

@@ -18,12 +18,11 @@ limitations under the License. -->
<el-input
v-model="searchText"
placeholder="Please input service name"
size="small"
@change="searchList"
class="inputs mt-5"
>
<template #append>
<el-button size="small" @click="searchList">
<el-button class="btn" @click="searchList">
<Icon size="sm" iconName="search" />
</el-button>
</template>
@@ -286,8 +285,4 @@ watch(
</script>
<style lang="scss" scoped>
@import "./style.scss";
.inputs {
width: 300px;
}
</style>

View File

@@ -23,6 +23,7 @@
.list {
margin-top: 10px;
margin-bottom: 10px;
height: calc(100% - 90px);
}
.pagination {
@@ -40,9 +41,21 @@
}
.search {
text-align: right;
margin-top: 5px;
}
.input-with-search {
width: 400px;
}
.btn {
margin-top: -12px;
}
.chart {
height: 60px;
}
.inputs {
width: 300px;
}