减少本机基本输入行的长度
reduce length of native base input line
我在我的应用程序中使用这个:
<Item fixedLabel>
<Input style={{ width: 0.5 }}/>
</Item>
fixedLabel 行的长度延伸到整个屏幕。我怎样才能减少它的大小?我已经尝试过使用 width
和 paddingLeft/right
,但没有任何区别。
将其包裹在 div 中,然后为其添加样式 div
<div className='cusmtomClass'>
<Item fixedLabel>
<Input style={{ width: 0.5 }}/>
</Item>
</div>
我在我的应用程序中使用这个:
<Item fixedLabel>
<Input style={{ width: 0.5 }}/>
</Item>
fixedLabel 行的长度延伸到整个屏幕。我怎样才能减少它的大小?我已经尝试过使用 width
和 paddingLeft/right
,但没有任何区别。
将其包裹在 div 中,然后为其添加样式 div
<div className='cusmtomClass'>
<Item fixedLabel>
<Input style={{ width: 0.5 }}/>
</Item>
</div>