用于自动调整大小和反应选择的CSS样式

时间:2018-05-21 13:01:17

标签: css reactjs react-select

我正在尝试将this autosize功能复制到v2组件上。但我试图用我自己的自定义类替换类:

.select-wrapper {
  display: inline-block;
  text-align: center;
}

.select-custom-class .select-custom-class__multi-value {
  padding-right: 20px;
}

.select-custom-class .select-custom-class__menu {
  text-align: left;
}

.select-custom-class__placeholder, .select-custom-class__control .select-custom-class__value-container {
  position: relative;
  padding-left: 0;
}

.select-custom-class__control, .select-custom__clear-indicator, .select-custom-class__dropdown-indicator {
  display: inherit;
}

.select-custom-class .select-custom-class__multi-value {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.select-custom-class__clear-indicators {
  display:none;
  position: absolute;
  top: 8px;
  right: 20px;
}
.select-custom-class__dropdown-indicator {
  position: absolute;
  top: 8px;
  right: 0px;
}

我没有让组件自动调整大小,而是获得了一个非常小的组件。请帮我这个css映射。另外,我看不到任何菜单css样式名称,我怎样才能得到它们的列表?我想从this列表中猜测。

0 个答案:

没有答案