Commit 55760942 authored by xiongjinke's avatar xiongjinke

修改

parent 38b8a1e3
......@@ -29,8 +29,11 @@
:fixed="item.fixed"
:sortable="item.sortable"
:resizable="false">
<template v-if="item.slotHeader" slot="header">
<slot :name="item.slotName"></slot>
</template>
<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>
</el-table-column>
<el-table-column
......@@ -41,7 +44,12 @@
align="left"
:fixed="item.fixed"
:sortable="item.sortable"
:resizable="false" />
:resizable="false">
<template v-if="item.slotHeader" slot="header">
<slot :name="item.slotName"></slot>
</template>
</el-table-column>
</template>
</el-table>
</div>
......@@ -104,5 +112,7 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep .el-table__body tr.current-row > td.el-table__cell{
background-color: #ffffff;
}
</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