Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
41ed04e9
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
41ed04e9
编写于
1月 14, 2016
作者:
B
Benjy Cui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style: update code style to please lint
上级
dde03eae
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
11 addition
and
11 deletion
+11
-11
components/breadcrumb/index.jsx
components/breadcrumb/index.jsx
+2
-2
components/calendar/index.jsx
components/calendar/index.jsx
+2
-2
components/message/index.jsx
components/message/index.jsx
+2
-2
components/popconfirm/index.jsx
components/popconfirm/index.jsx
+1
-1
components/upload/index.jsx
components/upload/index.jsx
+2
-2
components/upload/uploadList.jsx
components/upload/uploadList.jsx
+2
-2
未找到文件。
components/breadcrumb/index.jsx
浏览文件 @
41ed04e9
...
...
@@ -53,11 +53,11 @@ const Breadcrumb = React.createClass({
const
ReactRouter
=
router
;
if
(
routes
&&
routes
.
length
>
0
&&
ReactRouter
)
{
let
Link
=
ReactRouter
.
Link
;
crumbs
=
routes
.
map
(
function
(
route
,
i
)
{
crumbs
=
routes
.
map
(
function
(
route
,
i
)
{
if
(
!
route
.
breadcrumbName
)
{
return
null
;
}
const
name
=
route
.
breadcrumbName
.
replace
(
/
\:(
.*
)
/g
,
function
(
replacement
,
key
)
{
const
name
=
route
.
breadcrumbName
.
replace
(
/
\:(
.*
)
/g
,
function
(
replacement
,
key
)
{
return
params
[
key
]
||
replacement
;
});
let
link
;
...
...
components/calendar/index.jsx
浏览文件 @
41ed04e9
...
...
@@ -5,9 +5,9 @@ import FullCalendar from 'rc-calendar/lib/FullCalendar';
import
{
PREFIX_CLS
}
from
'
./Constants
'
;
import
Header
from
'
./Header
'
;
function
noop
()
{
return
null
;
}
function
noop
()
{
return
null
;
}
function
zerofixed
(
v
)
{
function
zerofixed
(
v
)
{
if
(
v
<
10
)
return
'
0
'
+
v
;
return
v
+
''
;
}
...
...
components/message/index.jsx
浏览文件 @
41ed04e9
...
...
@@ -46,9 +46,9 @@ function notice(content, duration = defaultDuration, type, onClose) {
</
div
>,
onClose
});
return
(
function
()
{
return
(
function
()
{
let
target
=
key
++
;
return
function
()
{
return
function
()
{
instance
.
removeNotice
(
target
);
};
})();
...
...
components/popconfirm/index.jsx
浏览文件 @
41ed04e9
...
...
@@ -4,7 +4,7 @@ import Icon from '../icon';
import
Button
from
'
../button
'
;
const
prefixCls
=
'
ant-popover
'
;
const
noop
=
function
()
{};
const
noop
=
function
()
{};
const
transitionNames
=
{
top
:
'
zoom-down
'
,
bottom
:
'
zoom-up
'
,
...
...
components/upload/index.jsx
浏览文件 @
41ed04e9
...
...
@@ -37,7 +37,7 @@ function genPercentAdd() {
let
k
=
0.1
;
const
i
=
0.01
;
const
end
=
0.98
;
return
function
(
s
)
{
return
function
(
s
)
{
let
start
=
s
;
if
(
start
>=
end
)
{
return
start
;
...
...
@@ -65,7 +65,7 @@ const AntUpload = React.createClass({
let
targetItem
;
let
nextFileList
=
this
.
state
.
fileList
.
concat
();
if
(
file
.
length
>
0
)
{
targetItem
=
file
.
map
(
function
(
f
)
{
targetItem
=
file
.
map
(
function
(
f
)
{
const
fileObject
=
fileToObject
(
f
);
fileObject
.
status
=
'
uploading
'
;
return
fileObject
;
...
...
components/upload/uploadList.jsx
浏览文件 @
41ed04e9
...
...
@@ -6,9 +6,9 @@ import { Line } from '../progress';
import
classNames
from
'
classnames
'
;
// https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
const
previewFile
=
function
(
file
,
callback
)
{
const
previewFile
=
function
(
file
,
callback
)
{
const
reader
=
new
FileReader
();
reader
.
onloadend
=
function
()
{
reader
.
onloadend
=
function
()
{
callback
(
reader
.
result
);
};
reader
.
readAsDataURL
(
file
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录