fix(@vben/web-antdv-next): 添加 SelectOption、RadioButton、RadioGroup 和 FormItem 组件导入

pull/364/head
XuZhiqiang 2026-06-18 16:01:05 +08:00
parent 409af6b39c
commit af681338c7
41 changed files with 104 additions and 45 deletions

View File

@ -8,6 +8,7 @@ import { computed, onMounted, reactive, ref, watch } from 'vue';
import {
Button,
Form,
FormItem,
Input,
InputNumber,
message,
@ -15,6 +16,7 @@ import {
RadioButton,
RadioGroup,
Select,
SelectOption,
TabPane,
Tabs,
} from 'antdv-next';

View File

@ -4,7 +4,7 @@ import { nextTick, reactive, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { Button, Form, Input, Select, Space } from 'antdv-next';
import { Button, Form, FormItem, Input, Select, Space } from 'antdv-next';
import { loadBaiduMapSdk } from './utils';

View File

@ -12,7 +12,14 @@ import {
OtherPlatformEnum,
} from '@vben/constants';
import { Button, InputNumber, Select, Space, TextArea } from 'antdv-next';
import {
Button,
InputNumber,
Select,
SelectOption,
Space,
TextArea,
} from 'antdv-next';
import { drawImage } from '#/api/ai/image';

View File

@ -17,7 +17,15 @@ import {
NijiVersionList,
} from '@vben/constants';
import { Button, Image, message, Select, Space, TextArea } from 'antdv-next';
import {
Button,
Image,
message,
Select,
SelectOption,
Space,
TextArea,
} from 'antdv-next';
import { midjourneyImagine } from '#/api/ai/image';
import { ImageUpload } from '#/components/upload';

View File

@ -19,6 +19,7 @@ import {
InputNumber,
message,
Select,
SelectOption,
Space,
TextArea,
} from 'antdv-next';

View File

@ -10,6 +10,7 @@ import {
Dropdown,
Empty,
Form,
FormItem,
InputNumber,
Menu,
MenuItem,

View File

@ -10,7 +10,7 @@ import { computed, getCurrentInstance, inject, onMounted, ref } from 'vue';
import { IconifyIcon } from '@vben/icons';
import { generateAcceptedFileTypes } from '@vben/utils';
import { Button, Form, message, UploadDragger } from 'antdv-next';
import { Button, Form, FormItem, message, UploadDragger } from 'antdv-next';
import { useUpload } from '#/components/upload/use-upload';
type UploadRequestOption = any;

View File

@ -1,7 +1,7 @@
<script lang="ts" setup>
import { reactive } from 'vue';
import { Select, Switch, TextArea } from 'antdv-next';
import { Select, SelectOption, Switch, TextArea } from 'antdv-next';
import Title from '../title/index.vue';

View File

@ -3,7 +3,7 @@ import type { Nullable, Recordable } from '@vben/types';
import { ref, unref } from 'vue';
import { Button, Card } from 'antdv-next';
import { Button, Card, RadioButton, RadioGroup } from 'antdv-next';
import desc from './desc.vue';
import lyric from './lyric.vue';

View File

@ -1,7 +1,15 @@
<script lang="ts" setup>
import { reactive, ref } from 'vue';
import { Button, Input, Select, Space, Tag, TextArea } from 'antdv-next';
import {
Button,
Input,
Select,
SelectOption,
Space,
Tag,
TextArea,
} from 'antdv-next';
import Title from '../title/index.vue';

View File

@ -4,7 +4,14 @@ import { ref } from 'vue';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { Form, Input, Select, TextArea } from 'antdv-next';
import {
Form,
FormItem,
Input,
Select,
SelectOption,
TextArea,
} from 'antdv-next';
type Rule = any;
const modelData = defineModel<any>(); //

View File

@ -8,7 +8,7 @@ import { IconifyIcon } from '@vben/icons';
import { Tinyflow } from '@vben/plugins/tinyflow';
import { isNumber } from '@vben/utils';
import { Button, Input, Select } from 'antdv-next';
import { Button, Input, Select, SelectOption } from 'antdv-next';
import { testWorkflow } from '#/api/ai/workflow';

View File

@ -20,6 +20,7 @@ import { IconifyIcon } from '@vben/icons';
import {
Button,
Divider,
FormItem,
Input,
Radio,
RadioGroup,

View File

@ -1,7 +1,14 @@
<script lang="ts" setup>
import { nextTick, onBeforeUnmount, ref, toRaw, watch } from 'vue';
import { Form, FormItem, Input, Select, TextArea } from 'antdv-next';
import {
Form,
FormItem,
Input,
Select,
SelectOption,
TextArea,
} from 'antdv-next';
defineOptions({ name: 'FlowCondition' });

View File

@ -4,7 +4,7 @@ import { computed, inject, nextTick, onMounted, ref, toRaw, watch } from 'vue';
import { cloneDeep } from '@vben/utils';
import { Form, FormItem, Select } from 'antdv-next';
import { Form, FormItem, Select, SelectOption } from 'antdv-next';
import { getFormSimpleList } from '#/api/bpm/form';

View File

@ -11,6 +11,7 @@ import {
Radio,
RadioGroup,
Select,
SelectOption,
} from 'antdv-next';
import {

View File

@ -9,6 +9,7 @@ import {
Input,
InputNumber,
Radio,
RadioGroup,
TabPane,
Tabs,
} from 'antdv-next';

View File

@ -18,9 +18,12 @@ import {
Avatar,
Button,
Form,
FormItem,
Input,
Radio,
RadioGroup,
Select,
SelectOption,
TextArea,
Tooltip,
} from 'antdv-next';
@ -281,16 +284,10 @@ defineExpose({ validate });
class="w-full"
v-model:value="modelData.category"
allow-clear
:field-names="{ label: 'name', value: 'code' }"
:options="categoryList"
placeholder="请选择流程分类"
>
<SelectOption
v-for="category in categoryList"
:key="category.code"
:value="category.code"
>
{{ category.name }}
</SelectOption>
</Select>
/>
</FormItem>
<FormItem label="流程图标">
<ImageUpload v-model:value="modelData.icon" />

View File

@ -4,7 +4,7 @@ import type { SystemDictTypeApi } from '#/api/system/dict/type';
import { nextTick, onMounted, ref, watch } from 'vue';
import { Checkbox, Input, Select } from 'antdv-next';
import { Checkbox, Input, Select, SelectOption } from 'antdv-next';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getSimpleDictTypeList } from '#/api/system/dict/type';

View File

@ -18,11 +18,13 @@ import {
import {
Button,
Form,
FormItem,
Input,
message,
Pagination,
DateRangePicker as RangePicker,
Select,
SelectOption,
} from 'antdv-next';
import { VxeColumn, VxeTable } from '#/adapter/vxe-table';

View File

@ -7,13 +7,7 @@ import { useVbenModal } from '@vben/common-ui';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import {
Form,
Input,
message,
Radio,
RadioGroup,
} from 'antdv-next';
import { Form, FormItem, Input, message, Radio, RadioGroup } from 'antdv-next';
import { DatePicker } from '#/adapter/component/date-picker';
import {

View File

@ -13,7 +13,14 @@ import {
isEmpty,
} from '@vben/utils';
import { Button, DateRangePicker, Form, Input, message } from 'antdv-next';
import {
Button,
DateRangePicker,
Form,
FormItem,
Input,
message,
} from 'antdv-next';
import { VxeColumn, VxeTable } from '#/adapter/vxe-table';
import {

View File

@ -6,7 +6,7 @@ import { computed, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { handleTree } from '@vben/utils';
import { Form, Input, message, TreeSelect } from 'antdv-next';
import { Form, FormItem, Input, message, TreeSelect } from 'antdv-next';
import {
createDemo02Category,

View File

@ -18,11 +18,13 @@ import {
import {
Button,
Form,
FormItem,
Input,
message,
Pagination,
DateRangePicker as RangePicker,
Select,
SelectOption,
Tabs,
} from 'antdv-next';

View File

@ -5,7 +5,7 @@ import { computed, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { Form, Input, message } from 'antdv-next';
import { Form, FormItem, Input, message } from 'antdv-next';
import {
createDemo03Course,

View File

@ -11,6 +11,7 @@ import { cloneDeep, formatDateTime, isEmpty } from '@vben/utils';
import {
Button,
Form,
FormItem,
Input,
message,
Pagination,

View File

@ -5,7 +5,7 @@ import { computed, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { Form, Input, message } from 'antdv-next';
import { Form, FormItem, Input, message } from 'antdv-next';
import {
createDemo03Grade,

View File

@ -11,6 +11,7 @@ import { cloneDeep, formatDateTime, isEmpty } from '@vben/utils';
import {
Button,
Form,
FormItem,
Input,
message,
Pagination,

View File

@ -7,13 +7,7 @@ import { useVbenModal } from '@vben/common-ui';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import {
Form,
Input,
message,
Radio,
RadioGroup,
} from 'antdv-next';
import { Form, FormItem, Input, message, Radio, RadioGroup } from 'antdv-next';
import { DatePicker } from '#/adapter/component/date-picker';
import {

View File

@ -18,11 +18,13 @@ import {
import {
Button,
Form,
FormItem,
Input,
message,
Pagination,
DateRangePicker as RangePicker,
Select,
SelectOption,
Tabs,
} from 'antdv-next';

View File

@ -3,7 +3,7 @@ import type { Demo03StudentApi } from '#/api/infra/demo/demo03/normal';
import { nextTick, ref, watch } from 'vue';
import { Form, Input } from 'antdv-next';
import { Form, FormItem, Input } from 'antdv-next';
import { getDemo03GradeByStudentId } from '#/api/infra/demo/demo03/normal';

View File

@ -9,6 +9,7 @@ import { getDictOptions } from '@vben/hooks';
import {
Form,
FormItem,
Input,
message,
Radio,

View File

@ -18,11 +18,13 @@ import {
import {
Button,
Form,
FormItem,
Input,
message,
Pagination,
DateRangePicker as RangePicker,
Select,
SelectOption,
} from 'antdv-next';
import { VxeColumn, VxeTable } from '#/adapter/vxe-table';

View File

@ -3,7 +3,7 @@ import type { Demo03StudentApi } from '#/api/infra/demo/demo03/normal';
import { nextTick, ref, watch } from 'vue';
import { Form, Input } from 'antdv-next';
import { Form, FormItem, Input } from 'antdv-next';
import { getDemo03GradeByStudentId } from '#/api/infra/demo/demo03/normal';

View File

@ -9,6 +9,7 @@ import { getDictOptions } from '@vben/hooks';
import {
Form,
FormItem,
Input,
message,
Radio,

View File

@ -19,6 +19,7 @@ import {
Input,
message,
Select,
SelectOption,
Tag,
TextArea,
} from 'antdv-next';

View File

@ -7,7 +7,7 @@ import { computed, ref, watch } from 'vue';
import { IconifyIcon } from '@vben/icons';
import { Col, Divider, message, Select, Tag } from 'antdv-next';
import { Col, Divider, message, Select, SelectOption, Tag } from 'antdv-next';
import {
createPropertyValue,

View File

@ -11,7 +11,7 @@ import { IconifyIcon } from '@vben/icons';
import { useAccessStore } from '@vben/stores';
import { isEmpty } from '@vben/utils';
import { message, RadioGroup } from 'antdv-next';
import { message, RadioButton, RadioGroup } from 'antdv-next';
import { updateDiyPageProperty } from '#/api/mall/promotion/diy/page';
import {

View File

@ -6,7 +6,7 @@ import type { MpAccountApi } from '#/api/mp/account';
import { onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { message, Select } from 'antdv-next';
import { message, Select, SelectOption } from 'antdv-next';
import { getSimpleAccountList } from '#/api/mp/account';

View File

@ -11,6 +11,7 @@ import {
Button,
Divider,
Form,
FormItem,
Input,
message,
Modal,

View File

@ -3,7 +3,16 @@ import { computed, ref } from 'vue';
import { IconifyIcon } from '@vben/icons';
import { Button, Col, Input, message, Modal, Row, Select } from 'antdv-next';
import {
Button,
Col,
Input,
message,
Modal,
Row,
Select,
SelectOption,
} from 'antdv-next';
import { WxMaterialSelect, WxNews, WxReply } from '#/views/mp/components';