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
2fbc37b0
Commit
2fbc37b0
authored
Jun 04, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix eslint error
parent
2982d869
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
22 deletions
+27
-22
src/components/EditableLinkGroup/index.js
src/components/EditableLinkGroup/index.js
+5
-6
src/components/HeaderSearch/index.js
src/components/HeaderSearch/index.js
+11
-9
src/components/Login/index.js
src/components/Login/index.js
+9
-6
src/components/NoticeIcon/index.js
src/components/NoticeIcon/index.js
+2
-1
No files found.
src/components/EditableLinkGroup/index.js
View file @
2fbc37b0
...
@@ -6,18 +6,17 @@ import styles from './index.less';
...
@@ -6,18 +6,17 @@ import styles from './index.less';
// TODO: ζ·»ε ι»θΎ
// TODO: ζ·»ε ι»θΎ
class
EditableLinkGroup
extends
PureComponent
{
class
EditableLinkGroup
extends
PureComponent
{
static
defaultProps
=
{
links
:
[],
onAdd
:
()
=>
{},
linkElement
:
'
a
'
,
};
static
propTypes
=
{
static
propTypes
=
{
links
:
PropTypes
.
array
,
links
:
PropTypes
.
array
,
onAdd
:
PropTypes
.
func
,
onAdd
:
PropTypes
.
func
,
linkElement
:
PropTypes
.
oneOfType
([
PropTypes
.
func
,
PropTypes
.
string
]),
linkElement
:
PropTypes
.
oneOfType
([
PropTypes
.
func
,
PropTypes
.
string
]),
};
};
static
defaultProps
=
{
links
:
[],
onAdd
:
()
=>
{},
linkElement
:
'
a
'
,
};
render
()
{
render
()
{
const
{
links
,
linkElement
,
onAdd
}
=
this
.
props
;
const
{
links
,
linkElement
,
onAdd
}
=
this
.
props
;
return
(
return
(
...
...
src/components/HeaderSearch/index.js
View file @
2fbc37b0
...
@@ -5,15 +5,6 @@ import classNames from 'classnames';
...
@@ -5,15 +5,6 @@ import classNames from 'classnames';
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
export
default
class
HeaderSearch
extends
PureComponent
{
export
default
class
HeaderSearch
extends
PureComponent
{
static
defaultProps
=
{
defaultActiveFirstOption
:
false
,
onPressEnter
:
()
=>
{},
onSearch
:
()
=>
{},
className
:
''
,
placeholder
:
''
,
dataSource
:
[],
defaultOpen
:
false
,
};
static
propTypes
=
{
static
propTypes
=
{
className
:
PropTypes
.
string
,
className
:
PropTypes
.
string
,
placeholder
:
PropTypes
.
string
,
placeholder
:
PropTypes
.
string
,
...
@@ -23,6 +14,17 @@ export default class HeaderSearch extends PureComponent {
...
@@ -23,6 +14,17 @@ export default class HeaderSearch extends PureComponent {
dataSource
:
PropTypes
.
array
,
dataSource
:
PropTypes
.
array
,
defaultOpen
:
PropTypes
.
bool
,
defaultOpen
:
PropTypes
.
bool
,
};
};
static
defaultProps
=
{
defaultActiveFirstOption
:
false
,
onPressEnter
:
()
=>
{},
onSearch
:
()
=>
{},
className
:
''
,
placeholder
:
''
,
dataSource
:
[],
defaultOpen
:
false
,
};
state
=
{
state
=
{
searchMode
:
this
.
props
.
defaultOpen
,
searchMode
:
this
.
props
.
defaultOpen
,
value
:
''
,
value
:
''
,
...
...
src/components/Login/index.js
View file @
2fbc37b0
...
@@ -8,23 +8,26 @@ import LoginSubmit from './LoginSubmit';
...
@@ -8,23 +8,26 @@ import LoginSubmit from './LoginSubmit';
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
class
Login
extends
Component
{
class
Login
extends
Component
{
static
defaultProps
=
{
className
:
''
,
defaultActiveKey
:
''
,
onTabChange
:
()
=>
{},
onSubmit
:
()
=>
{},
};
static
propTypes
=
{
static
propTypes
=
{
className
:
PropTypes
.
string
,
className
:
PropTypes
.
string
,
defaultActiveKey
:
PropTypes
.
string
,
defaultActiveKey
:
PropTypes
.
string
,
onTabChange
:
PropTypes
.
func
,
onTabChange
:
PropTypes
.
func
,
onSubmit
:
PropTypes
.
func
,
onSubmit
:
PropTypes
.
func
,
};
};
static
childContextTypes
=
{
static
childContextTypes
=
{
tabUtil
:
PropTypes
.
object
,
tabUtil
:
PropTypes
.
object
,
form
:
PropTypes
.
object
,
form
:
PropTypes
.
object
,
updateActive
:
PropTypes
.
func
,
updateActive
:
PropTypes
.
func
,
};
};
static
defaultProps
=
{
className
:
''
,
defaultActiveKey
:
''
,
onTabChange
:
()
=>
{},
onSubmit
:
()
=>
{},
};
state
=
{
state
=
{
type
:
this
.
props
.
defaultActiveKey
,
type
:
this
.
props
.
defaultActiveKey
,
tabs
:
[],
tabs
:
[],
...
...
src/components/NoticeIcon/index.js
View file @
2fbc37b0
...
@@ -7,6 +7,8 @@ import styles from './index.less';
...
@@ -7,6 +7,8 @@ import styles from './index.less';
const
{
TabPane
}
=
Tabs
;
const
{
TabPane
}
=
Tabs
;
export
default
class
NoticeIcon
extends
PureComponent
{
export
default
class
NoticeIcon
extends
PureComponent
{
static
Tab
=
TabPane
;
static
defaultProps
=
{
static
defaultProps
=
{
onItemClick
:
()
=>
{},
onItemClick
:
()
=>
{},
onPopupVisibleChange
:
()
=>
{},
onPopupVisibleChange
:
()
=>
{},
...
@@ -19,7 +21,6 @@ export default class NoticeIcon extends PureComponent {
...
@@ -19,7 +21,6 @@ export default class NoticeIcon extends PureComponent {
},
},
emptyImage
:
'
https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg
'
,
emptyImage
:
'
https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg
'
,
};
};
static
Tab
=
TabPane
;
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{};
this
.
state
=
{};
...
...
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