|
@@ -11,7 +11,8 @@
|
|
|
:style="{
|
|
:style="{
|
|
|
flex: item.width ? `0 0 ${item.width}rpx` : '1',
|
|
flex: item.width ? `0 0 ${item.width}rpx` : '1',
|
|
|
textAlign: item.align || 'left',
|
|
textAlign: item.align || 'left',
|
|
|
- fontSzie: `${fontSize}rpx`
|
|
|
|
|
|
|
+ fontSzie: `${headerFontSize}rpx`,
|
|
|
|
|
+ margin: `0 ${gutter}rpx`
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<!-- <slot :name="item.dataIndex" > -->
|
|
<!-- <slot :name="item.dataIndex" > -->
|
|
@@ -27,7 +28,8 @@
|
|
|
:style="{
|
|
:style="{
|
|
|
flex: column.width ? `0 0 ${column.width}rpx` : '1',
|
|
flex: column.width ? `0 0 ${column.width}rpx` : '1',
|
|
|
textAlign: column.align || 'left',
|
|
textAlign: column.align || 'left',
|
|
|
- fontSzie: `${fontSize}rpx`
|
|
|
|
|
|
|
+ fontSzie: `${fontSize}rpx`,
|
|
|
|
|
+ margin: `0 ${gutter}rpx`
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<!-- {{ item[column.dataIndex] || "" }} -->
|
|
<!-- {{ item[column.dataIndex] || "" }} -->
|
|
@@ -58,8 +60,16 @@ export default {
|
|
|
default: "#ffffff"
|
|
default: "#ffffff"
|
|
|
},
|
|
},
|
|
|
fontSize: {
|
|
fontSize: {
|
|
|
- type: String,
|
|
|
|
|
|
|
+ type: Number,
|
|
|
|
|
+ default: 24
|
|
|
|
|
+ },
|
|
|
|
|
+ headerFontSize: {
|
|
|
|
|
+ type: Number,
|
|
|
default: 24
|
|
default: 24
|
|
|
|
|
+ },
|
|
|
|
|
+ gutter: {
|
|
|
|
|
+ type: Number,
|
|
|
|
|
+ default: 10
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -90,6 +100,7 @@ export default {
|
|
|
box-shadow: 0px 1px 0px 0px #eeeeee;
|
|
box-shadow: 0px 1px 0px 0px #eeeeee;
|
|
|
color: #999999;
|
|
color: #999999;
|
|
|
.table-th {
|
|
.table-th {
|
|
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.table-tr {
|
|
.table-tr {
|