refactor(table): 更新表格组件模板语法和优化配置
- 将所有 slot-scope 语法替换为 v-slot 语法以符合 Vue 3 标准 - 移除 CuteDragTableDemo 和 CuteSimpleTableDemo 中的冗余 operateColumn 配置 - 修复 CuteVerticalScrollBarDemo 组件名称错误 - 更新组件演示页面中的组件引用和导入配置 - 移除系统管理模块中过时的属性定义 - 优化表格列的模板渲染方式,提升性能和可维护性
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="name" label="文件名">
|
||||
<template slot-scope="scope">
|
||||
<template v-slot="scope">
|
||||
<el-popover
|
||||
:content="'file/' + scope.row.dateGroup + '/' + scope.row.realName"
|
||||
placement="top-start"
|
||||
@@ -97,10 +97,10 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="path" label="预览图">
|
||||
<template slot-scope="{row}">
|
||||
<template v-slot="scope">
|
||||
<el-image
|
||||
:src=" baseApi + '/file/' + row.dateGroup + '/' + row.realName"
|
||||
:preview-src-list="[baseApi + '/file/' + row.dateGroup + '/' + row.realName]"
|
||||
:src=" baseApi + '/file/' + scope.row.dateGroup + '/' + scope.row.realName"
|
||||
:preview-src-list="[baseApi + '/file/' + scope.row.dateGroup + '/' + scope.row.realName]"
|
||||
fit="contain"
|
||||
lazy
|
||||
class="el-avatar"
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<el-table-column prop="createBy" label="操作人" />
|
||||
<el-table-column prop="createTime" label="创建日期" />
|
||||
<el-table-column label="操作" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<template v-slot="scope">
|
||||
<el-button id="ossFileUrl" type="text" @click="handleCopyFileUrl(scope.row.fileUrl)">复制链接</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
Reference in New Issue
Block a user