Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
de8ed8c
chore: standardize repository setup
afc163 Jun 26, 2026
1bbdaef
ci: fix react doctor workflow
afc163 Jun 26, 2026
a73d172
chore: apply ai review suggestion
afc163 Jun 26, 2026
cd0a3b2
test: exclude config files from coverage
afc163 Jun 26, 2026
c110b6e
docs: center README title
afc163 Jun 26, 2026
6489fe6
chore: address AI review feedback
afc163 Jun 26, 2026
088a00c
docs: standardize README release details
afc163 Jun 26, 2026
ed7a11a
docs: clarify Ant Design ecosystem note
afc163 Jun 26, 2026
1ff1d63
docs: refine README usage and ecosystem note
afc163 Jun 27, 2026
7fa8df7
ci: isolate surge preview token
afc163 Jun 27, 2026
20fec19
docs: update Ant Design logo
afc163 Jun 27, 2026
c9c45fb
docs: add Chinese README
afc163 Jun 27, 2026
b940aff
docs: refine bilingual README branding
afc163 Jun 27, 2026
09de062
chore: standardize rc tooling and docs
afc163 Jun 27, 2026
c22f123
chore: address standardization review comments
afc163 Jun 27, 2026
554ebfb
chore: include father config in type checks
afc163 Jun 27, 2026
0e7af1e
ci: update GitHub Actions versions
afc163 Jun 28, 2026
8f5f11f
ci: use resolvable CodeQL action ref
afc163 Jun 28, 2026
919706b
docs: add license file
afc163 Jun 28, 2026
3ee12a2
ci: use test-utoo workflow from main
afc163 Jun 28, 2026
2bca288
ci: use actions checkout v7
afc163 Jun 28, 2026
87ac47e
chore: standardize package metadata
afc163 Jun 28, 2026
05f12ee
ci: standardize dependabot updates
afc163 Jun 28, 2026
d20f40f
chore: ignore generated docs artifacts
afc163 Jun 28, 2026
3af6ea1
docs: fix Chinese README API names
afc163 Jun 28, 2026
0f22d75
docs: localize Chinese README descriptions
afc163 Jun 28, 2026
f2d0fb4
chore: refine preview workflow ignores
afc163 Jun 28, 2026
6e7bce0
docs: polish Chinese README wording
afc163 Jun 28, 2026
ebf5643
chore: align tooling ignores and typescript
afc163 Jun 28, 2026
4fccb28
docs: polish Chinese README wording
afc163 Jun 28, 2026
5f1e553
docs: document dumi dev server port
afc163 Jun 28, 2026
db8cb99
chore: standardize husky configuration
afc163 Jun 28, 2026
b1287cf
docs: align readme badge layout
afc163 Jun 28, 2026
a95c084
chore: standardize package type entry
afc163 Jun 28, 2026
434e017
docs: normalize readme badges
afc163 Jun 28, 2026
22dea82
ci: limit reusable workflow secrets
afc163 Jun 28, 2026
8e5cd17
ci: restore reusable workflow compatibility
afc163 Jun 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
import { defineConfig } from 'dumi';
import path from 'path';

const basePath = process.env.GH_PAGES ? '/table/' : '/';
const publicPath = basePath;

