一些小问题

This commit is contained in:
rickcole 2019-06-13 15:22:34 +08:00
parent 2a11382ab4
commit bda8cb5e96
5 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ npm run coverage
## 如何贡献
请采用 typescript 编写,所有合理的改动、新的公用渲染器、用或者文档的提交都会被接收。
请采用 typescript 编写,所有合理的改动、新的公用渲染器、用或者文档的提交都会被接收。
## 维护者

View File

@ -712,7 +712,7 @@ export class App extends React.PureComponent {
)}
</div>
<DocSearch />
<DocSearch theme={this.state.theme.value} />
</div>
</div>
);

View File

@ -41,7 +41,7 @@ export default class DocSearch extends React.Component {
render() {
return (
<FormComponent showCode={false} />
<FormComponent showCode={false} theme={this.props.theme} />
);
}
}

View File

@ -82,8 +82,8 @@
position: relative;
svg {
width: px2rem(20px);
height: px2rem(20px);
width: px2rem(12px);
height: px2rem(12px);
position: absolute;
top: 50%;
left: 50%;

View File

@ -238,7 +238,7 @@ export default class NestedSelectControl extends React.Component<NestedSelectPro
onClick={this.handleOptionClick.bind(this, option)}
>
<span>{option.label}</span>
{option.children ? (<span className={cx('NestedSelect-arrowZone')}><span className={cx('NestedSelect-optionArrowRight')}></span></span>) : null}
{option.children ? (<div className={cx('NestedSelect-optionArrowRight')}>{rightArrowIcon}</div>) : null}
{option.children && option.children.length ? this.renderOptions(option.children, true, false) : null}
</div>