Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
7d11006a
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,发现更多精彩内容 >>
提交
7d11006a
编写于
7月 07, 2015
作者:
A
afc163
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:ant-design/ant-design
上级
9b683d29
46c879db
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
54 addition
and
37 deletion
+54
-37
components/steps/demo/custom-icon.md
components/steps/demo/custom-icon.md
+2
-3
components/steps/demo/simple.md
components/steps/demo/simple.md
+2
-2
components/steps/demo/small-size.md
components/steps/demo/small-size.md
+1
-1
components/steps/demo/step-next.md
components/steps/demo/step-next.md
+0
-3
components/steps/index.jsx
components/steps/index.jsx
+5
-2
components/steps/index.md
components/steps/index.md
+3
-2
package.json
package.json
+1
-1
style/components/inputNumber.less
style/components/inputNumber.less
+10
-1
style/components/steps.less
style/components/steps.less
+30
-22
未找到文件。
components/steps/demo/custom-icon.md
浏览文件 @
7d11006a
# 自定义图标步
进
条
# 自定义图标步
骤
条
-
order: 2
...
...
@@ -25,12 +25,11 @@
var
Steps
=
antd
.
Steps
;
var
Step
=
Steps
.
Step
;
var
container
=
document
.
getElementById
(
'
components-steps-demo-custom-icon
'
);
var
imgIcon
=
<
div
className
=
'my-step-icon'
><
img
src
=
'https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg'
/></
div
>
React
.
render
(<
Steps
>
<
Step
status
=
'finish'
title
=
'步骤1'
icon
=
{
<
div
className
=
'my-step-icon'
><
span
className
=
'anticon anticon-cloud'
></
span
></
div
>
}
></
Step
>
<
Step
status
=
'process'
title
=
'步骤2'
icon
=
{
imgIcon
}
></
Step
>
<
Step
status
=
'process'
title
=
'步骤2'
icon
=
{
<
div
className
=
'my-step-icon'
><
span
className
=
'anticon anticon-apple'
></
span
></
div
>
}
></
Step
>
<
Step
status
=
'wait'
title
=
'步骤3'
icon
=
{
<
div
className
=
'my-step-icon'
><
span
className
=
'anticon anticon-github'
></
span
></
div
>
}
></
Step
>
</
Steps
>,
container
);
````
components/steps/demo/simple.md
浏览文件 @
7d11006a
...
...
@@ -21,8 +21,8 @@ var steps = [{
description
:
'
这里是多信息的耶哦耶哦哦耶哦耶哦耶哦耶哦耶
'
},
{
status
:
'
wait
'
,
title
:
'
待运行
'
,
description
:
'
这里是多信息的描述啊
描述啊描述啊
'
title
:
'
又一个
待运行
'
,
description
:
'
描述啊描述啊
'
},
{
status
:
'
wait
'
,
title
:
'
待运行
'
,
...
...
components/steps/demo/small-size.md
浏览文件 @
7d11006a
...
...
@@ -2,7 +2,7 @@
-
order: 1
迷你版的步
进
条,通过设置
`<Steps size='small'>`
启用.
迷你版的步
骤
条,通过设置
`<Steps size='small'>`
启用.
---
...
...
components/steps/demo/step-next.md
浏览文件 @
7d11006a
...
...
@@ -59,9 +59,6 @@ var MyForm = React.createClass({
></
Steps
.
Step
>
})
}
</
Steps
></
div
>
<
div
>
表单输入A:
<
input
/></
div
>
<
div
>
表单输入B:
<
input
/></
div
>
<
div
>
表单输入C:
<
input
/></
div
>
<
div
><
span
className
=
'ant-btn'
onClick
=
{
this
.
nextStep
}
>
下一步
</
span
></
div
>
</
form
>)
}
...
...
components/steps/index.jsx
浏览文件 @
7d11006a
...
...
@@ -7,11 +7,14 @@ var AntSteps = React.createClass({
getDefaultProps
()
{
return
{
prefixCls
:
'
ant-steps
'
,
size
:
'
default
'
size
:
'
default
'
,
maxDescriptionWidth
:
100
};
},
render
()
{
return
(<
Steps
size
=
{
this
.
props
.
size
}
prefixCls
=
{
this
.
props
.
prefixCls
}
>
return
(<
Steps
size
=
{
this
.
props
.
size
}
maxDescriptionWidth
=
{
this
.
props
.
maxDescriptionWidth
}
prefixCls
=
{
this
.
props
.
prefixCls
}
>
{
this
.
props
.
children
}
</
Steps
>);
}
...
...
components/steps/index.md
浏览文件 @
7d11006a
...
...
@@ -17,15 +17,16 @@
### Steps
步
进
条的整体
步
骤
条的整体
| 参数 | 说明 | 类型 | 可选值 |默认值 |
|-----------|------------------------------------------|------------|-------|--------|
| size | 可选参数,指定大小(目前只支持普通和迷你两种大小) | string | small, default | default |
| maxDescriptionWidth | 可选参数,指定步骤的详细描述文字的最大宽度 | number | 无 | 100 |
### Steps.Step
步
进
条的每一个步
步
骤
条的每一个步
| 参数 | 说明 | 类型 | 可选值 |默认值 |
|-----------|------------------------------------------|------------|-------|--------|
...
...
package.json
浏览文件 @
7d11006a
...
...
@@ -21,7 +21,7 @@
"
rc-menu
"
:
"
~3.4.0
"
,
"
rc-progress
"
:
"
~1.0.0
"
,
"
rc-select
"
:
"
~4.0.0
"
,
"
rc-steps
"
:
"
~1.1.
0
"
,
"
rc-steps
"
:
"
~1.1.
2
"
,
"
rc-tabs
"
:
"
~5.1.0
"
,
"
rc-tooltip
"
:
"
~2.2.3
"
},
...
...
style/components/inputNumber.less
浏览文件 @
7d11006a
...
...
@@ -12,6 +12,7 @@
vertical-align: middle;
border: 1px solid #D9D9D9;
border-radius: 5px;
overflow: hidden;
&-handler {
text-align: center;
...
...
@@ -26,6 +27,10 @@
-webkit-user-select: none;
}
&-handler-up-inner {
margin-left: -1px;
}
&:hover {
border-color: #23c0fa;
...
...
@@ -53,7 +58,7 @@
outline: 0;
-moz-appearance: textfield;
line-height: 26px;
height: 2
4
px;
height: 2
2
px;
transition: all 0.3s ease;
color: #666666;
border: 0;
...
...
@@ -72,6 +77,7 @@
&-handler-up {
padding-top: 1px;
border-bottom: 1px solid #D9D9D9;
cursor: pointer;
&-inner {
.iconfont-mixin();
top:-2px;
...
...
@@ -83,6 +89,7 @@
}
&-handler-down {
cursor: pointer;
&-inner {
.iconfont-mixin();
&:before {
...
...
@@ -94,7 +101,9 @@
.handler-disabled() {
opacity: 0.72;
cursor: default;
&:hover {
cursor: default;
color: #999;
border-color: #d9d9d9;
}
...
...
style/components/steps.less
浏览文件 @
7d11006a
...
...
@@ -18,7 +18,7 @@
display: inline-block;
&.@{stepsPrefixClass}-status-wait {
.@{stepsPrefixClass}-head {
.@{stepsPrefixClass}-head
-inner
{
border-color: @wait-color;
background-color: #fff;
...
...
@@ -28,7 +28,7 @@
}
}
&.@{stepsPrefixClass}-status-process {
.@{stepsPrefixClass}-head {
.@{stepsPrefixClass}-head
-inner
{
border-color: @active-color;
background-color: @active-color;
...
...
@@ -38,17 +38,20 @@
}
}
&.@{stepsPrefixClass}-status-finish {
.@{stepsPrefixClass}-head {
.@{stepsPrefixClass}-head
-inner
{
border-color: @active-color;
background-color: #fff;
> .@{stepsPrefixClass}-icon {
color: @active-color;
}
}
.@{stepsPrefixClass}-tail > i {
background-color: @active-color;
}
}
&.@{stepsPrefixClass}-custom {
.@{stepsPrefixClass}-head {
.@{stepsPrefixClass}-head
-inner
{
background: none;
border: 0;
}
...
...
@@ -61,19 +64,24 @@
}
.@{stepsPrefixClass}-head, .@{stepsPrefixClass}-main, .@{stepsPrefixClass}-tail {
.@{stepsPrefixClass}-head, .@{stepsPrefixClass}-main {
position: relative;
display: inline-block;
vertical-align: top;
}
.@{stepsPrefixClass}-head {
background: #fff;
}
.@{stepsPrefixClass}-head-inner {
display: block;
border:2px solid @wait-color;
width: 24px;
height: 24px;
line-height: 2
4
px;
line-height: 2
2
px;
text-align: center;
border-radius: 24px;
font-size: 1
3
px;
font-size: 1
4
px;
margin-right: 12px;
.transition(background-color 0.1s ease);
.transition(border-color 0.1s ease);
...
...
@@ -87,7 +95,6 @@
}
}
.@{stepsPrefixClass}-main {
max-width: 75px;
margin-top: 3px;
}
.@{stepsPrefixClass}-title {
...
...
@@ -95,14 +102,23 @@
margin-bottom: 4px;
color: #666;
font-weight: bold;
background: #fff;
display: inline-block;
padding-right: 10px;
}
.@{stepsPrefixClass}-item-last {
.@{stepsPrefixClass}-title {
padding-right: 0;
}
}
.@{stepsPrefixClass}-description {
font-size: 12px;
color: #999;
}
.@{stepsPrefixClass}-tail {
width: 0;
position: relative;
position: absolute;
left: 0;
width: 100%;
top: 12px;
padding:0 10px;
> i {
...
...
@@ -115,19 +131,17 @@
}
&.@{stepsPrefixClass}-small {
.@{stepsPrefixClass}-head {
.@{stepsPrefixClass}-head
-inner
{
border:1px solid @wait-color;
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
border-radius: 18px;
font-size: 1
0
px;
font-size: 1
2
px;
margin-right: 10px;
}
.@{stepsPrefixClass}-main {
max-width: 75px;
margin-top: 0;
}
.@{stepsPrefixClass}-title {
...
...
@@ -151,13 +165,7 @@
}
}
&.@{stepsPrefixClass}-init, &.@{stepsPrefixClass}-init.@{stepsPrefixClass}-small {
.@{stepsPrefixClass}-tail {
padding: 0;
}
}
&.@{stepsPrefixClass}-small .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head, .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head {
&.@{stepsPrefixClass}-small .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner, .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner {
width: inherit;
height: inherit;
line-height: inherit;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录