export default defineConfig({
alias: {
'rc-table$': path.resolve('src'),
'rc-table/es': path.resolve('src'),
'@rc-component/table$': path.resolve(__dirname, 'src'),
'@rc-component/table/es': path.resolve(__dirname, 'src'),
'@rc-component/dropdown/assets': path.resolve(
__dirname,
'node_modules/@rc-component/dropdown/assets',
),
'@rc-component/menu/assets': path.resolve(__dirname, 'node_modules/@rc-component/menu/assets'),
'@rc-component/tooltip/assets': path.resolve(
__dirname,
'node_modules/@rc-component/tooltip/assets',
),
'rc-table$': path.resolve(__dirname, 'src'),
'rc-table/es': path.resolve(__dirname, 'src'),
},
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
outputPath: 'docs-dist',
base: basePath,
publicPath,
themeConfig: {
name: 'Table',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
Expand Down
17 changes: 2 additions & 15 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
# These are supported funding model platforms

github: ant-design # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: ant-design # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
github: ant-design
open_collective: ant-design
53 changes: 17 additions & 36 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: "@types/react"
versions:
- 17.0.0
- 17.0.1
- 17.0.2
- 17.0.3
- dependency-name: "@types/react-dom"
versions:
- 17.0.0
- 17.0.1
- 17.0.2
- dependency-name: react-dnd
versions:
- 11.1.3
- 13.0.0
- 13.1.0
- 13.1.1
- 14.0.1
- dependency-name: react-dnd-html5-backend
versions:
- 11.1.3
- 12.1.0
- 12.1.1
- dependency-name: rc-tooltip
versions:
- 5.0.2
- dependency-name: less
versions:
- 4.1.0
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
day: monday
time: '21:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 10

- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
day: monday
time: '21:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 10
22 changes: 12 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "master" ]
branches: [master]
pull_request:
branches: [ "master" ]
branches: [master]
schedule:
- cron: "53 22 * * 2"
- cron: '53 22 * * 2'

jobs:
analyze:
Expand All @@ -20,22 +20,24 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [javascript]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e
with:
category: "/language:${{ matrix.language }}"
category: '/language:${{ matrix.language }}'
26 changes: 15 additions & 11 deletions .github/workflows/issue-reply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,29 @@ on:
issues:
types: [labeled]

permissions:
issues: write

jobs:
reply-help:
runs-on: ubuntu-latest
steps:
- name: help wanted
if: github.event.label.name == 'help wanted' || github.event.label.name == 'PR welcome'
uses: actions-cool/issues-helper@v1.11
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
run: |
gh issue comment "$ISSUE_NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
BODY: |
Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

- name: need reproduce
if: github.event.label.name == 'need reproduce'
uses: actions-cool/issues-helper@v1.11
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: |
run: |
gh issue comment "$ISSUE_NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
BODY: |
Hello @${{ github.event.issue.user.login }}. Please provide a online reproduction by forking this link https://codesandbox.io or a minimal GitHub repository.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: ✅ test
on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
test:
uses: react-component/rc-test/.github/workflows/test-npm.yml@main
secrets: inherit
uses: react-component/rc-test/.github/workflows/test-utoo.yml@main
secrets: inherit
25 changes: 25 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: React Doctor

on:
pull_request:
branches: [master]

permissions:
contents: read
pull-requests: write

concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
49 changes: 49 additions & 0 deletions .github/workflows/surge-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Surge Preview

on:
pull_request:
branches: [master]

permissions:
contents: read
pull-requests: write
statuses: write

concurrency:
group: surge-preview-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Check Surge token
id: surge-token
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
run: |
if [ -n "$SURGE_TOKEN" ]; then
echo "enabled=true" >> "$GITHUB_OUTPUT"
else
echo "enabled=false" >> "$GITHUB_OUTPUT"
fi

- name: Install dependencies
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
run: npm install --ignore-scripts --no-audit --loglevel=warn

- name: Build preview
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
run: npm run build
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
with:
dist: docs-dist
failOnError: false
github_token: ${{ secrets.GITHUB_TOKEN }}
surge_token: ${{ env.SURGE_TOKEN }}
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Thumbs.db
node_modules
.cache
dist
docs-dist
assets/**/*.css
build
lib
Expand All @@ -43,7 +44,10 @@ examples/debug.tsx
.umi-production
.umi-test
.env.local
.dumi
.dumi/tmp*
.vercel

bun.lockb
pnpm-lock.yaml
pnpm-lock.yaml
.dumi/tmp
.dumi/tmp-production
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx --no-install lint-staged
npx lint-staged
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ package.json
.umi
.umi-production
.umi-test
node_modules
coverage
docs-dist
dist
.dumi/tmp
.dumi/tmp-production
.vercel
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lockb
*.log
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019-present react-component

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading