Open liberalisman opened 5 years ago
代码如下:
<Form style={{ marginLeft: 10,marginRight: 10,borderRadius : 4,marginTop: 10}}> <Form.Item style={{height: 30}} label={ <View style={{ flexDirection: 'row', alignItems: 'center', flex: 1, marginRight: 10 }}> <Text style={{ color: 'red', marginRight: 5 }}>*</Text> <Text style={{fontSize:14}}>CPU</Text> </View> } hasLine > <Input style={{fontSize:14}} testID='name' placeholder='请输入CPU型号' textAlign='right' inputStyle={{ textAlign: 'right' }} onChange={(value) => { }} /> </Form.Item> </Form>
经过测试 paddingVertical 属性是生效的,直接在 style 中设置 Height 是有问题的
代码如下: