相关疑难解决方法(0)

弹性容器中的反应选择

如何让 react-select 尊重 flex 布局?以下没有任何工作。

 const Container = styled('div')`
   width: 100%;
   height: 100%;
   display: flex;
   flex-flow: row wrap;
   justify-content: space-around;
   align-items: baseline;
 `;

const selectStyles = {
  input: base => ({
    minWidth: 200,
    flex: 1,

<Container>
<Select
  style={{ flex: 1 }}
  styles={selectStyles}
Run Code Online (Sandbox Code Playgroud)

javascript flexbox reactjs react-select

3
推荐指数
1
解决办法
2963
查看次数

标签 统计

flexbox ×1

javascript ×1

react-select ×1

reactjs ×1