Commit 55760942 authored by xiongjinke's avatar xiongjinke

修改

parent 38b8a1e3
...@@ -29,8 +29,11 @@ ...@@ -29,8 +29,11 @@
:fixed="item.fixed" :fixed="item.fixed"
:sortable="item.sortable" :sortable="item.sortable"
:resizable="false"> :resizable="false">
<template v-if="item.slotHeader" slot="header">
<slot :name="item.slotName"></slot>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<slot :name="item.prop" :row="item" :index="scope.$index" :data="scope.row.punishReason"></slot> <slot :name="item.prop" :row="scope.row" :index="scope.$index" :data="item"></slot>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -41,7 +44,12 @@ ...@@ -41,7 +44,12 @@
align="left" align="left"
:fixed="item.fixed" :fixed="item.fixed"
:sortable="item.sortable" :sortable="item.sortable"
:resizable="false" /> :resizable="false">
<template v-if="item.slotHeader" slot="header">
<slot :name="item.slotName"></slot>
</template>
</el-table-column>
</template> </template>
</el-table> </el-table>
</div> </div>
...@@ -104,5 +112,7 @@ export default { ...@@ -104,5 +112,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-table__body tr.current-row > td.el-table__cell{
background-color: #ffffff;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment