Skip to content

Commit ec2374b

Browse files
authored
chore: fix Code scanning alerts (#955)
* Update FixedColumn-IE.spec.js * Update scrollY.tsx * Update fixedColumnsAndHeader.tsx * Update fixedColumnsAndHeader.tsx * Update colspan-rowspan.tsx
1 parent 27a8241 commit ec2374b

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

docs/examples/colspan-rowspan.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Table from 'rc-table';
33
import '../../assets/index.less';
4-
import { ColumnsType, RenderedCell } from '@/interface';
4+
import type { ColumnsType } from '@/interface';
55

66
interface RecordType {
77
a?: string;

docs/examples/fixedColumnsAndHeader.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
22
import Table from 'rc-table';
33
import '../../assets/index.less';
4-
import { ColumnsType } from '@/interface';
5-
import { useCheckbox } from './utils/useInput';
64

75
const columns = [
86
{

docs/examples/scrollY.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Demo extends React.Component {
3030
{
3131
title: (
3232
<a onClick={this.toggleBody} href="#">
33-
{this.state.showBody ? '隐藏' : '显示'}
33+
{showBody ? '隐藏' : '显示'}
3434
</a>
3535
),
3636
key: 'x',

tests/FixedColumn-IE.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { mount } from 'enzyme';
33
import { act } from 'react-dom/test-utils';
44
import { spyElementPrototype } from 'rc-util/lib/test/domHook';
55
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6-
import { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';
76
import Table from '../src';
87
import RcResizeObserver from 'rc-resize-observer';
98

0 commit comments

Comments
 (0)