|
|
@@ -9,6 +9,9 @@
|
|
|
width="35" fixed v-if="checkbox">
|
|
|
</el-table-column>
|
|
|
<el-table-column v-for="(col,index) in layout" :key="col.tablecolid" :prop="col.columnname" :label="col.title" :min-width="tool.calcTableColWidth($refs.table,layout,index)" :fixed="fixedName ? fixedName.indexOf(col.columnname)!= -1?'right':false : false">
|
|
|
+ <template :slot="headerOptions ? headerOptions.includes(col.columnname) ? 'header' : '' : ''" slot-scope="scope">
|
|
|
+ <slot name="header" :column="{data:scope.row,columnname:col.columnname}"></slot>
|
|
|
+ </template>
|
|
|
<template slot-scope="scope">
|
|
|
<div class="table-panel">
|
|
|
<!-- 自定义表格显示内容 -->
|
|
|
@@ -33,7 +36,7 @@ export default {
|
|
|
custom:是否启用自定义结构;
|
|
|
opwidth:操作列宽度
|
|
|
*/
|
|
|
- props:['layout','data','custom','height','fixedName','width','checkbox','showSummary'],
|
|
|
+ props:['layout','data','custom','height','fixedName','width','checkbox','showSummary','headerOptions'],
|
|
|
data () {
|
|
|
return {
|
|
|
list:[],
|