提交 8f39e43f 编写于 作者: A afc163

improve components search dropdown style

上级 4135a00e
......@@ -18,7 +18,7 @@ $(function () {
return <Option sData={s} key={s.title} text={'跳转到 ' + s.title}>
<strong>{s.title}</strong>
&nbsp;
<span>{s.desc}</span>
<span className="ant-component-decs">{s.desc}</span>
</Option>;
});
},
......@@ -34,12 +34,11 @@ $(function () {
},
render() {
return <Select combobox style={{width: 200}}
return <Select combobox style={{width: 260}}
onSelect={this.handleSelect}
optionLabelProp="text"
dropdownMenuStyle={{maxHeight: 200, overflow: 'auto'}}
searchPlaceholder="搜索组件..."
renderDropdownToBody={true}
filterOption={this.filterOption}>{this.getOptions()}</Select>;
}
});
......
......@@ -78,7 +78,7 @@
{% block scripts %}{% endblock %}
</head>
<body {% block bodyAttribute %}{% endblock %}>
<header id="header">
<header id="header" class="clearfix">
<a class="logo" href="/">
<img width="60" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg">
{{ config.site.name }}
......
......@@ -117,7 +117,6 @@ a:hover {
header {
width: 100%;
background: #fff;
overflow: hidden;
border-bottom: 1px solid #eee;
font-size: 16px;
}
......@@ -167,6 +166,10 @@ a.logo {
margin-top: -2px;
}
#autoComplete .ant-select {
font-size: 14px;
}
#autoComplete .ant-select-selection--single {
border: transparent;
outline: none;
......@@ -179,6 +182,20 @@ a.logo {
box-shadow: none;
}
#autoComplete .ant-select-dropdown {
border: 0;
border-radius: 0;
box-shadow: 0 0 8px rgba(0,0,0,0.25);
}
#autoComplete .ant-component-decs {
font-size: 12px;
position: absolute;
top: 9px;
color: #aaa;
right: 16px;
}
#autoComplete input::-webkit-input-placeholder,
#autoComplete input::-moz-placeholder,
#autoComplete input:-ms-input-placeholder {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册