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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save