Meituan-Dianping / Meituan-Dianping/beeshell
FORM 表单的 Item 无法调整高度????
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 285
- PR merge metrics
- No merged PRs in 30d
Description
代码如下:
<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>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Form.Item component entry point and trace how the supplied style, especially height: 30, is applied to the rendered item. Reproduce the provided example and determine whether the height is ignored or overridden; the issue is done when the requested item height visibly takes effect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100