repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/index.tsx
components/table/index.tsx
import type { TablePaginationConfig, TableProps } from './InternalTable'; import Table from './Table'; export type { ColumnProps } from './Column'; export type { ColumnGroupType, ColumnsType, ColumnType } from './interface'; export type { Reference as TableRef } from '@rc-component/table'; export type { TablePaginatio...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/Table.tsx
components/table/Table.tsx
import * as React from 'react'; import { EXPAND_COLUMN, Summary } from '@rc-component/table'; import type { Reference } from '@rc-component/table'; import type { AnyObject } from '../_util/type'; import Column from './Column'; import ColumnGroup from './ColumnGroup'; import { SELECTION_ALL, SELECTION_COLUMN, SEL...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/InternalTable.tsx
components/table/InternalTable.tsx
import * as React from 'react'; import { INTERNAL_HOOKS } from '@rc-component/table'; import type { Reference as RcReference, TableProps as RcTableProps } from '@rc-component/table'; import { convertChildrenToColumns } from '@rc-component/table/lib/hooks/useColumns'; import { omit } from '@rc-component/util'; import { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/bordered.ts
components/table/style/bordered.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, lineWidth,...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/rtl.ts
components/table/style/rtl.ts
import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import { getShadowStyle } from './fixed'; import type { TableToken } from './index'; const genStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls } = token; const [leftShad...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/expand.ts
components/table/style/expand.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import { operationUnit } from '../../style'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genExpandStyle: GenerateStyle<TableToken, CSSObject> = (token) => {...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/pagination.ts
components/table/style/pagination.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genPaginationStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, antCls, margin }...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/filter.ts
components/table/style/filter.ts
import { unit } from '@ant-design/cssinjs'; import { resetComponent } from '../../style'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genFilterStyle: GenerateStyle<TableToken> = (token) => { const { componentCls, antCls, iconCls, tableF...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/fixed.ts
components/table/style/fixed.ts
import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; export function getShadowStyle({ colorSplit: shadowColor, }: Pick<TableToken, 'colorSplit'>): [left: CSSObject, right: CSSObject] { const leftShadowStyle: CSS...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/sticky.ts
components/table/style/sticky.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genStickyStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, opacityLoadi...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/size.ts
components/table/style/size.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genSizeStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, tableExpandColumnWidth...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/summary.ts
components/table/style/summary.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genSummaryStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, lineWidth, tableBor...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/virtual.ts
components/table/style/virtual.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genVirtualStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, motionDurationMid, ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/selection.ts
components/table/style/selection.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genSelectionStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, antCls, ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/index.ts
components/table/style/index.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import { FastColor } from '@ant-design/fast-color'; import { clearFix, resetComponent } from '../../style'; import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal'; import { genStyleHooks, me...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/ellipsis.ts
components/table/style/ellipsis.ts
import type { CSSObject } from '@ant-design/cssinjs'; import { textEllipsis } from '../../style'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genEllipsisStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls } = token; return...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/empty.ts
components/table/style/empty.ts
import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; // ========================= Placeholder ========================== const genEmptyStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCl...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/sorter.ts
components/table/style/sorter.ts
import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genSorterStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, marginXXS, fontSizeIcon, headerIconColor, headerIconHoverColor }...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/style/radius.ts
components/table/style/radius.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { GenerateStyle } from '../../theme/internal'; import type { TableToken } from './index'; const genRadiusStyle: GenerateStyle<TableToken, CSSObject> = (token) => { const { componentCls, tableRadius } = toke...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useSelection.tsx
components/table/hooks/useSelection.tsx
import * as React from 'react'; import { useCallback, useMemo } from 'react'; import DownOutlined from '@ant-design/icons/DownOutlined'; import { INTERNAL_COL_DEFINE } from '@rc-component/table'; import type { FixedType } from '@rc-component/table/lib/interface'; import type { DataNode, GetCheckDisabled } from '@rc-com...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useSorter.tsx
components/table/hooks/useSorter.tsx
import * as React from 'react'; import CaretDownOutlined from '@ant-design/icons/CaretDownOutlined'; import CaretUpOutlined from '@ant-design/icons/CaretUpOutlined'; import KeyCode from '@rc-component/util/lib/KeyCode'; import { clsx } from 'clsx'; import type { AnyObject } from '../../_util/type'; import type { Local...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useContainerWidth.ts
components/table/hooks/useContainerWidth.ts
import type { TableProps } from '@rc-component/table'; export default function useContainerWidth(prefixCls: string) { const getContainerWidth: TableProps['getContainerWidth'] = (ele, width) => { const container = ele.querySelector(`.${prefixCls}-container`); let returnWidth = width; if (container) { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useLazyKVMap.ts
components/table/hooks/useLazyKVMap.ts
import * as React from 'react'; import type { AnyObject } from '../../_util/type'; import type { GetRowKey, Key } from '../interface'; interface MapCache<RecordType = AnyObject> { data?: readonly RecordType[]; childrenColumnName?: string; kvMap?: Map<Key, RecordType>; getRowKey?: (record: RecordType, index: n...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useTitleColumns.ts
components/table/hooks/useTitleColumns.ts
import * as React from 'react'; import type { AnyObject } from 'antd/es/_util/type'; import type { ColumnGroupType, ColumnsType, ColumnTitleProps, ColumnType, TransformColumns, } from '../interface'; import { renderColumnTitle } from '../util'; const fillTitle = <RecordType extends AnyObject = AnyObject>( ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/usePagination.ts
components/table/hooks/usePagination.ts
import { useState } from 'react'; import extendsObject from '../../_util/extendsObject'; import type { PaginationProps } from '../../pagination'; import type { TablePaginationConfig } from '../interface'; export const DEFAULT_PAGE_SIZE = 10; export function getPaginationParam( mergedPagination: TablePaginationConf...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useFilter/FilterWrapper.tsx
components/table/hooks/useFilter/FilterWrapper.tsx
import * as React from 'react'; import KeyCode from '@rc-component/util/lib/KeyCode'; export interface FilterDropdownMenuWrapperProps { className?: string; } const onKeyDown: React.KeyboardEventHandler<HTMLDivElement> = (event) => { const { keyCode } = event; if (keyCode === KeyCode.ENTER) { event.stopPropa...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useFilter/index.tsx
components/table/hooks/useFilter/index.tsx
import * as React from 'react'; import type { AnyObject } from '../../../_util/type'; import { devUseWarning } from '../../../_util/warning'; import type { ColumnsType, ColumnTitleProps, ColumnType, FilterKey, FilterValue, GetPopupContainer, Key, SafeKey, TableLocale, TransformColumns, } from '../....
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useFilter/FilterSearch.tsx
components/table/hooks/useFilter/FilterSearch.tsx
import * as React from 'react'; import SearchOutlined from '@ant-design/icons/SearchOutlined'; import type { AnyObject } from '../../../_util/type'; import Input from '../../../input/Input'; import type { FilterSearchType, TableLocale } from '../../interface'; interface FilterSearchProps<RecordType = AnyObject> { v...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/hooks/useFilter/FilterDropdown.tsx
components/table/hooks/useFilter/FilterDropdown.tsx
import * as React from 'react'; import FilterFilled from '@ant-design/icons/FilterFilled'; import type { FieldDataNode } from '@rc-component/tree'; import isEqual from '@rc-component/util/lib/isEqual'; import type { AnyObject } from 'antd/es/_util/type'; import { clsx } from 'clsx'; import type { FilterState } from '....
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/empty.test.tsx
components/table/__tests__/empty.test.tsx
import React from 'react'; import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook'; import type { ColumnsType } from '..'; import Table from '..'; import { render, triggerResize, waitFakeTimer } from '../../../tests/utils'; const columns: ColumnsType<any> = [ { title: 'Column 1', dataIndex: 'addr...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.rowSelection.test.tsx
components/table/__tests__/Table.rowSelection.test.tsx
import React from 'react'; import type { TableProps } from '..'; import Table from '..'; import { resetWarned } from '../../_util/warning'; import { act, fireEvent, render, waitFakeTimer } from '../../../tests/utils'; import ConfigProvider from '../../config-provider'; import type { TableRowSelection } from '../interf...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
true
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/a11y.test.ts
components/table/__tests__/a11y.test.ts
import accessibilityDemoTest from '../../../tests/shared/accessibilityTest'; accessibilityDemoTest('table', { skip: ['virtual-list.tsx', 'dynamic-settings.tsx'], // waiting for fix disabledRules: ['label', 'empty-table-header', 'nested-interactive', 'button-name'], });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.expand.test.tsx
components/table/__tests__/Table.expand.test.tsx
import React from 'react'; import type { TableProps } from '..'; import Table from '..'; import { fireEvent, render } from '../../../tests/utils'; const columns: TableProps['columns'] = [ { title: 'Name', key: 'name', dataIndex: 'name', }, ]; const John = { key: '1', firstName: 'John', lastName...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.sorter.test.tsx
components/table/__tests__/Table.sorter.test.tsx
import React from 'react'; import type { ColumnType, TableProps } from '..'; import Table from '..'; import { act, fireEvent, render } from '../../../tests/utils'; import type { SortOrder, TablePaginationConfig } from '../interface'; describe('Table.sorter', () => { const sorterFn: ColumnType<any>['sorter'] = (a, b...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
true
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/type.test.tsx
components/table/__tests__/type.test.tsx
import * as React from 'react'; import type { ColumnProps } from '..'; import Table from '..'; const { Column, ColumnGroup } = Table; describe('Table.typescript', () => { it('Column', () => { const table = ( <Table> <Column dataIndex="test" title="test" sorter /> </Table> ); expect(...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/image.test.ts
components/table/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Table image', () => { imageDemoTest('table', { skip: ['virtual-list.tsx', 'row-selection-debug.tsx'] }); });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.virtual.test.tsx
components/table/__tests__/Table.virtual.test.tsx
import React from 'react'; import Table from '..'; import { render } from '../../../tests/utils'; describe('Table.Virtual', () => { it('should work', () => { const { container } = render( <Table virtual scroll={{ x: 100, y: 100 }} columns={[{ dataIndex: 'key' }]} dataSource...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.filter.test.tsx
components/table/__tests__/Table.filter.test.tsx
import React, { useEffect, useState } from 'react'; import type { ColumnGroupType, ColumnType, TableProps } from '..'; import Table from '..'; import { resetWarned } from '../../_util/warning'; import { act, fireEvent, render, waitFakeTimer, waitFor } from '../../../tests/utils'; import Button from '../../button'; imp...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
true
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.IE.test.tsx
components/table/__tests__/Table.IE.test.tsx
import React from 'react'; import type { TableRef } from '..'; import Table from '..'; import { render } from '../../../tests/utils'; describe('Table.IE', () => { beforeAll(() => { window.Proxy = undefined as any; global.Proxy = undefined as any; }); it('support reference', () => { const tblRef = R...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/demo.test.ts
components/table/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('table', { skip: ['ajax.tsx', 'virtual-list.tsx', 'measure-row-render.tsx'] });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.pagination.test.tsx
components/table/__tests__/Table.pagination.test.tsx
import React from 'react'; import type { TablePaginationConfig, TableProps } from '..'; import Table from '..'; import scrollTo from '../../_util/scrollTo'; import { resetWarned } from '../../_util/warning'; import { act, fireEvent, render } from '../../../tests/utils'; jest.mock('../../_util/scrollTo'); describe('T...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/demo-extend.test.ts
components/table/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('table', { skip: [ 'ajax.tsx', 'virtual-list.tsx', 'summary.tsx', 'sticky.tsx', 'fixed-gapped-columns.tsx', 'fixed-columns.tsx', 'fixed-columns-header.tsx', 'row-selection-debug.tsx', 'drag-sorting.tsx', '...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Sorter.value.test.tsx
components/table/__tests__/Sorter.value.test.tsx
import React, { useState } from 'react'; import Table from '..'; import { fireEvent, render } from '../../../tests/utils'; describe('Sorter.value.test.tsx', () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); afterEach(() => { errorSpy.mockReset(); }); afterAll(() => { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.order.test.tsx
components/table/__tests__/Table.order.test.tsx
import React from 'react'; import type { TableProps } from '..'; import Table from '..'; import { resetWarned } from '../../_util/warning'; import { render } from '../../../tests/utils'; describe('Table.order', () => { window.requestAnimationFrame = (callback) => window.setTimeout(callback, 16); window.cancelAnim...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/Table.test.tsx
components/table/__tests__/Table.test.tsx
import React, { useRef } from 'react'; import { ConfigProvider } from 'antd'; import type { TableProps, TableRef } from '..'; import Table from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; import { fireEvent, render, waitFakeTimer } from '../../../...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/__tests__/semantic.test.tsx
components/table/__tests__/semantic.test.tsx
import React from 'react'; import type { TableProps } from '..'; import Table from '..'; import mountTest from '../../../tests/shared/mountTest'; import { render } from '../../../tests/utils'; describe('Table', () => { mountTest(Table); it('test classNames and styles', () => { const columns = [ { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/RcTable/index.tsx
components/table/RcTable/index.tsx
import { genTable } from '@rc-component/table'; import type { AnyObject } from '../../_util/type'; import type { InternalTableProps } from '../InternalTable'; /** * Same as `rc-component/table` but we modify trigger children update logic instead. */ const RcTable = genTable((prev, next) => { const { _renderTimes:...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/RcTable/VirtualTable.tsx
components/table/RcTable/VirtualTable.tsx
import { genVirtualTable } from '@rc-component/table'; import type { AnyObject } from '../../_util/type'; import type { InternalTableProps } from '../InternalTable'; /** * Same as `rc-component/table` but we modify trigger children update logic instead. */ const RcVirtualTable = genVirtualTable((prev, next) => { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/expand.tsx
components/table/demo/expand.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; description: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', key: 'name' }, ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/narrow.tsx
components/table/demo/narrow.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', }, { title: 'Age', d...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/row-selection-custom.tsx
components/table/demo/row-selection-custom.tsx
import React, { useState } from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection']; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns:...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/edit-row.tsx
components/table/demo/edit-row.tsx
import React, { useState } from 'react'; import type { TableProps } from 'antd'; import { Form, Input, InputNumber, Popconfirm, Table, Typography } from 'antd'; interface DataType { key: string; name: string; age: number; address: string; } const originData = Array.from({ length: 100 }).map<DataType>((_, i) =...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/tree-table-preserveSelectedRowKeys.tsx
components/table/demo/tree-table-preserveSelectedRowKeys.tsx
import React, { useState } from 'react'; import { Space, Switch, Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection']; interface DataType { key: React.ReactNode; name: string; age: number; address: stri...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/selections-debug.tsx
components/table/demo/selections-debug.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', }, { title: 'Age', d...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/fixed-gapped-columns.tsx
components/table/demo/fixed-gapped-columns.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ css, token }) => { const { antCls } = token; return { customTable: css` ${antCls}-table { ${antCls}-table-container { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/_semantic.tsx
components/table/demo/_semantic.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; import useLocale from '../../../.dumi/hooks/useLocale'; import SemanticPreview from '../../../.dumi/theme/common/SemanticPreview'; const locales = { cn: { root: '根元素,包含字体大小、背景色、圆角、滚动条颜色等表格容器的基础样式',...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/hidden-columns.tsx
components/table/demo/hidden-columns.tsx
import React, { useState } from 'react'; import { Checkbox, Divider, Table } from 'antd'; import type { CheckboxOptionType, TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Column 1', da...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/fixed-columns.tsx
components/table/demo/fixed-columns.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ css, token }) => { const { antCls } = token; return { customTable: css` ${antCls}-table { ${antCls}-table-container { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/sticky.tsx
components/table/demo/sticky.tsx
import React, { useState } from 'react'; import { Switch, Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Full Name', width: 100, dataInde...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/dynamic-settings.tsx
components/table/demo/dynamic-settings.tsx
import React, { useState } from 'react'; import { DownOutlined } from '@ant-design/icons'; import type { GetProp, RadioChangeEvent, TableProps } from 'antd'; import { Form, Radio, Space, Switch, Table } from 'antd'; type SizeType = TableProps['size']; type ColumnsType<T extends object> = GetProp<TableProps<T>, 'column...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/order-column.tsx
components/table/demo/order-column.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; description: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', key: 'name' }, ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/multiple-sorter.tsx
components/table/demo/multiple-sorter.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; interface DataType { key: React.Key; name: string; chinese: number; math: number; english: number; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/measure-row-render.tsx
components/table/demo/measure-row-render.tsx
import React, { useRef, useState } from 'react'; import { SearchOutlined } from '@ant-design/icons'; import type { InputRef, TableColumnsType, TableColumnType } from 'antd'; import { Button, Input, Space, Table } from 'antd'; import type { FilterDropdownProps } from 'antd/es/table/interface'; import Highlighter from 'r...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/jsx.tsx
components/table/demo/jsx.tsx
import React from 'react'; import { Flex, Space, Table, Tag } from 'antd'; const { Column, ColumnGroup } = Table; interface DataType { key: React.Key; firstName: string; lastName: string; age: number; address: string; tags: string[]; } const data: DataType[] = [ { key: '1', firstName: 'John', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/filter-search.tsx
components/table/demo/filter-search.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', filters: [ ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/reset-filter.tsx
components/table/demo/reset-filter.tsx
import React, { useState } from 'react'; import type { TableColumnsType, TableProps } from 'antd'; import { Button, Space, Table } from 'antd'; type OnChange = NonNullable<TableProps<DataType>['onChange']>; type Filters = Parameters<OnChange>[1]; type GetSingle<T> = T extends (infer U)[] ? U : never; type Sorts = Get...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/drag-column-sorting.tsx
components/table/demo/drag-column-sorting.tsx
import React, { createContext, useContext, useState } from 'react'; import type { DragEndEvent, DragOverEvent, UniqueIdentifier } from '@dnd-kit/core'; import { closestCenter, DndContext, DragOverlay, PointerSensor, useSensor, useSensors, } from '@dnd-kit/core'; import { restrictToHorizontalAxis } from '@dn...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/ellipsis.tsx
components/table/demo/ellipsis.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', key: 'name', render: (te...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/virtual-list.tsx
components/table/demo/virtual-list.tsx
import React from 'react'; import { Button, Segmented, Space, Switch, Table, Typography } from 'antd'; import type { TableProps } from 'antd'; interface RecordType { id: number; firstName: string; lastName: string; age: number; address1: string; address2: string; address3: string; } const fixedColumns: ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/row-selection-debug.tsx
components/table/demo/row-selection-debug.tsx
import React, { useState } from 'react'; import { InputNumber, Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection']; const RenderTimes: React.FC = () => { const timesRef = React.useRef(0); timesRef.current ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/row-selection-custom-debug.tsx
components/table/demo/row-selection-custom-debug.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection']; interface DataType { key: React.Key; name: string; } const columns: TableColumnsType<DataType> = [ { title: '...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/row-selection.tsx
components/table/demo/row-selection.tsx
import React, { useState } from 'react'; import { Divider, Radio, Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/tree-table-ellipsis.tsx
components/table/demo/tree-table-ellipsis.tsx
import React, { useState } from 'react'; import { Space, Switch, Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.ReactNode; name: string; age: number; address: string; children?: DataType[]; } const data: DataType[] = [ { key: 1, name: 'John Brown...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/summary.tsx
components/table/demo/summary.tsx
import React from 'react'; import { Flex, Table, Typography } from 'antd'; import type { TableColumnsType } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ css, token }) => { const { antCls } = token; return { customTable: css` ${antCls}-table { ${antCls}-...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/filter-in-tree.tsx
components/table/demo/filter-in-tree.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', filters: [ ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/component-token.tsx
components/table/demo/component-token.tsx
import React, { useState } from 'react'; import { DownOutlined } from '@ant-design/icons'; import type { ConfigProviderProps, GetProp, RadioChangeEvent, TableProps } from 'antd'; import { ConfigProvider, Form, Radio, Space, Switch, Table } from 'antd'; type SizeType = ConfigProviderProps['componentSize']; type Columns...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/nest-table-border-debug.tsx
components/table/demo/nest-table-border-debug.tsx
import React, { useState } from 'react'; import { DownOutlined } from '@ant-design/icons'; import type { TableColumnsType, TableProps } from 'antd'; import { Badge, Dropdown, Form, Space, Switch, Table } from 'antd'; interface DataType { key: React.Key; name: string; platform: string; version: string; upgrad...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/basic.tsx
components/table/demo/basic.tsx
import React from 'react'; import { Flex, Space, Table, Tag } from 'antd'; import type { TableProps } from 'antd'; interface DataType { key: string; name: string; age: number; address: string; tags: string[]; } const columns: TableProps<DataType>['columns'] = [ { title: 'Name', dataIndex: 'name', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/custom-filter-panel.tsx
components/table/demo/custom-filter-panel.tsx
import React, { useRef, useState } from 'react'; import { SearchOutlined } from '@ant-design/icons'; import type { InputRef, TableColumnsType, TableColumnType } from 'antd'; import { Button, Input, Space, Table } from 'antd'; import type { FilterDropdownProps } from 'antd/es/table/interface'; import Highlighter from 'r...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/fixed-columns-header.tsx
components/table/demo/fixed-columns-header.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ css, token }) => { const { antCls } = token; return { customTable: css` ${antCls}-table { ${antCls}-table-container { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/row-selection-and-operation.tsx
components/table/demo/row-selection-and-operation.tsx
import React, { useState } from 'react'; import { Button, Flex, Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection']; interface DataType { key: React.Key; name: string; age: number; address: string; } ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/head.tsx
components/table/demo/head.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', showSorterToolti...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/tree-data.tsx
components/table/demo/tree-data.tsx
import React, { useState } from 'react'; import { Space, Switch, Table } from 'antd'; import type { TableColumnsType, TableProps } from 'antd'; type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection']; interface DataType { key: React.ReactNode; name: string; age: number; address: stri...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/ajax.tsx
components/table/demo/ajax.tsx
/* eslint-disable compat/compat */ import React, { useEffect, useState } from 'react'; import type { GetProp, TableProps } from 'antd'; import { Table } from 'antd'; import type { SorterResult } from 'antd/es/table/interface'; type ColumnsType<T extends object = object> = TableProps<T>['columns']; type TablePaginatio...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/colspan-rowspan.tsx
components/table/demo/colspan-rowspan.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableProps } from 'antd'; interface DataType { key: string; name: string; age: number; tel: string; phone: number; address: string; } // In the fifth row, other columns are merged into first column // by setting it's colSpan to be 0 co...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/pagination.tsx
components/table/demo/pagination.tsx
import React, { useState } from 'react'; import { Flex, Radio, Space, Table, Tag } from 'antd'; import type { TableProps } from 'antd'; type ColumnsType<T extends object> = TableProps<T>['columns']; type TablePagination<T extends object> = NonNullable<Exclude<TableProps<T>['pagination'], boolean>>; type TablePaginatio...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/responsive.tsx
components/table/demo/responsive.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name (all screens)', dataIndex: 'name', key: 'name', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/size.tsx
components/table/demo/size.tsx
import React from 'react'; import { Divider, Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', }, { title: 'Ag...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/custom-empty.tsx
components/table/demo/custom-empty.tsx
import React, { useState } from 'react'; import type { GetProp } from 'antd'; import { Button, ConfigProvider, Empty, Table } from 'antd'; interface DataType { key: number; name: string; age: number; address: string; } const genFakeData = (count = 5) => Array.from({ length: count }).map<DataType>((_, index)...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/drag-sorting.tsx
components/table/demo/drag-sorting.tsx
import React, { useState } from 'react'; import type { DragEndEvent } from '@dnd-kit/core'; import { DndContext, PointerSensor, useSensor, useSensors } from '@dnd-kit/core'; import { restrictToVerticalAxis } from '@dnd-kit/modifiers'; import { arrayMove, SortableContext, useSortable, verticalListSortingStrategy...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/nested-table.tsx
components/table/demo/nested-table.tsx
import React from 'react'; import { DownOutlined } from '@ant-design/icons'; import type { TableColumnsType } from 'antd'; import { Badge, Dropdown, Space, Table } from 'antd'; interface ExpandedDataType { key: React.Key; date: string; name: string; upgradeNum: string; } interface DataType { key: React.Key;...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/bordered.tsx
components/table/demo/bordered.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableProps } from 'antd'; interface DataType { key: string; name: string; money: string; address: string; } const columns: TableProps<DataType>['columns'] = [ { title: 'Name', dataIndex: 'name', render: (text) => <a>{text}</a...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/grouping-columns.tsx
components/table/demo/grouping-columns.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ css, token }) => { const { antCls } = token; return { customTable: css` ${antCls}-table { ${antCls}-table-container { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/fixed-header.tsx
components/table/demo/fixed-header.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; import { createStyles } from 'antd-style'; const useStyle = createStyles(({ css, token }) => { const { antCls } = token; return { customTable: css` ${antCls}-table { ${antCls}-table-container { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/ellipsis-custom-tooltip.tsx
components/table/demo/ellipsis-custom-tooltip.tsx
import React from 'react'; import { Table, Tooltip } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType<DataType> = [ { title: 'Name', dataIndex: 'name', key: 'name', re...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/edit-cell.tsx
components/table/demo/edit-cell.tsx
import React, { useContext, useEffect, useRef, useState } from 'react'; import type { GetRef, InputRef, TableProps } from 'antd'; import { Button, Form, Input, Popconfirm, Table } from 'antd'; type FormInstance<T> = GetRef<typeof Form<T>>; const EditableContext = React.createContext<FormInstance<any> | null>(null); ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/drag-sorting-handler.tsx
components/table/demo/drag-sorting-handler.tsx
import React, { useContext, useMemo } from 'react'; import { HolderOutlined } from '@ant-design/icons'; import type { DragEndEvent } from '@dnd-kit/core'; import { DndContext } from '@dnd-kit/core'; import type { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities'; import { restrictToVerticalAxis } from '@...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/expand-sticky.tsx
components/table/demo/expand-sticky.tsx
import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; team: string; name: string; age: number; address: string; description: string; } const columns: TableColumnsType<DataType> = [ { title: 'Team', dataIndex: '...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/table/demo/style-class.tsx
components/table/demo/style-class.tsx
import React from 'react'; import { Flex, Table } from 'antd'; import type { TableProps } from 'antd'; import { createStyles } from 'antd-style'; const useStyles = createStyles(() => ({ root: { color: '#e0e0e0', borderRadius: 12, boxShadow: '0 4px 20px rgba(0,0,0,0.3)', }, })); interface DataType { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/splitter/Panel.tsx
components/splitter/Panel.tsx
import React, { forwardRef } from 'react'; import { clsx } from 'clsx'; import type { InternalPanelProps, PanelProps } from './interface'; export const InternalPanel = forwardRef< HTMLDivElement, React.PropsWithChildren<InternalPanelProps> >((props, ref) => { const { prefixCls, className, children, size, style ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false