docs: use antdv-next

This commit is contained in:
xingyu4j
2026-05-18 17:30:59 +08:00
parent 0c1b737325
commit 2f16ee7cf5
36 changed files with 48 additions and 50 deletions

View File

@@ -26,16 +26,15 @@ import {
notification,
Radio,
RadioGroup,
RangePicker,
Rate,
Select,
Space,
Switch,
Textarea,
TextArea,
TimePicker,
TreeSelect,
Upload,
} from 'ant-design-vue';
} from 'antdv-next';
const withDefaultPlaceholder = <T extends Component>(
component: T,
@@ -98,12 +97,12 @@ async function initComponentAdapter() {
},
Radio,
RadioGroup,
RangePicker,
RangePicker: withDefaultPlaceholder(DatePicker.RangePicker, 'select'),
Rate,
Select: withDefaultPlaceholder(Select, 'select'),
Space,
Switch,
Textarea: withDefaultPlaceholder(Textarea, 'input'),
Textarea: withDefaultPlaceholder(TextArea, 'input'),
TimePicker,
TreeSelect: withDefaultPlaceholder(TreeSelect, 'select'),
Upload,
@@ -118,7 +117,7 @@ async function initComponentAdapter() {
copyPreferencesSuccess: (title, content) => {
notification.success({
description: content,
message: title,
title,
placement: 'bottomRight',
});
},

View File

@@ -2,7 +2,7 @@ import { h } from 'vue';
import { setupVbenVxeTable, useVbenVxeGrid } from '@vben/plugins/vxe-table';
import { Button, Image } from 'ant-design-vue';
import { Button, Image } from 'antdv-next';
import { useVbenForm } from './form';