Commit fa80b713 by Jaxon

style(d2-table-header): 统一缩进并调整样式语言

1 parent 702b1da4
......@@ -7,60 +7,63 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-row class="table-header">
<el-col :span="leftSpan" :class="titleClassName">
<span v-text="title" class="table-header-title" />
<slot name="left" />
</el-col>
<el-col :span="24 - leftSpan">
<slot />
</el-col>
</el-row>
<el-row class="table-header">
<el-col :span="leftSpan" :class="titleClassName">
<span class="table-header-title" v-text="title" />
<slot name="left" />
</el-col>
<el-col :span="24 - leftSpan">
<slot />
</el-col>
</el-row>
</template>
<script>
export default {
name: "D2TebleHeader",
props: {
title: {
type: String,
required: false,
default: ""
},
titleClassName: {
type: String,
default: ""
},
leftSpan: {
type: Number,
required: false,
default: 12
}
}
}
name: "D2TebleHeader",
props: {
title: {
type: String,
required: false,
default: "",
},
titleClassName: {
type: String,
default: "",
},
leftSpan: {
type: Number,
required: false,
default: 12,
},
},
};
</script>
<style>
<style lang="scss">
.table-header {
font-size: 14px;
font-size: 14px;
> .el-col {
align-items: center;
}
}
.table-header-title {
color: #111111;
font-size: 16px;
color: #111111;
font-size: 16px;
}
.table-header .el-col-12 {
/* min-width: 50%; */
height: 32px;
/* min-width: 50%; */
height: 32px;
}
.table-header .grid {
margin-right: 20px;
margin-right: 20px;
}
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!