fix style

This commit is contained in:
Fine 2022-11-01 15:53:38 +08:00
parent 09051e916b
commit 643f461eba
6 changed files with 20 additions and 3 deletions

View File

@ -167,6 +167,7 @@ const msg = {
enableRelatedTrace: "Enable Related Trace", enableRelatedTrace: "Enable Related Trace",
maxTraceDuration: "Maximum Duration", maxTraceDuration: "Maximum Duration",
minTraceDuration: "Minimum Duration", minTraceDuration: "Minimum Duration",
legendOptions: "Legend Options",
seconds: "Seconds", seconds: "Seconds",
hourTip: "Select Hour", hourTip: "Select Hour",
minuteTip: "Select Minute", minuteTip: "Select Minute",

View File

@ -171,6 +171,7 @@ const msg = {
queryConditions: "Condiciones de consulta", queryConditions: "Condiciones de consulta",
maxTraceDuration: "Duración máxima", maxTraceDuration: "Duración máxima",
minTraceDuration: "Duración mínima", minTraceDuration: "Duración mínima",
legendOptions: "Opciones de leyenda",
second: "s", second: "s",
yearSuffix: "Año", yearSuffix: "Año",
monthsHead: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic", monthsHead: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic",

View File

@ -164,6 +164,7 @@ const msg = {
queryConditions: "查询条件", queryConditions: "查询条件",
maxTraceDuration: "最大持续时间", maxTraceDuration: "最大持续时间",
minTraceDuration: "最小持续时间", minTraceDuration: "最小持续时间",
legendOptions: "图例选项",
seconds: "秒", seconds: "秒",
hourTip: "选择小时", hourTip: "选择小时",
minuteTip: "选择分钟", minuteTip: "选择分钟",

View File

@ -153,6 +153,10 @@ pre {
margin-left: 5px; margin-left: 5px;
} }
.el-switch__label * {
font-size: 12px;
}
.el-drawer__header { .el-drawer__header {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -13,6 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<div>
<span class="label">{{ t("legendOptions") }}</span>
<el-switch
v-model="graph.showLegend"
active-text="Yes"
inactive-text="No"
@change="updateConfig({ showLegend: graph.showLegend })"
/>
</div>
<div> <div>
<span class="label">{{ t("showXAxis") }}</span> <span class="label">{{ t("showXAxis") }}</span>
<el-switch <el-switch
@ -82,8 +91,8 @@ function updateConfig(param: { [key: string]: unknown }) {
<style lang="scss" scoped> <style lang="scss" scoped>
.label { .label {
font-size: 13px; font-size: 13px;
font-weight: 500;
display: block; display: block;
margin-bottom: 5px; margin-top: 5px;
margin-bottom: -5px;
} }
</style> </style>

View File

@ -44,7 +44,8 @@ const props = defineProps({
LineConfig & { LineConfig & {
filters?: Filters; filters?: Filters;
relatedTrace?: RelatedTrace; relatedTrace?: RelatedTrace;
} & { id?: string } id?: string;
}
>, >,
default: () => ({ default: () => ({
step: false, step: false,