Merge pull request #79 from RickCole21/master

一点小问题
This commit is contained in:
liaoxuezhi 2019-06-13 15:35:59 +08:00 committed by GitHub
commit bfe73e0dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>