File tree Expand file tree Collapse file tree
packages/vtable/src/state/checkbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function setSingleCheckedState(
3636 const recordIndex = state . table . getRecordShowIndexByCell ( col , row ) ;
3737 if ( recordIndex >= 0 ) {
3838 const dataIndex = state . table . dataSource . getIndexKey ( recordIndex ) . toString ( ) ;
39- if ( state . checkedState . has ( dataIndex ) ) {
39+ if ( state . checkedState . get ( dataIndex ) ) {
4040 state . checkedState . get ( dataIndex ) [ field ] = checked ;
4141 } else {
4242 state . checkedState . set ( dataIndex , {
@@ -89,7 +89,7 @@ export function syncCheckedState(
8989 if ( isValid ( state . checkedState . get ( dataIndex ) ?. [ field ] ) ) {
9090 return state . checkedState . get ( dataIndex ) [ field ] ;
9191 }
92- if ( state . checkedState . has ( dataIndex ) ) {
92+ if ( state . checkedState . get ( dataIndex ) ) {
9393 state . checkedState . get ( dataIndex ) [ field ] = checked ;
9494 } else if ( dataIndex . includes ( ',' ) ) {
9595 // child record, sync parent record state
You can’t perform that action at this time.
0 commit comments