Skip to content

Commit 43adc94

Browse files
authored
docs: fix typos (#5105)
1 parent 4a20156 commit 43adc94

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

docs/src/components/common-ui/vben-form.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ useVbenForm 返回的第二个参数,是一个对象,包含了一些表单
306306
| actionWrapperClass | 表单操作区域class | `any` | - |
307307
| handleReset | 表单重置回调 | `(values: Record<string, any>,) => Promise<void> \| void` | - |
308308
| handleSubmit | 表单提交回调 | `(values: Record<string, any>,) => Promise<void> \| void` | - |
309+
| handleValuesChange | 表单值变化回调 | `(values: Record<string, any>,) => void` | - |
309310
| resetButtonOptions | 重置按钮组件参数 | `ActionButtonOptions` | - |
310311
| submitButtonOptions | 提交按钮组件参数 | `ActionButtonOptions` | - |
311312
| showDefaultActions | 是否显示默认操作按钮 | `boolean` | `true` |

docs/src/components/common-ui/vben-modal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const [Modal, modalApi] = useVbenModal({
111111

112112
::: info appendToMain
113113

114-
`appendToMain`可以指定将弹窗挂载到内容区域,打开带这招的弹窗时,内容区域以外的部分(标签栏、导航菜单等等)不会被遮挡。默认情况下,弹窗会挂载到body上。但是:挂载到内容区域时,作为页面根容器的`Page`组件,需要设置`auto-content-height`属性,以便弹窗能够正确计算高度。
114+
`appendToMain`可以指定将弹窗挂载到内容区域,打开这种弹窗时,内容区域以外的部分(标签栏、导航菜单等等)不会被遮挡。默认情况下,弹窗会挂载到body上。但是:挂载到内容区域时,作为页面根容器的`Page`组件,需要设置`auto-content-height`属性,以便弹窗能够正确计算高度。
115115

116116
:::
117117

packages/@core/ui-kit/form-ui/src/vben-use-form.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ function handleKeyDownEnter(event: KeyboardEvent) {
6262
watch(
6363
() => form.values,
6464
useDebounceFn(() => {
65-
(props.handleValuesChange ?? state.value.handleValuesChange)?.(
66-
toRaw(form.values),
67-
);
65+
forward.value.handleValuesChange?.(toRaw(form.values));
6866
state.value.submitOnChange && props.formApi?.submitForm();
6967
}, 300),
7068
{ deep: true },

0 commit comments

Comments
 (0)