chore(docs): update the component import of the form adapter description in the document (#6656)
parent
3ad433a50b
commit
58e3941810
|
|
@ -90,30 +90,52 @@ import { h } from 'vue';
|
||||||
import { globalShareState, IconPicker } from '@vben/common-ui';
|
import { globalShareState, IconPicker } from '@vben/common-ui';
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
import {
|
const AutoComplete = defineAsyncComponent(
|
||||||
AutoComplete,
|
() => import('ant-design-vue/es/auto-complete'),
|
||||||
Button,
|
);
|
||||||
Checkbox,
|
const Button = defineAsyncComponent(() => import('ant-design-vue/es/button'));
|
||||||
CheckboxGroup,
|
const Checkbox = defineAsyncComponent(
|
||||||
DatePicker,
|
() => import('ant-design-vue/es/checkbox'),
|
||||||
Divider,
|
);
|
||||||
Input,
|
const CheckboxGroup = defineAsyncComponent(() =>
|
||||||
InputNumber,
|
import('ant-design-vue/es/checkbox').then((res) => res.CheckboxGroup),
|
||||||
InputPassword,
|
);
|
||||||
Mentions,
|
const DatePicker = defineAsyncComponent(
|
||||||
notification,
|
() => import('ant-design-vue/es/date-picker'),
|
||||||
Radio,
|
);
|
||||||
RadioGroup,
|
const Divider = defineAsyncComponent(() => import('ant-design-vue/es/divider'));
|
||||||
RangePicker,
|
const Input = defineAsyncComponent(() => import('ant-design-vue/es/input'));
|
||||||
Rate,
|
const InputNumber = defineAsyncComponent(
|
||||||
Select,
|
() => import('ant-design-vue/es/input-number'),
|
||||||
Space,
|
);
|
||||||
Switch,
|
const InputPassword = defineAsyncComponent(() =>
|
||||||
Textarea,
|
import('ant-design-vue/es/input').then((res) => res.InputPassword),
|
||||||
TimePicker,
|
);
|
||||||
TreeSelect,
|
const Mentions = defineAsyncComponent(
|
||||||
Upload,
|
() => import('ant-design-vue/es/mentions'),
|
||||||
} from 'ant-design-vue';
|
);
|
||||||
|
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>(
|
const withDefaultPlaceholder = <T extends Component>(
|
||||||
component: T,
|
component: T,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue