Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 43adc943
authored
Dec 11, 2024
by
Netfan
Committed by
GitHub
Dec 11, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: fix typos (#5105)
1 parent
4a20156f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
docs/src/components/common-ui/vben-form.md
docs/src/components/common-ui/vben-modal.md
packages/@core/ui-kit/form-ui/src/vben-use-form.vue
docs/src/components/common-ui/vben-form.md
View file @
43adc94
...
...
@@ -306,6 +306,7 @@ useVbenForm 返回的第二个参数,是一个对象,包含了一些表单
| actionWrapperClass | 表单操作区域class |
`any`
| - |
| handleReset | 表单重置回调 |
`(values: Record<string, any>,) => Promise<void> \| void`
| - |
| handleSubmit | 表单提交回调 |
`(values: Record<string, any>,) => Promise<void> \| void`
| - |
| handleValuesChange | 表单值变化回调 |
`(values: Record<string, any>,) => void`
| - |
| resetButtonOptions | 重置按钮组件参数 |
`ActionButtonOptions`
| - |
| submitButtonOptions | 提交按钮组件参数 |
`ActionButtonOptions`
| - |
| showDefaultActions | 是否显示默认操作按钮 |
`boolean`
|
`true`
|
...
...
docs/src/components/common-ui/vben-modal.md
View file @
43adc94
...
...
@@ -111,7 +111,7 @@ const [Modal, modalApi] = useVbenModal({
::: info appendToMain
`appendToMain`
可以指定将弹窗挂载到内容区域,打开
带这招的
弹窗时,内容区域以外的部分(标签栏、导航菜单等等)不会被遮挡。默认情况下,弹窗会挂载到body上。但是:挂载到内容区域时,作为页面根容器的
`Page`
组件,需要设置
`auto-content-height`
属性,以便弹窗能够正确计算高度。
`appendToMain`
可以指定将弹窗挂载到内容区域,打开
这种
弹窗时,内容区域以外的部分(标签栏、导航菜单等等)不会被遮挡。默认情况下,弹窗会挂载到body上。但是:挂载到内容区域时,作为页面根容器的
`Page`
组件,需要设置
`auto-content-height`
属性,以便弹窗能够正确计算高度。
:::
...
...
packages/@core/ui-kit/form-ui/src/vben-use-form.vue
View file @
43adc94
...
...
@@ -62,9 +62,7 @@ function handleKeyDownEnter(event: KeyboardEvent) {
watch
(
()
=>
form
.
values
,
useDebounceFn
(()
=>
{
(
props
.
handleValuesChange
??
state
.
value
.
handleValuesChange
)?.(
toRaw
(
form
.
values
),
);
forward
.
value
.
handleValuesChange
?.(
toRaw
(
form
.
values
));
state
.
value
.
submitOnChange
&&
props
.
formApi
?.
submitForm
();
},
300
),
{
deep
:
true
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment