Skip to content

Commit

Permalink
refactor(Table): improve tc
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalsky committed Jan 21, 2025
1 parent 85b2e8c commit 87900a0
Show file tree
Hide file tree
Showing 12 changed files with 1,047 additions and 1,694 deletions.
2 changes: 0 additions & 2 deletions components/table/__docs__/demo/virtual-rowspan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import ReactDOM from 'react-dom';
import { Table, Button } from '@alifd/next';
import type { ColumnProps, TableProps } from '@alifd/next/types/table';

const noop = () => {};

const dataSource = (j: number) => {
const result = [];
for (let i = 0; i < j; i++) {
Expand Down
4 changes: 1 addition & 3 deletions components/table/__docs__/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Demo, type DemoFunctionDefineForObject, DemoGroup, initDemo } from '../
import ConfigProvider from '../../../config-provider';
import zhCN from '../../../locale/zh-cn';
import enUS from '../../../locale/en-us';
import Table, { ColumnProps, type TableProps } from '../../index';
import Table, { type ColumnProps, type TableProps } from '../../index';

const i18nMap = {
'en-us': {
Expand Down Expand Up @@ -111,7 +111,6 @@ class FunctionDemo extends React.Component<{ lang: 'zh-cn' | 'en-us' }> {
const functions = convert(demoFunction);
const { lang } = this.props;
const i18n = i18nMap[lang];
const { size } = functions;
const rowSelection: TableProps['rowSelection'] = {
mode: functions.rowSelection as 'single' | 'multiple',
selectedRowKeys: [4],
Expand Down Expand Up @@ -416,7 +415,6 @@ class TableFunctionDemo extends React.Component<{ lang: 'zh-cn' | 'en-us' }> {
const functions = convert(demoFunction);
const { lang } = this.props;
const i18n = i18nMap[lang];
const { size } = functions;
const rowSelection: TableProps['rowSelection'] =
functions.rowSelection === 'false'
? null
Expand Down
Loading

0 comments on commit 87900a0

Please sign in to comment.