fix: 表格勾选翻页取消

This commit is contained in:
TsMask
2023-09-22 14:48:27 +08:00
parent cbe769f26b
commit 0118e5d1b8
14 changed files with 16 additions and 2 deletions

View File

@@ -293,6 +293,7 @@ watch(
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -738,6 +738,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -565,6 +565,7 @@ onMounted(() => {
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -522,6 +522,7 @@ onMounted(() => {
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRows, onChange: fnTableSelectedRows,
}" }"
> >

View File

@@ -559,6 +559,7 @@ onMounted(() => {
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -628,6 +628,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -629,6 +629,7 @@ onMounted(() => {
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -639,6 +639,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -563,6 +563,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -565,6 +565,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -463,6 +463,7 @@ onMounted(() => {
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -273,6 +273,7 @@ watch(
:pagination="tablePagination" :pagination="tablePagination"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -869,6 +869,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >

View File

@@ -142,7 +142,7 @@ let tableColumns: ColumnsType = [
dataIndex: 'groupName', dataIndex: 'groupName',
key: 'groupName', key: 'groupName',
align: 'center', align: 'center',
}, },
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime',
@@ -199,7 +199,7 @@ function fnTableSize({ key }: MenuInfo) {
} }
/**表格斑马纹 */ /**表格斑马纹 */
function fnTableStriped(_record: unknown, index: number):any { function fnTableStriped(_record: unknown, index: number): any {
return tableState.striped && index % 2 === 1 ? 'table-striped' : undefined; return tableState.striped && index % 2 === 1 ? 'table-striped' : undefined;
} }
@@ -877,6 +877,7 @@ onMounted(() => {
:scroll="{ x: true }" :scroll="{ x: true }"
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys, onChange: fnTableSelectedRowKeys,
}" }"
> >