Skip to content

Commit 1c25672

Browse files
committed
docs(docs): 更新文档
re #124
1 parent 65a7143 commit 1c25672

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/docs/docs/zh/guide/basic-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ schema = {
771771
// 默认值
772772
formProps = {
773773
layoutColumn: 1, // 1 2 3 ,支持 1 2 3 列布局,如果使用inline表单这里配置无效
774-
inline: false, // 行内表单模式
774+
inline: false, // 行内表单模式,建议:开启时labelPosition不要配置top, antd不要配置labelCol wrapperCol
775775
inlineFooter: false, // 如果想要保存按钮和表单元素一行显示,需要配置 true
776776
labelSuffix: '', // label后缀
777777
labelPosition: 'top', // 表单域标签的位置

packages/docs/docs/zh/guide/validate.md

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ const customRule = ({
3232
};
3333
```
3434

35+
:::warning 各版本差异
36+
* vue3 antd不包含callback参数,请使用Promise形式,如 `return Promise.reject('错误信息')`
37+
:::
38+
3539
详细参数解释如下:
3640
>* `field`: 当前节点的 `field` 路径,和 `formData` 数据结构对应, 通过 `.` 连接,如: `imgList.0.imgUrl`
3741
>实在不清楚可以通过 `Vue DevTools` 查看对应组件的 `curNodePath` 参数

0 commit comments

Comments
 (0)