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