Просмотр исходного кода

fix: 修复 InputNumber 组件宽度在表单中不占满的问题

xingyu4j 3 недель назад
Родитель
Сommit
9bb2026b4d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      playground/src/adapter/component/index.ts

+ 3 - 1
playground/src/adapter/component/index.ts

@@ -727,7 +727,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'),
     // 自定义主要按钮