Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
钟摆人-Puppet゜
ant-design-pro
提交
2fbc37b0
A
ant-design-pro
项目概览
钟摆人-Puppet゜
/
ant-design-pro
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design-pro
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2fbc37b0
编写于
6月 04, 2018
作者:
J
jim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix eslint error
上级
2982d869
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
22 deletion
+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
未找到文件。
src/components/EditableLinkGroup/index.js
浏览文件 @
2fbc37b0
...
...
@@ -6,18 +6,17 @@ import styles from './index.less';
// TODO: 添加逻辑
class
EditableLinkGroup
extends
PureComponent
{
static
defaultProps
=
{
links
:
[],
onAdd
:
()
=>
{},
linkElement
:
'
a
'
,
};
static
propTypes
=
{
links
:
PropTypes
.
array
,
onAdd
:
PropTypes
.
func
,
linkElement
:
PropTypes
.
oneOfType
([
PropTypes
.
func
,
PropTypes
.
string
]),
};
static
defaultProps
=
{
links
:
[],
onAdd
:
()
=>
{},
linkElement
:
'
a
'
,
};
render
()
{
const
{
links
,
linkElement
,
onAdd
}
=
this
.
props
;
return
(
...
...
src/components/HeaderSearch/index.js
浏览文件 @
2fbc37b0
...
...
@@ -5,15 +5,6 @@ import classNames from 'classnames';
import
styles
from
'
./index.less
'
;
export
default
class
HeaderSearch
extends
PureComponent
{
static
defaultProps
=
{
defaultActiveFirstOption
:
false
,
onPressEnter
:
()
=>
{},
onSearch
:
()
=>
{},
className
:
''
,
placeholder
:
''
,
dataSource
:
[],
defaultOpen
:
false
,
};
static
propTypes
=
{
className
:
PropTypes
.
string
,
placeholder
:
PropTypes
.
string
,
...
...
@@ -23,6 +14,17 @@ export default class HeaderSearch extends PureComponent {
dataSource
:
PropTypes
.
array
,
defaultOpen
:
PropTypes
.
bool
,
};
static
defaultProps
=
{
defaultActiveFirstOption
:
false
,
onPressEnter
:
()
=>
{},
onSearch
:
()
=>
{},
className
:
''
,
placeholder
:
''
,
dataSource
:
[],
defaultOpen
:
false
,
};
state
=
{
searchMode
:
this
.
props
.
defaultOpen
,
value
:
''
,
...
...
src/components/Login/index.js
浏览文件 @
2fbc37b0
...
...
@@ -8,23 +8,26 @@ import LoginSubmit from './LoginSubmit';
import
styles
from
'
./index.less
'
;
class
Login
extends
Component
{
static
defaultProps
=
{
className
:
''
,
defaultActiveKey
:
''
,
onTabChange
:
()
=>
{},
onSubmit
:
()
=>
{},
};
static
propTypes
=
{
className
:
PropTypes
.
string
,
defaultActiveKey
:
PropTypes
.
string
,
onTabChange
:
PropTypes
.
func
,
onSubmit
:
PropTypes
.
func
,
};
static
childContextTypes
=
{
tabUtil
:
PropTypes
.
object
,
form
:
PropTypes
.
object
,
updateActive
:
PropTypes
.
func
,
};
static
defaultProps
=
{
className
:
''
,
defaultActiveKey
:
''
,
onTabChange
:
()
=>
{},
onSubmit
:
()
=>
{},
};
state
=
{
type
:
this
.
props
.
defaultActiveKey
,
tabs
:
[],
...
...
src/components/NoticeIcon/index.js
浏览文件 @
2fbc37b0
...
...
@@ -7,6 +7,8 @@ import styles from './index.less';
const
{
TabPane
}
=
Tabs
;
export
default
class
NoticeIcon
extends
PureComponent
{
static
Tab
=
TabPane
;
static
defaultProps
=
{
onItemClick
:
()
=>
{},
onPopupVisibleChange
:
()
=>
{},
...
...
@@ -19,7 +21,6 @@ export default class NoticeIcon extends PureComponent {
},
emptyImage
:
'
https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg
'
,
};
static
Tab
=
TabPane
;
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录