Commit fa80b713 by Jaxon

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

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