Table: add size

This commit is contained in:
Leopoldthecoder
2017-10-25 11:58:58 +08:00
committed by 杨奕
parent 0d9204dd89
commit 333a010d3b
15 changed files with 105 additions and 55 deletions

View File

@@ -300,9 +300,9 @@
tableRowClassName(row, index) {
if (index === 1) {
return 'info-row';
return 'warning-row';
} else if (index === 3) {
return 'positive-row';
return 'success-row';
}
return '';
},
@@ -347,12 +347,12 @@
</script>
<style>
.el-table .info-row {
background: #c9e5f5;
.el-table .warning-row {
background: oldlace;
}
.el-table .positive-row {
background: #e2f0e4;
.el-table .success-row {
background: #f0f9eb;
}
.demo-table .name-wrapper {
@@ -570,12 +570,12 @@
</template>
<style>
.el-table .info-row {
background: #c9e5f5;
.el-table .warning-row {
background: oldlace;
}
.el-table .positive-row {
background: #e2f0e4;
.el-table .success-row {
background: #f0f9eb;
}
</style>
@@ -584,9 +584,9 @@
methods: {
tableRowClassName(row, index) {
if (index === 1) {
return 'info-row';
return 'warning-row';
} else if (index === 3) {
return 'positive-row';
return 'success-row';
}
return '';
}
@@ -1916,6 +1916,7 @@
| max-height | Table 的最大高度 | string/number | — | — |
| stripe | 是否为斑马纹 table | boolean | — | false |
| border | 是否带有纵向边框 | boolean | — | false |
| size | Table 的尺寸 | string | medium / small / mini | — |
| fit | 列的宽度是否自撑开 | boolean | — | true |
| show-header | 是否显示表头 | boolean | — | true |
| highlight-current-row | 是否要高亮当前行 | boolean | — | false |