Meituan-Dianping / Meituan-Dianping/beeshell

FORM 表单的 Item 无法调整高度????

Open
#72 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.