Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ant-input-group 期望支持选择框在前,输入框在后的场景 #1927

Closed
kasinooya opened this issue Jun 1, 2016 · 6 comments
Closed
Assignees

Comments

@kasinooya
Copy link
Contributor

kasinooya commented Jun 1, 2016

需求如题,这样的应用场景比较多。

目前代码为:

<FormItem
  label="select 标签输入框:"
  labelCol={{ span: 6 }}
  wrapperCol={{ span: 16 }}>
  <InputGroup>
    <Input size="large" placeholder="www.mysite" />
    <div className="ant-input-group-wrap">
      <Select defaultValue=".com" style={{ width: 70 }}>
        <Option value=".com">.com</Option>
        <Option value=".jp">.jp</Option>
        <Option value=".cn">.cn</Option>
        <Option value=".org">.org</Option>
      </Select>
    </div>
  </InputGroup>
</FormItem>

期望,把Select放在前面自动变成选择框在前,输入框在后的样式。

P.S. 目前InputGroup的样式有点问题,input高度28px和select不一致

http://codepen.io/kasinooya/pen/aZzLbq?editors=001

@ddcat1115
Copy link
Contributor

高度问题是因为页面class "advanced-search-form" 与antd中的设置冲突,此问题会修复掉。
顺序灵活的需求可以列入改进计划~

@ddcat1115 ddcat1115 added 🐛 Bug Ant Design Team had proved that this is a bug. Improvement 🕙 Plan labels Jun 2, 2016
@ddcat1115 ddcat1115 self-assigned this Jun 2, 2016
@ddcat1115
Copy link
Contributor

样式冲突问题已在1.4.0中解决

@ddcat1115 ddcat1115 removed the 🐛 Bug Ant Design Team had proved that this is a bug. label Jun 16, 2016
ddcat1115 added a commit to ddcat1115/ant-design that referenced this issue Jun 16, 2016
@afc163 afc163 closed this as completed in fade8d7 Jun 16, 2016
@kasinooya
Copy link
Contributor Author

期望,把Select放在前面自动变成选择框在前,输入框在后的样式。

这个需求还是没有完成啊!

@kasinooya kasinooya reopened this Jun 28, 2016
@afc163
Copy link
Member

afc163 commented Jun 28, 2016

@kasinooya
Copy link
Contributor Author

ok,看到了,我看之前关联的记录没有

@lock
Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants