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 58e39418
authored
Aug 19, 2025
by
谦元吉
Committed by
GitHub
Aug 19, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore(docs): update the component import of the form adapter description in the document (#6656)
1 parent
3ad433a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
24 deletions
docs/src/components/common-ui/vben-form.md
docs/src/components/common-ui/vben-form.md
View file @
58e3941
...
...
@@ -90,30 +90,52 @@ import { h } from 'vue';
import
{
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
$t
}
from
'@vben/locales'
;
import
{
AutoComplete
,
Button
,
Checkbox
,
CheckboxGroup
,
DatePicker
,
Divider
,
Input
,
InputNumber
,
InputPassword
,
Mentions
,
notification
,
Radio
,
RadioGroup
,
RangePicker
,
Rate
,
Select
,
Space
,
Switch
,
Textarea
,
TimePicker
,
TreeSelect
,
Upload
,
}
from
'ant-design-vue'
;
const
AutoComplete
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/auto-complete'
),
);
const
Button
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/button'
));
const
Checkbox
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/checkbox'
),
);
const
CheckboxGroup
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/checkbox'
).
then
((
res
)
=>
res
.
CheckboxGroup
),
);
const
DatePicker
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/date-picker'
),
);
const
Divider
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/divider'
));
const
Input
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/input'
));
const
InputNumber
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/input-number'
),
);
const
InputPassword
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/input'
).
then
((
res
)
=>
res
.
InputPassword
),
);
const
Mentions
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/mentions'
),
);
const
Radio
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/radio'
));
const
RadioGroup
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/radio'
).
then
((
res
)
=>
res
.
RadioGroup
),
);
const
RangePicker
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/date-picker'
).
then
((
res
)
=>
res
.
RangePicker
),
);
const
Rate
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/rate'
));
const
Select
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/select'
));
const
Space
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/space'
));
const
Switch
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/switch'
));
const
Textarea
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/input'
).
then
((
res
)
=>
res
.
Textarea
),
);
const
TimePicker
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/time-picker'
),
);
const
TreeSelect
=
defineAsyncComponent
(
()
=>
import
(
'ant-design-vue/es/tree-select'
),
);
const
Upload
=
defineAsyncComponent
(()
=>
import
(
'ant-design-vue/es/upload'
));
const
withDefaultPlaceholder
=
<
T
extends
Component
>
(
component
:
T
,
...
...
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