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",
maxTraceDuration: "Maximum Duration",
minTraceDuration: "Minimum Duration",
legendOptions: "Legend Options",
seconds: "Seconds",
hourTip: "Select Hour",
minuteTip: "Select Minute",

View File

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

View File

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

View File

@ -153,6 +153,10 @@ pre {
margin-left: 5px;
}
.el-switch__label * {
font-size: 12px;
}
.el-drawer__header {
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
limitations under the License. -->
<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>
<span class="label">{{ t("showXAxis") }}</span>
<el-switch
@ -82,8 +91,8 @@ function updateConfig(param: { [key: string]: unknown }) {
<style lang="scss" scoped>
.label {
font-size: 13px;
font-weight: 500;
display: block;
margin-bottom: 5px;
margin-top: 5px;
margin-bottom: -5px;
}
</style>

View File

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