-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs: update valueType links in table.md documentation #9609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -62,7 +62,7 @@ ProTable 在 antd 的 Table 上进行了一层封装,支持了一些预设, | |||||
| /> | ||||||
| ``` | ||||||
|
|
||||||
| 列配置中也支持 `request`,但是只有几种 [valueType](/components/schema#valuetype) 支持。 | ||||||
| 列配置中也支持 `request`,但是只有几种 [valueType](/components/schema-form#常见-valuetype) 支持。 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 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.mdRepository: ant-design/pro-components Length of output: 432 修复 schema-form.md 中的锚点规范违规,并更新对应链接。 验证发现 需要将该标题修改为: 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other links in this document and to correctly format the property name,
Suggested change
|
||||||
|
|
||||||
| ### ProTable | ||||||
|
|
||||||
|
|
@@ -256,7 +256,7 @@ ref.current?.cancelEditable(rowKey); | |||||
| | ellipsis | 是否自动缩略 | boolean \| {showTitle?: boolean,tooltip: [TooltipProps](https://ant-design.antgroup.com/components/tooltip-cn#api)} | - | | ||||||
| | copyable | 是否支持复制 | `boolean` | - | | ||||||
| | valueEnum | 值的枚举,会自动转化把值当成 key 来取出要显示的内容 | [valueEnum](/components/schema#valueenum) | - | | ||||||
| | valueType | 值的类型,会生成不同的渲染器 | [`valueType`](/components/schema#valuetype) | `text` | | ||||||
| | valueType | 值的类型,会生成不同的渲染器 | [`valueType`](/components/schema-form#常见-valuetype) | `text` | | ||||||
| | order | 查询表单中的权重,权重大排序靠前 | `number` | - | | ||||||
| | fieldProps | 查询表单的 props,会透传给表单项,如果渲染出来是 Input,就支持 Input 的所有 props,同理如果是 select,也支持 select 的所有 props。也支持方法传入 | `(form,config)=>Record \| Record` | - | | ||||||
| | `formItemProps` | 传递给 Form.Item 的配置,可以配置 rules,但是默认的查询表单 rules 是不生效的。需要配置 `ignoreRules` | `(form,config)=>formItemProps` \| `formItemProps` | - | | ||||||
|
|
@@ -283,7 +283,7 @@ ref.current?.cancelEditable(rowKey); | |||||
|
|
||||||
| ### valueType 值类型 | ||||||
|
|
||||||
| ProTable 封装了一些常用的值类型来减少重复的 `render` 操作,配置一个 [`valueType`](/components/schema#valuetype) 即可展示格式化响应的数据。 | ||||||
| ProTable 封装了一些常用的值类型来减少重复的 `render` 操作,配置一个 [`valueType`](/components/schema-form#常见-valuetype) 即可展示格式化响应的数据。 | ||||||
|
|
||||||
| ### 批量操作 | ||||||
|
|
||||||
|
|
@@ -305,7 +305,7 @@ ProTable 会根据列来生成一个 Form,用于筛选列表数据,最后的 | |||||
|
|
||||||
| 按照规范,table 的表单不需要任何的必选参数,所有点击搜索和重置都会触发 `request` 来发起一次查询。 | ||||||
|
|
||||||
| Form 的列是根据 `valueType` 来生成不同的类型,详细的值类型请查看[通用配置](/components/schema#valuetype)。 | ||||||
| Form 的列是根据 `valueType` 来生成不同的类型,详细的值类型请查看[通用配置](/components/schema-form#常见-valuetype)。 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link text '通用配置' (General Configuration) is a bit vague. It would be clearer to link the
Suggested change
|
||||||
|
|
||||||
| > valueType 为 index, indexBorder, option 或者没有 dataIndex 和 key 的列将会被忽略。 | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other links in this document and to correctly format the property name,
valueTypeshould be wrapped in backticks.