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 { import {
Button, Button,
Form, Form,
FormItem,
Input, Input,
InputNumber, InputNumber,
message, message,
@ -15,6 +16,7 @@ import {
RadioButton, RadioButton,
RadioGroup, RadioGroup,
Select, Select,
SelectOption,
TabPane, TabPane,
Tabs, Tabs,
} from 'antdv-next'; } from 'antdv-next';

View File

@ -4,7 +4,7 @@ import { nextTick, reactive, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui'; 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'; import { loadBaiduMapSdk } from './utils';

View File

@ -12,7 +12,14 @@ import {
OtherPlatformEnum, OtherPlatformEnum,
} from '@vben/constants'; } 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'; import { drawImage } from '#/api/ai/image';

View File

@ -17,7 +17,15 @@ import {
NijiVersionList, NijiVersionList,
} from '@vben/constants'; } 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 { midjourneyImagine } from '#/api/ai/image';
import { ImageUpload } from '#/components/upload'; import { ImageUpload } from '#/components/upload';

View File

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

View File

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

View File

@ -10,7 +10,7 @@ import { computed, getCurrentInstance, inject, onMounted, ref } from 'vue';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { generateAcceptedFileTypes } from '@vben/utils'; 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'; import { useUpload } from '#/components/upload/use-upload';
type UploadRequestOption = any; type UploadRequestOption = any;

View File

@ -1,7 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { reactive } from 'vue'; 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'; 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 { ref, unref } from 'vue';
import { Button, Card } from 'antdv-next'; import { Button, Card, RadioButton, RadioGroup } from 'antdv-next';
import desc from './desc.vue'; import desc from './desc.vue';
import lyric from './lyric.vue'; import lyric from './lyric.vue';

View File

@ -1,7 +1,15 @@
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, ref } from 'vue'; 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'; import Title from '../title/index.vue';

View File

@ -4,7 +4,14 @@ import { ref } from 'vue';
import { DICT_TYPE } from '@vben/constants'; import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks'; 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; type Rule = any;
const modelData = defineModel<any>(); // const modelData = defineModel<any>(); //

View File

@ -8,7 +8,7 @@ import { IconifyIcon } from '@vben/icons';
import { Tinyflow } from '@vben/plugins/tinyflow'; import { Tinyflow } from '@vben/plugins/tinyflow';
import { isNumber } from '@vben/utils'; 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'; import { testWorkflow } from '#/api/ai/workflow';

View File

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

View File

@ -1,7 +1,14 @@
<script lang="ts" setup> <script lang="ts" setup>
import { nextTick, onBeforeUnmount, ref, toRaw, watch } from 'vue'; 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' }); 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 { 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'; import { getFormSimpleList } from '#/api/bpm/form';

View File

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

View File

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

View File

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

View File

@ -18,11 +18,13 @@ import {
import { import {
Button, Button,
Form, Form,
FormItem,
Input, Input,
message, message,
Pagination, Pagination,
DateRangePicker as RangePicker, DateRangePicker as RangePicker,
Select, Select,
SelectOption,
} from 'antdv-next'; } from 'antdv-next';
import { VxeColumn, VxeTable } from '#/adapter/vxe-table'; 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 { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks'; import { getDictOptions } from '@vben/hooks';
import { import { Form, FormItem, Input, message, Radio, RadioGroup } from 'antdv-next';
Form,
Input,
message,
Radio,
RadioGroup,
} from 'antdv-next';
import { DatePicker } from '#/adapter/component/date-picker'; import { DatePicker } from '#/adapter/component/date-picker';
import { import {

View File

@ -13,7 +13,14 @@ import {
isEmpty, isEmpty,
} from '@vben/utils'; } 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 { VxeColumn, VxeTable } from '#/adapter/vxe-table';
import { import {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,11 +18,13 @@ import {
import { import {
Button, Button,
Form, Form,
FormItem,
Input, Input,
message, message,
Pagination, Pagination,
DateRangePicker as RangePicker, DateRangePicker as RangePicker,
Select, Select,
SelectOption,
Tabs, Tabs,
} from 'antdv-next'; } 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 { 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'; import { getDemo03GradeByStudentId } from '#/api/infra/demo/demo03/normal';

View File

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

View File

@ -18,11 +18,13 @@ import {
import { import {
Button, Button,
Form, Form,
FormItem,
Input, Input,
message, message,
Pagination, Pagination,
DateRangePicker as RangePicker, DateRangePicker as RangePicker,
Select, Select,
SelectOption,
} from 'antdv-next'; } from 'antdv-next';
import { VxeColumn, VxeTable } from '#/adapter/vxe-table'; 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 { 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'; import { getDemo03GradeByStudentId } from '#/api/infra/demo/demo03/normal';

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import { computed, ref, watch } from 'vue';
import { IconifyIcon } from '@vben/icons'; 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 { import {
createPropertyValue, createPropertyValue,

View File

@ -11,7 +11,7 @@ import { IconifyIcon } from '@vben/icons';
import { useAccessStore } from '@vben/stores'; import { useAccessStore } from '@vben/stores';
import { isEmpty } from '@vben/utils'; 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 { updateDiyPageProperty } from '#/api/mall/promotion/diy/page';
import { import {

View File

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

View File

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

View File

@ -3,7 +3,16 @@ import { computed, ref } from 'vue';
import { IconifyIcon } from '@vben/icons'; 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'; import { WxMaterialSelect, WxNews, WxReply } from '#/views/mp/components';