diff --git a/site/components/table.en-US.md b/site/components/table.en-US.md index 61d6ad22984d..2a6aafbd45b4 100644 --- a/site/components/table.en-US.md +++ b/site/components/table.en-US.md @@ -62,7 +62,7 @@ ProTable puts a layer of wrapping on top of antd's Table, supports some presets, /> ``` -`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). ### ProTable @@ -257,7 +257,7 @@ If you want **client-side** sorting/filtering (and **do not** want to trigger `r | ellipsis | Whether to abbreviate automatically | `boolean` \| `{showTitle?: boolean}` | - | | copyable | Whether to support copying | `boolean` | - | | valueEnum | The value enumeration will automatically convert the value as a key to retrieve the content to be displayed | [valueEnum](/components/schema#valueenum) | - | -| valueType | The type of value, which will generate different renderers | [`valueType`](/components/schema#valuetype) | `text` | +| valueType | The type of value, which will generate different renderers | [`valueType`](/components/schema-form#common-valuetypes) | `text` | | order | The weight in the query form, the weight is ranked first | `number` | - | | fieldProps | The props of the query form will be transparently transmitted to the form item. If it is rendered as Input, all props of input are supported. Similarly, if it is select, all props of select are also supported. Also supports method input | `(form,config)=>Record \| Record` | - | | `formItemProps` | The configuration passed to Form.Item can be configured with rules, but the default query form rules does not take effect. Need to configure `ignoreRules` | `(form,config)=>formItemProps` \| `formItemProps` | - | @@ -284,7 +284,7 @@ If you want **client-side** sorting/filtering (and **do not** want to trigger `r ### valueType value type -ProTable encapsulates some commonly used value types to reduce repeated `render` operations. Configure a [`valueType`](/components/schema#valuetype) to display formatted response data. +ProTable encapsulates some commonly used value types to reduce repeated `render` operations. Configure a [`valueType`](/components/schema-form#common-valuetypes) to display formatted response data. ### Batch operation @@ -306,7 +306,7 @@ ProTable will generate a Form for filtering list data based on columns, and the As per the specification, table forms do not require any mandatory parameters, and all clicks on search and reset will trigger a `request` to initiate a query. -Form's columns are generated with different types based on [`valueType`](/components/schema#valuetype). +Form's columns are generated with different types based on [`valueType`](/components/schema-form#common-valuetypes). > Columns with a valueType of index indexBorder option and no dataIndex and key will be ignored. diff --git a/site/components/table.md b/site/components/table.md index fd6bb2a5e5fa..7588d9204199 100644 --- a/site/components/table.md +++ b/site/components/table.md @@ -62,7 +62,7 @@ ProTable 在 antd 的 Table 上进行了一层封装,支持了一些预设, /> ``` -列配置中也支持 `request`,但是只有几种 [valueType](/components/schema#valuetype) 支持。 +列配置中也支持 `request`,但是只有几种 [valueType](/components/schema-form#常见-valuetype) 支持。 ### 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)。 > valueType 为 index, indexBorder, option 或者没有 dataIndex 和 key 的列将会被忽略。