Browse Source

fix(ant-design-v): table v-slot:headerCell deprecated error

master
wangxiang 2 years ago
parent
commit
5d12061714
  1. 6
      src/views/common/push/pushApplication/index.vue
  2. 6
      src/views/monitor/operLog/index.vue
  3. 6
      src/views/monitor/token/index.vue
  4. 6
      src/views/system/client/index.vue
  5. 6
      src/views/system/dept/index.vue
  6. 6
      src/views/system/dict/DictDataTable.vue
  7. 6
      src/views/system/dict/index.vue
  8. 6
      src/views/system/file/index.vue
  9. 6
      src/views/system/menu/index.vue
  10. 6
      src/views/system/region/index.vue
  11. 6
      src/views/system/role/index.vue
  12. 6
      src/views/system/tenant/index.vue
  13. 6
      src/views/system/user/index.vue

6
src/views/common/push/pushApplication/index.vue

@ -20,7 +20,8 @@ @@ -20,7 +20,8 @@
@click="handleDel()"
>删除应用</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -41,6 +42,7 @@ @@ -41,6 +42,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<!--弹出窗体区域-->
<ApplicationModal @register="registerModal" @success="handleRefreshTable"/>
@ -103,7 +105,7 @@ @@ -103,7 +105,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
// slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/monitor/operLog/index.vue

@ -17,7 +17,8 @@ @@ -17,7 +17,8 @@
@click="handleCleanOperLog()"
>清空日志</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -29,6 +30,7 @@ @@ -29,6 +30,7 @@
}]"
/>
</template>
</template>
</BasicTable>
</div>
</template>
@ -81,7 +83,7 @@ @@ -81,7 +83,7 @@
width: 120,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
// slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/monitor/token/index.vue

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
<template>
<div>
<BasicTable @register="registerTable">
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -13,6 +14,7 @@ @@ -13,6 +14,7 @@
}]"
/>
</template>
</template>
</BasicTable>
</div>
</template>
@ -41,7 +43,7 @@ @@ -41,7 +43,7 @@
width: 120,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
}
});

6
src/views/system/client/index.vue

@ -23,7 +23,8 @@ @@ -23,7 +23,8 @@
@click="handleDel()"
>删除客户端</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -41,6 +42,7 @@ @@ -41,6 +42,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<!--弹出窗体区域-->
<ClientModal @register="registerModal" @success="handleRefreshTable"/>
@ -101,7 +103,7 @@ @@ -101,7 +103,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/system/dept/index.vue

@ -6,7 +6,8 @@ @@ -6,7 +6,8 @@
<a-button type="default" @click="expandAll">展开全部</a-button>
<a-button type="default" @click="collapseAll">折叠全部</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -34,6 +35,7 @@ @@ -34,6 +35,7 @@
]"
/>
</template>
</template>
</BasicTable>
<DeptModal @register="registerModal" @success="handleRefreshTable"/>
</div>
@ -82,7 +84,7 @@ @@ -82,7 +84,7 @@
width: 250,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
afterFetch: result => listToTree(result, { id: 'deptId' }),

6
src/views/system/dict/DictDataTable.vue

@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
@click="handleDel()"
>删除字典数据</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -53,6 +54,7 @@ @@ -53,6 +54,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<DictDataModal @register="registerModal" @success="handleRefreshTable"/>
</PageWrapper>
@ -116,7 +118,7 @@ @@ -116,7 +118,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/system/dict/index.vue

@ -30,7 +30,8 @@ @@ -30,7 +30,8 @@
@click="handleDel()"
>删除字典</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -48,6 +49,7 @@ @@ -48,6 +49,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<DictDataTable ref="dictSubRef" class="w-2/4 xl:w-2/4"/>
<!--弹出窗体区域-->
@ -112,7 +114,7 @@ @@ -112,7 +114,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/system/file/index.vue

@ -24,7 +24,8 @@ @@ -24,7 +24,8 @@
@click="handleDel()"
>删除</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -42,6 +43,7 @@ @@ -42,6 +43,7 @@
}]"
/>
</template>
</template>
</BasicTable>
</div>
</template>
@ -98,7 +100,7 @@ @@ -98,7 +100,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/system/menu/index.vue

@ -16,7 +16,8 @@ @@ -16,7 +16,8 @@
@click="collapseAll"
>折叠全部</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -43,6 +44,7 @@ @@ -43,6 +44,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<MenuModal @register="registerModal" @success="handleRefreshTable"/>
</div>
@ -91,7 +93,7 @@ @@ -91,7 +93,7 @@
width: 250,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
afterFetch: (result) => listToTree(result)

6
src/views/system/region/index.vue

@ -10,7 +10,8 @@ @@ -10,7 +10,8 @@
@click="handleAdd()"
>新增区域</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -34,6 +35,7 @@ @@ -34,6 +35,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<RegionModal @register="registerModal" @success="handleRefreshTable"/>
</div>
@ -81,7 +83,7 @@ @@ -81,7 +83,7 @@
width: 250,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
searchInfo: { parentId: '0' },

6
src/views/system/role/index.vue

@ -23,7 +23,8 @@ @@ -23,7 +23,8 @@
@click="handleDel()"
>删除角色</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -41,6 +42,7 @@ @@ -41,6 +42,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<!--弹出窗体区域-->
<RoleDrawer @register="registerDrawer" @success="handleRefreshTable"/>
@ -102,7 +104,7 @@ @@ -102,7 +104,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/system/tenant/index.vue

@ -23,7 +23,8 @@ @@ -23,7 +23,8 @@
@click="handleDel()"
>删除多租户</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -41,6 +42,7 @@ @@ -41,6 +42,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<!--弹出窗体区域-->
<TenantModal @register="registerModal" @success="handleRefreshTable"/>
@ -100,7 +102,7 @@ @@ -100,7 +102,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

6
src/views/system/user/index.vue

@ -30,7 +30,8 @@ @@ -30,7 +30,8 @@
@click="handleDel()"
>删除用户</a-button>
</template>
<template #action="{ record }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
@ -70,6 +71,7 @@ @@ -70,6 +71,7 @@
}]"
/>
</template>
</template>
</BasicTable>
<!--弹出窗体区域-->
<UserModal @register="registerModal" @success="handleRefreshTable"/>
@ -160,7 +162,7 @@ @@ -160,7 +162,7 @@
width: 220,
title: '操作',
dataIndex: 'action',
slots: { customRender: 'action' },
//slots: { customRender: 'action' },
fixed: false
},
handleSearchInfoFn: () => clearSelectedRowKeys()

Loading…
Cancel
Save