|
|
|
@ -31,8 +31,14 @@ const Button = defineAsyncComponent(() => import('ant-design-vue/es/button')); |
|
|
|
const Checkbox = defineAsyncComponent( |
|
|
|
() => import('ant-design-vue/es/checkbox'), |
|
|
|
); |
|
|
|
const ColorPicker = defineAsyncComponent(() => |
|
|
|
import('vue3-colorpicker').then((res) => { |
|
|
|
import('vue3-colorpicker/style.css'); |
|
|
|
return res.ColorPicker; |
|
|
|
}), |
|
|
|
); |
|
|
|
const CheckboxGroup = defineAsyncComponent(() => |
|
|
|
import('ant-design-vue/es/checkbox').then((res) => res.CheckboxGroup), |
|
|
|
import('ant-design-vue/es').then((res) => res.CheckboxGroup), |
|
|
|
); |
|
|
|
const DatePicker = defineAsyncComponent( |
|
|
|
() => import('ant-design-vue/es/date-picker'), |
|
|
|
@ -117,6 +123,7 @@ export type ComponentType = |
|
|
|
| 'AutoComplete' |
|
|
|
| 'Checkbox' |
|
|
|
| 'CheckboxGroup' |
|
|
|
| 'ColorPicker' |
|
|
|
| 'DatePicker' |
|
|
|
| 'DefaultButton' |
|
|
|
| 'Divider' |
|
|
|
@ -182,6 +189,7 @@ async function initComponentAdapter() { |
|
|
|
AutoComplete, |
|
|
|
Checkbox, |
|
|
|
CheckboxGroup, |
|
|
|
ColorPicker, |
|
|
|
DatePicker, |
|
|
|
// 自定义默认按钮
|
|
|
|
DefaultButton: (props, { attrs, slots }) => { |
|
|
|
|