Skip to content

docs: update valueType links in table.md documentation#9609

Open
GeoDaoyu wants to merge 2 commits intoant-design:masterfrom
GeoDaoyu:patch-1
Open

docs: update valueType links in table.md documentation#9609
GeoDaoyu wants to merge 2 commits intoant-design:masterfrom
GeoDaoyu:patch-1

Conversation

@GeoDaoyu
Copy link
Copy Markdown
Contributor

@GeoDaoyu GeoDaoyu commented Apr 24, 2026

fix #9586

Summary by CodeRabbit

发布说明

  • 文档更新
    • 更新了表格组件文档中关于 valueType 的多个文档链接指向,将用户指引至新的文档位置,确保文档引用的一致性和准确性。

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 24, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

📝 Walkthrough

Walkthrough

修复了 table.mdtable.en-US.md 两个文档文件中的 valueType 链接,将其重新指向 schema-form 文档位置,以替代失效的 schema 文档链接。

Changes

Cohort / File(s) Summary
文档链接修复
site/components/table.md, site/components/table.en-US.md
将 valueType 文档链接从 /components/schema#valuetype 重定向至 /components/schema-form#common-valuetypes(英文)和 /components/schema-form#常见-valuetype(中文),涵盖列配置说明、Columns 属性表、valueType 值类型章节及表单生成描述等多处引用。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 链接失效莫烦恼,
兔子来把路标找,
schema-form 新方向,
valueType 重闪耀!✨
文档指引更通畅。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题清晰准确地总结了主要改动:更新 table.md 文档中的 valueType 链接。
Linked Issues check ✅ Passed 代码改动完全符合链接问题 #9586 的要求:将损坏的 valueType 链接从旧路径重定向到新路径。
Out of Scope Changes check ✅ Passed 所有改动都在范围内,仅包含文档链接更新,无额外的无关改动。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot Bot added the table label Apr 24, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@site/components/table.md`:
- Line 65: The heading "### 常见 ValueType" in schema-form.md must be changed to
include an explicit English anchor — replace that heading with "### 常见 ValueType
{`#common-valuetypes`}" (refer to the header text "### 常见 ValueType") and update
all links in table.md that point to the old auto-generated Chinese anchor
(currently `#常见-valuetype`) to the new `#common-valuetypes` (update the
occurrences on the lines referencing the table links, e.g., the links in
table.md that currently use `#常见-valuetype`); finally, scan other markdown
headers for Chinese-starting anchors and add manual English anchors following
the same pattern to satisfy the anchor regex.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 67eb78cc-2102-4067-a961-a268c8771dfd

📥 Commits

Reviewing files that changed from the base of the PR and between bdbf841 and 68c9b11.

📒 Files selected for processing (2)
  • site/components/table.en-US.md
  • site/components/table.md

Comment thread site/components/table.md
```

列配置中也支持 `request`,但是只有几种 [valueType](/components/schema#valuetype) 支持。
列配置中也支持 `request`,但是只有几种 [valueType](/components/schema-form#常见-valuetype) 支持。
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# 验证 schema-form.md 中 ValueType 相关章节的锚点定义

echo "=== 检查 schema-form.md 中的 ValueType 章节 ==="
rg -n -A2 "^###\s+常见\s+ValueType" site/components/schema-form.md

echo -e "\n=== 检查 schema-form.en-US.md 中的对应章节 ==="
rg -n -A2 "^###\s+Common\s+ValueType" site/components/schema-form.en-US.md

echo -e "\n=== 搜索可能的手动英文锚点定义 ==="
rg -n "\{#[a-zA-Z][\w-:\.]*\}" site/components/schema-form.md site/components/schema-form.en-US.md

Repository: ant-design/pro-components

Length of output: 432


修复 schema-form.md 中的锚点规范违规,并更新对应链接。

验证发现 schema-form.md 中的标题"### 常见 ValueType"(第 81 行)未定义手动英文锚点,自动生成的锚点将以中文字符开头(#常见-valuetype),违反编码规范要求 ^[a-zA-Z][\w-:\.]*$(锚点必须以字母开头)。

需要将该标题修改为:### 常见 ValueType {#common-valuetypes},并更新 site/components/table.md 中对应位置(第 65、259、286、308 行)的所有链接,从 #常见-valuetype 改为 #common-valuetypes。同时检查是否还有其他中文标题存在相同问题。

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@site/components/table.md` at line 65, The heading "### 常见 ValueType" in
schema-form.md must be changed to include an explicit English anchor — replace
that heading with "### 常见 ValueType {`#common-valuetypes`}" (refer to the header
text "### 常见 ValueType") and update all links in table.md that point to the old
auto-generated Chinese anchor (currently `#常见-valuetype`) to the new
`#common-valuetypes` (update the occurrences on the lines referencing the table
links, e.g., the links in table.md that currently use `#常见-valuetype`); finally,
scan other markdown headers for Chinese-starting anchors and add manual English
anchors following the same pattern to satisfy the anchor regex.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.48%. Comparing base (bdbf841) to head (68c9b11).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9609      +/-   ##
==========================================
- Coverage   88.53%   88.48%   -0.05%     
==========================================
  Files         368      368              
  Lines       11257    11257              
  Branches     4157     4154       -3     
==========================================
- Hits         9966     9961       -5     
- Misses       1139     1143       +4     
- Partials      152      153       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation links for valueType in both the English and Chinese versions of the table component documentation. The feedback focuses on improving formatting consistency by wrapping valueType in backticks and enhancing the clarity of link text in the Chinese documentation to match the English style.

```

`request` is also supported in column configuration, but only for a few [valueType](/components/schema#valuetype).
`request` is also supported in column configuration, but only for a few [valueType](/components/schema-form#common-valuetypes).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with other links in this document and to correctly format the property name, valueType should be wrapped in backticks.

Suggested change
`request` is also supported in column configuration, but only for a few [valueType](/components/schema-form#common-valuetypes).
`request` is also supported in column configuration, but only for a few [`valueType`](/components/schema-form#common-valuetypes).

Comment thread site/components/table.md
```

列配置中也支持 `request`,但是只有几种 [valueType](/components/schema#valuetype) 支持。
列配置中也支持 `request`,但是只有几种 [valueType](/components/schema-form#常见-valuetype) 支持。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with other links in this document and to correctly format the property name, valueType should be wrapped in backticks.

Suggested change
列配置中也支持 `request`,但是只有几种 [valueType](/components/schema-form#常见-valuetype) 支持。
列配置中也支持 `request`,但是只有几种 [`valueType`](/components/schema-form#常见-valuetype) 支持。

Comment thread site/components/table.md
按照规范,table 的表单不需要任何的必选参数,所有点击搜索和重置都会触发 `request` 来发起一次查询。

Form 的列是根据 `valueType` 来生成不同的类型,详细的值类型请查看[通用配置](/components/schema#valuetype)。
Form 的列是根据 `valueType` 来生成不同的类型,详细的值类型请查看[通用配置](/components/schema-form#常见-valuetype)。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The link text '通用配置' (General Configuration) is a bit vague. It would be clearer to link the valueType term directly, matching the English documentation's style and making the sentence more concise.

Suggested change
Form 的列是根据 `valueType` 来生成不同的类型,详细的值类型请查看[通用配置](/components/schema-form#常见-valuetype)
Form 的列是根据 [`valueType`](/components/schema-form#常见-valuetype) 来生成不同的类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files. table

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛[BUG] 文档内链接失效

1 participant