Skip to content

Commit 87900a0

Browse files
committed
refactor(Table): improve tc
1 parent 85b2e8c commit 87900a0

File tree

12 files changed

+1047
-1694
lines changed

12 files changed

+1047
-1694
lines changed

components/table/__docs__/demo/virtual-rowspan/index.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import ReactDOM from 'react-dom';
33
import { Table, Button } from '@alifd/next';
44
import type { ColumnProps, TableProps } from '@alifd/next/types/table';
55

6-
const noop = () => {};
7-
86
const dataSource = (j: number) => {
97
const result = [];
108
for (let i = 0; i < j; i++) {

components/table/__docs__/theme/index.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Demo, type DemoFunctionDefineForObject, DemoGroup, initDemo } from '../
77
import ConfigProvider from '../../../config-provider';
88
import zhCN from '../../../locale/zh-cn';
99
import enUS from '../../../locale/en-us';
10-
import Table, { ColumnProps, type TableProps } from '../../index';
10+
import Table, { type ColumnProps, type TableProps } from '../../index';
1111

1212
const i18nMap = {
1313
'en-us': {
@@ -111,7 +111,6 @@ class FunctionDemo extends React.Component<{ lang: 'zh-cn' | 'en-us' }> {
111111
const functions = convert(demoFunction);
112112
const { lang } = this.props;
113113
const i18n = i18nMap[lang];
114-
const { size } = functions;
115114
const rowSelection: TableProps['rowSelection'] = {
116115
mode: functions.rowSelection as 'single' | 'multiple',
117116
selectedRowKeys: [4],
@@ -416,7 +415,6 @@ class TableFunctionDemo extends React.Component<{ lang: 'zh-cn' | 'en-us' }> {
416415
const functions = convert(demoFunction);
417416
const { lang } = this.props;
418417
const i18n = i18nMap[lang];
419-
const { size } = functions;
420418
const rowSelection: TableProps['rowSelection'] =
421419
functions.rowSelection === 'false'
422420
? null

0 commit comments

Comments
 (0)