Эх сурвалжийг харах

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

xingyu4j 3 долоо хоног өмнө
parent
commit
9bb2026b4d

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

@@ -727,7 +727,9 @@ async function initComponentAdapter() {
       modelValueProp: 'value',
       modelValueProp: 'value',
     }),
     }),
     Input: withDefaultPlaceholder(Input, 'input'),
     Input: withDefaultPlaceholder(Input, 'input'),
-    InputNumber: withDefaultPlaceholder(InputNumber, 'input'),
+    InputNumber: withDefaultPlaceholder(InputNumber, 'input', {
+      style: { width: '100%' },
+    }),
     InputPassword: withDefaultPlaceholder(InputPassword, 'input'),
     InputPassword: withDefaultPlaceholder(InputPassword, 'input'),
     Mentions: withDefaultPlaceholder(Mentions, 'input'),
     Mentions: withDefaultPlaceholder(Mentions, 'input'),
     // 自定义主要按钮
     // 自定义主要按钮