This commit is contained in:
Fine 2025-02-20 11:34:24 +08:00
parent b589e5021c
commit 7008c14a2a
11 changed files with 20 additions and 38 deletions

View File

@ -118,8 +118,9 @@ html.dark {
color: var(--sw-drawer-header); color: var(--sw-drawer-header);
} }
.el-table tr { .el-table {
background-color: var(--el-table-tr-bg-color); --el-table-tr-bg-color: var(--theme-background);
--el-table-header-bg-color: var(--theme-background);
} }
.el-popper.is-light { .el-popper.is-light {
@ -131,27 +132,6 @@ html.dark {
--el-switch-off-color: #aaa; --el-switch-off-color: #aaa;
} }
.el-table__body-wrapper tr td.el-table-fixed-column--left,
.el-table__body-wrapper tr td.el-table-fixed-column--right,
.el-table__body-wrapper tr th.el-table-fixed-column--left,
.el-table__body-wrapper tr th.el-table-fixed-column--right,
.el-table__footer-wrapper tr td.el-table-fixed-column--left,
.el-table__footer-wrapper tr td.el-table-fixed-column--right,
.el-table__footer-wrapper tr th.el-table-fixed-column--left,
.el-table__footer-wrapper tr th.el-table-fixed-column--right,
.el-table__header-wrapper tr td.el-table-fixed-column--left,
.el-table__header-wrapper tr td.el-table-fixed-column--right,
.el-table__header-wrapper tr th.el-table-fixed-column--left,
.el-table__header-wrapper tr th.el-table-fixed-column--right {
background-color: var(--sw-table-col);
}
.el-table.is-scrolling-none th.el-table-fixed-column--left,
.el-table.is-scrolling-none th.el-table-fixed-column--right,
.el-table th.el-table__cell {
background-color: var(--sw-table-col);
}
$tool-icon-btn-bg: var(--sw-icon-btn-bg); $tool-icon-btn-bg: var(--sw-icon-btn-bg);
$tool-icon-btn-color: var(--sw-icon-btn-color); $tool-icon-btn-color: var(--sw-icon-btn-color);
$popper-hover-bg-color: var(--popper-hover-bg); $popper-hover-bg-color: var(--popper-hover-bg);

View File

@ -38,7 +38,7 @@ limitations under the License. -->
:total="total" :total="total"
@current-change="changePage" @current-change="changePage"
:pager-count="5" :pager-count="5"
small size="small"
:style=" :style="
appStore.theme === Themes.Light appStore.theme === Themes.Light
? `--el-pagination-bg-color: #f0f2f5; --el-pagination-button-disabled-bg-color: #f0f2f5;` ? `--el-pagination-bg-color: #f0f2f5; --el-pagination-button-disabled-bg-color: #f0f2f5;`

View File

@ -16,7 +16,7 @@ limitations under the License. -->
<div class="dashboard-tool flex-h"> <div class="dashboard-tool flex-h">
<div :class="isRelation ? 'flex-v' : 'flex-h'" class="tool-selectors"> <div :class="isRelation ? 'flex-v' : 'flex-h'" class="tool-selectors">
<div class="flex-h"> <div class="flex-h">
<div class="selectors-item" v-if="key !== 10"> <div class="flex-h selectors-item" v-if="key !== 10">
<span class="label">$Service</span> <span class="label">$Service</span>
<Selector <Selector
v-model="states.currentService" v-model="states.currentService"
@ -30,7 +30,7 @@ limitations under the License. -->
<Icon size="small" iconName="hierarchy_topology" /> <Icon size="small" iconName="hierarchy_topology" />
</span> </span>
</div> </div>
<div class="selectors-item" v-if="key === 3 || key === 4 || key === 5 || key === 6"> <div class="flex-h selectors-item" v-if="key === 3 || key === 4 || key === 5 || key === 6">
<span class="label"> <span class="label">
{{ ["EndpointRelation", "Endpoint"].includes(dashboardStore.entity) ? "$Endpoint" : "$ServiceInstance" }} {{ ["EndpointRelation", "Endpoint"].includes(dashboardStore.entity) ? "$Endpoint" : "$ServiceInstance" }}
</span> </span>
@ -52,7 +52,7 @@ limitations under the License. -->
<Icon size="small" iconName="hierarchy_topology" /> <Icon size="small" iconName="hierarchy_topology" />
</span> </span>
</div> </div>
<div class="selectors-item" v-if="key === 5 || key === 6"> <div class="flex-h selectors-item" v-if="key === 5 || key === 6">
<span class="label"> $Process </span> <span class="label"> $Process </span>
<Selector <Selector
v-model="states.currentProcess" v-model="states.currentProcess"
@ -65,7 +65,7 @@ limitations under the License. -->
</div> </div>
</div> </div>
<div class="flex-h" :class="isRelation ? 'relation' : ''"> <div class="flex-h" :class="isRelation ? 'relation' : ''">
<div class="selectors-item" v-if="key === 2 || key === 4 || key === 5"> <div class="flex-h selectors-item" v-if="key === 2 || key === 4 || key === 5">
<span class="label">$DestinationService</span> <span class="label">$DestinationService</span>
<Selector <Selector
v-model="states.currentDestService" v-model="states.currentDestService"
@ -76,7 +76,7 @@ limitations under the License. -->
class="selectors" class="selectors"
/> />
</div> </div>
<div class="selectors-item" v-if="key === 4 || key === 5"> <div class="flex-h selectors-item" v-if="key === 4 || key === 5">
<span class="label"> <span class="label">
{{ dashboardStore.entity === "EndpointRelation" ? "$DestinationEndpoint" : "$DestinationServiceInstance" }} {{ dashboardStore.entity === "EndpointRelation" ? "$DestinationEndpoint" : "$DestinationServiceInstance" }}
</span> </span>
@ -91,7 +91,7 @@ limitations under the License. -->
:isRemote="dashboardStore.entity === 'EndpointRelation'" :isRemote="dashboardStore.entity === 'EndpointRelation'"
/> />
</div> </div>
<div class="selectors-item" v-if="key === 5"> <div class="flex-h selectors-item" v-if="key === 5">
<span class="label"> $DestinationProcess </span> <span class="label"> $DestinationProcess </span>
<Selector <Selector
v-model="states.currentDestProcess" v-model="states.currentDestProcess"

View File

@ -64,7 +64,7 @@ limitations under the License. -->
</el-table> </el-table>
<el-pagination <el-pagination
class="mt-10" class="mt-10"
small size="small"
layout="prev, pager, next" layout="prev, pager, next"
:page-size="pageSize" :page-size="pageSize"
:total="continousProfilingStore.instances.length" :total="continousProfilingStore.instances.length"

View File

@ -76,7 +76,7 @@ limitations under the License. -->
</el-table> </el-table>
<el-pagination <el-pagination
class="pagination" class="pagination"
small size="small"
layout="prev, pager, next" layout="prev, pager, next"
:page-size="pageSize" :page-size="pageSize"
:total="processes.length" :total="processes.length"

View File

@ -54,7 +54,7 @@ limitations under the License. -->
:total="total" :total="total"
@current-change="updatePage" @current-change="updatePage"
:pager-count="5" :pager-count="5"
small size="small"
/> />
<el-button class="search-btn" size="small" type="primary" @click="queryEvents"> <el-button class="search-btn" size="small" type="primary" @click="queryEvents">
{{ t("search") }} {{ t("search") }}

View File

@ -21,7 +21,7 @@ limitations under the License. -->
<el-pagination <el-pagination
v-model="logStore.conditions.paging.pageNum" v-model="logStore.conditions.paging.pageNum"
:page-size="pageSize" :page-size="pageSize"
:small="true" size="small"
layout="prev, pager, next" layout="prev, pager, next"
:pager-count="5" :pager-count="5"
:total="total" :total="total"

View File

@ -98,7 +98,7 @@ limitations under the License. -->
<div class="setting" v-if="showSetting && dashboardStore.editMode"> <div class="setting" v-if="showSetting && dashboardStore.editMode">
<Settings @update="updateSettings" @updateNodes="freshNodes" /> <Settings @update="updateSettings" @updateNodes="freshNodes" />
</div> </div>
<div class="tool"> <div class="tool flex-h">
<span v-show="graphConfig.showDepth"> <span v-show="graphConfig.showDepth">
<span class="label">{{ t("currentDepth") }}</span> <span class="label">{{ t("currentDepth") }}</span>
<Selector class="inputs" :value="depth" :options="DepthList" @change="changeDepth" /> <Selector class="inputs" :value="depth" :options="DepthList" @change="changeDepth" />

View File

@ -71,7 +71,7 @@ limitations under the License. -->
<el-pagination <el-pagination
v-model="traceStore.conditions.paging.pageNum" v-model="traceStore.conditions.paging.pageNum"
:page-size="pageSize" :page-size="pageSize"
:small="true" size="small"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
@current-change="updatePage" @current-change="updatePage"

View File

@ -119,7 +119,7 @@ limitations under the License. -->
<el-pagination <el-pagination
v-model="pageNum" v-model="pageNum"
:page-size="pageSize" :page-size="pageSize"
:small="true" size="small"
layout="prev, pager, next" layout="prev, pager, next"
:pager-count="5" :pager-count="5"
:total="total" :total="total"

View File

@ -25,6 +25,8 @@
}, },
"noImplicitThis": false, "noImplicitThis": false,
"preserveValueImports": false, "preserveValueImports": false,
"importsNotUsedAsValues": "remove" "importsNotUsedAsValues": "remove",
"target": "esnext",
"lib": ["es2019", "dom"]
} }
} }