refactor(table): 更新表格组件模板语法和优化配置
- 将所有 slot-scope 语法替换为 v-slot 语法以符合 Vue 3 标准 - 移除 CuteDragTableDemo 和 CuteSimpleTableDemo 中的冗余 operateColumn 配置 - 修复 CuteVerticalScrollBarDemo 组件名称错误 - 更新组件演示页面中的组件引用和导入配置 - 移除系统管理模块中过时的属性定义 - 优化表格列的模板渲染方式,提升性能和可维护性
This commit is contained in:
@@ -154,12 +154,12 @@
|
||||
<el-table-column :show-overflow-tooltip="true" prop="phone" width="100" label="手机号" />
|
||||
<el-table-column :show-overflow-tooltip="true" width="135" prop="email" label="邮箱" />
|
||||
<el-table-column :show-overflow-tooltip="true" prop="dept" label="部门">
|
||||
<template slot-scope="scope">
|
||||
<template v-slot="scope">
|
||||
<div>{{ scope.row.dept.name }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" align="center" prop="enabled">
|
||||
<template slot-scope="scope">
|
||||
<template v-slot="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.enabled"
|
||||
:disabled="user.id === scope.row.id"
|
||||
@@ -177,7 +177,7 @@
|
||||
align="center"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<template v-slot="scope">
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
|
||||
Reference in New Issue
Block a user