Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
c222d675
Commit
c222d675
authored
Oct 13, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update components
parent
6375d51c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
24 deletions
+42
-24
src/components/FooterToolbar/demo/basic.md
src/components/FooterToolbar/demo/basic.md
+8
-1
src/components/GlobalFooter/demo/basic.md
src/components/GlobalFooter/demo/basic.md
+3
-1
src/components/HeaderSearch/index.js
src/components/HeaderSearch/index.js
+4
-1
src/components/HeaderSearch/index.less
src/components/HeaderSearch/index.less
+27
-21
No files found.
src/components/FooterToolbar/demo/basic.md
View file @
c222d675
...
@@ -11,7 +11,14 @@ import FooterToolbar from 'ant-design-pro/lib/FooterToolbar';
...
@@ -11,7 +11,14 @@ import FooterToolbar from 'ant-design-pro/lib/FooterToolbar';
import
{
Button
}
from
'
antd
'
;
import
{
Button
}
from
'
antd
'
;
ReactDOM
.
render
(
ReactDOM
.
render
(
<
div
style
=
{
{
background
:
'
#f7f7f7
'
}
}
>
<
div
style
=
{
{
background
:
'
#f7f7f7
'
,
padding
:
24
}
}
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
<
p
>
页面内容 页面内容 页面内容 页面内容
</
p
>
...
...
src/components/GlobalFooter/demo/basic.md
View file @
c222d675
...
@@ -25,6 +25,8 @@ const links = [{
...
@@ -25,6 +25,8 @@ const links = [{
const
copyright
=
<
div
>
Copyright
<
Icon
type
=
"copyright"
/>
2017 蚂蚁金服体验技术部出品
</
div
>;
const
copyright
=
<
div
>
Copyright
<
Icon
type
=
"copyright"
/>
2017 蚂蚁金服体验技术部出品
</
div
>;
ReactDOM
.
render
(
ReactDOM
.
render
(
<
GlobalFooter
links
=
{
links
}
copyright
=
{
copyright
}
/>
<
div
style
=
{
{
background
:
'
#f5f5f5
'
,
overflow
:
'
hidden
'
}
}
>
<
GlobalFooter
links
=
{
links
}
copyright
=
{
copyright
}
/>
</
div
>
,
mountNode
);
,
mountNode
);
````
````
src/components/HeaderSearch/index.js
View file @
c222d675
...
@@ -60,7 +60,10 @@ export default class HeaderSearch extends PureComponent {
...
@@ -60,7 +60,10 @@ export default class HeaderSearch extends PureComponent {
[
styles
.
show
]:
this
.
state
.
searchMode
,
[
styles
.
show
]:
this
.
state
.
searchMode
,
});
});
return
(
return
(
<
span
className
=
{
className
}
onClick
=
{
this
.
enterSearchMode
}
>
<
span
className
=
{
classNames
(
className
,
styles
.
headerSearch
)}
onClick
=
{
this
.
enterSearchMode
}
>
<
Icon
type
=
"
search
"
/>
<
Icon
type
=
"
search
"
/>
<
AutoComplete
<
AutoComplete
className
=
{
inputClass
}
className
=
{
inputClass
}
...
...
src/components/HeaderSearch/index.less
View file @
c222d675
@import "~antd/lib/style/themes/default.less";
@import "~antd/lib/style/themes/default.less";
.input {
.headerSearch {
transition: width .3s, margin-left .3s;
:global(.anticon-search) {
width: 0;
cursor: pointer;
background: transparent;
font-size: 16px;
border-radius: 0;
:global(.ant-select-selection) {
background: transparent;
}
input {
border: 0;
padding-left: 0;
padding-right: 0;
box-shadow: none !important;
}
}
&,
.input {
&:hover,
transition: width .3s, margin-left .3s;
&:focus {
width: 0;
border-bottom: 1px solid @border-color-base;
background: transparent;
}
border-radius: 0;
&.show {
:global(.ant-select-selection) {
width: 210px;
background: transparent;
margin-left: 8px;
}
input {
border: 0;
padding-left: 0;
padding-right: 0;
box-shadow: none !important;
}
&,
&:hover,
&:focus {
border-bottom: 1px solid @border-color-base;
}
&.show {
width: 210px;
margin-left: 8px;
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment