Commit fa80b713 by Jaxon

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

1 parent 702b1da4
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<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">
...@@ -25,24 +25,27 @@ export default { ...@@ -25,24 +25,27 @@ export default {
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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!