|
|
@@ -131,8 +131,8 @@ const PreviewGroup = defineAsyncComponent(() =>
|
|
|
import('ant-design-vue/es/image').then((res) => res.ImagePreviewGroup),
|
|
|
);
|
|
|
|
|
|
-const withDefaultPlaceholder = <T extends Component>(
|
|
|
- component: T,
|
|
|
+const withDefaultPlaceholder = (
|
|
|
+ component: Component,
|
|
|
type: 'input' | 'select',
|
|
|
componentProps: Recordable<any> = {},
|
|
|
) => {
|
|
|
@@ -702,7 +702,9 @@ async function initComponentAdapter() {
|
|
|
modelValueProp: 'value',
|
|
|
}),
|
|
|
Input: withDefaultPlaceholder(Input, 'input'),
|
|
|
- InputNumber: withDefaultPlaceholder(InputNumber, 'input'),
|
|
|
+ InputNumber: withDefaultPlaceholder(InputNumber, 'input', {
|
|
|
+ style: { width: '100%' },
|
|
|
+ }),
|
|
|
InputPassword: withDefaultPlaceholder(InputPassword, 'input'),
|
|
|
Mentions: withDefaultPlaceholder(Mentions, 'input'),
|
|
|
// 自定义主要按钮
|