Commit cfe0ac0b by 李长胜

增加设置表格高度

1 parent bbbc711d
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
:row-key="tableParams.mutiSelectUniqueKey || ''" :row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading" v-loading="loading"
:border="border" :border="border"
:height="height"
:highlight-current-row="true" :highlight-current-row="true"
:stripe="true" :stripe="true"
@sort-change="sortChange" @sort-change="sortChange"
...@@ -133,6 +134,9 @@ export default { ...@@ -133,6 +134,9 @@ export default {
type: String, type: String,
default: 'medium' default: 'medium'
}, },
height:{
type:Number
},
noDataImg:{ noDataImg:{
type:String, type:String,
default:'' default:''
...@@ -364,13 +368,13 @@ export default { ...@@ -364,13 +368,13 @@ export default {
padding-left: 14px!important; padding-left: 14px!important;
padding-right: 14px!important; padding-right: 14px!important;
} }
.glsx-table .emptyBg .noDataImg{ .glsx-table .emptyBg {
display: inline-block; display: inline-block;
margin-top: 150px; /* margin-top: 150px; */
height: 100%; height: 100%;
} }
.glsx-table .emptyBg p{ .glsx-table .emptyBg div{
margin-top: -20px; margin: -20px 0 10px;
height: 100%; height: 100%;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!