...
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<template v-for="(column, key, index) of columns">
|
<template v-for="(column, key, index) of columns">
|
||||||
<el-table-column v-if="column && column.visible" :label="column.label" :key="key" :prop="key" :width="column.width" :min-width="column.minWidth || '100px'" align="left">
|
<el-table-column v-if="column && column.visible" :label="column.label" :key="key" :prop="key" :width="column.width" :min-width="column.minWidth || '100px'" align="left">
|
||||||
<!-- 插槽 自定义列表表头数据格式 -->
|
<!-- 插槽 自定义列表表头数据格式 -->
|
||||||
<template #header v-if="column && column.slotHeaderName">
|
<template #header v-if="column && column.slotHeaderName">
|
||||||
<span>{{column.label}}</span>
|
<span>{{column.label}}</span>
|
||||||
<el-tooltip trigger="click" effect="dark" placement="top">
|
<el-tooltip trigger="click" effect="dark" placement="top">
|
||||||
@@ -34,7 +34,6 @@
|
|||||||
<i class="el-icon-question"></i>
|
<i class="el-icon-question"></i>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- 单元格内容:自定义tooltip支持换行 -->
|
<!-- 单元格内容:自定义tooltip支持换行 -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<!-- 1. 有自定义插槽时,插槽内容仍用原逻辑,但包裹tooltip -->
|
<!-- 1. 有自定义插槽时,插槽内容仍用原逻辑,但包裹tooltip -->
|
||||||
@@ -69,28 +68,8 @@
|
|||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<!-- <!– 插槽 自定义列表表头数据格式 –>-->
|
|
||||||
<!-- <template #header v-if="column && column.slotHeaderName">-->
|
|
||||||
<!-- <span>{{column.label}}</span>-->
|
|
||||||
<!-- <el-tooltip trigger="click" effect="dark" placement="top">-->
|
|
||||||
<!-- <template #content>{{column.slotHeaderName}}</template>-->
|
|
||||||
<!-- <i class="el-icon-question"></i>-->
|
|
||||||
<!-- </el-tooltip>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- <!– 插槽 自定义列表内数据格式 –>-->
|
|
||||||
<!-- <template #default="scope" v-if="column && column.slotName">-->
|
|
||||||
<!-- <!– 传递行数据、行索引等信息到父组件的插槽 –>-->
|
|
||||||
<!-- <slot-->
|
|
||||||
<!-- :name="column.slotName"-->
|
|
||||||
<!-- :valueKey="key"-->
|
|
||||||
<!-- :row="scope.row"-->
|
|
||||||
<!-- :rowIndex="scope.$index"-->
|
|
||||||
<!-- :column="column"-->
|
|
||||||
<!-- :scope="scope"-->
|
|
||||||
<!-- ></slot>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
<!-- 表格行内按钮 -->
|
<!-- 表格行内按钮 -->
|
||||||
<el-table-column v-if="config && config.tableButton && config.tableButton.line" :width="config.tableButton.line.length * 70 + `px`" label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
|
<el-table-column v-if="config && config.tableButton && config.tableButton.line" :width="config.tableButton.line.length * 70 + `px`" label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|||||||
Reference in New Issue
Block a user