Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
c47fdeaf
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,发现更多精彩内容 >>
提交
c47fdeaf
编写于
3月 30, 2016
作者:
A
afc163
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into develop-1.0.0
上级
9584cf0a
1d1d0bac
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
38 addition
and
54 deletion
+38
-54
components/dropdown/index.md
components/dropdown/index.md
+1
-1
components/form/Form.jsx
components/form/Form.jsx
+3
-3
components/form/FormItem.jsx
components/form/FormItem.jsx
+2
-1
components/input-number/index.jsx
components/input-number/index.jsx
+2
-2
components/popover/index.md
components/popover/index.md
+1
-0
components/queue-anim/demo/form.md
components/queue-anim/demo/form.md
+27
-43
components/queue-anim/demo/simple.md
components/queue-anim/demo/simple.md
+1
-1
components/select/index.md
components/select/index.md
+1
-0
style/mixins/button.less
style/mixins/button.less
+0
-3
未找到文件。
components/dropdown/index.md
浏览文件 @
c47fdeaf
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
|-------------|------------------|--------------------|--------------|
|-------------|------------------|--------------------|--------------|
| trigger | 触发下拉的行为 | ['click'] or ['hover'] | ['hover'] |
| trigger | 触发下拉的行为 | ['click'] or ['hover'] | ['hover'] |
| overlay | 菜单节点 |
[
Menu
](
/components/menu
)
| 无 |
| overlay | 菜单节点 |
[
Menu
](
/components/menu
)
| 无 |
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。
[
示例
](
http://codepen.io/anon/pen/ONjyba?editors=001
)
| Function(triggerNode) | () => document.body |
菜单可由
`antd.Menu`
取得,可设置
`onSelect`
回调,菜单还包括菜单项
`antd.Menu.Item`
,分割线
`antd.Menu.Divider`
。
菜单可由
`antd.Menu`
取得,可设置
`onSelect`
回调,菜单还包括菜单项
`antd.Menu.Item`
,分割线
`antd.Menu.Divider`
。
...
...
components/form/Form.jsx
浏览文件 @
c47fdeaf
...
@@ -29,15 +29,15 @@ export default class Form extends React.Component {
...
@@ -29,15 +29,15 @@ export default class Form extends React.Component {
}
}
render
()
{
render
()
{
const
{
prefixCls
,
className
}
=
this
.
props
;
const
{
prefixCls
,
className
,
style
}
=
this
.
props
;
const
formClassName
=
classNames
({
const
formClassName
=
classNames
({
[
className
]:
!!
className
,
[
`
${
prefixCls
}
-horizontal`
]:
this
.
props
.
horizontal
,
[
`
${
prefixCls
}
-horizontal`
]:
this
.
props
.
horizontal
,
[
`
${
prefixCls
}
-inline`
]:
this
.
props
.
inline
,
[
`
${
prefixCls
}
-inline`
]:
this
.
props
.
inline
,
[
className
]:
!!
className
,
});
});
return
(
return
(
<
form
{
...
this
.
props
}
className
=
{
formClassName
}
>
<
form
{
...
this
.
props
}
className
=
{
formClassName
}
style
=
{
style
}
>
{
this
.
props
.
children
}
{
this
.
props
.
children
}
</
form
>
</
form
>
);
);
...
...
components/form/FormItem.jsx
浏览文件 @
c47fdeaf
...
@@ -187,6 +187,7 @@ export default class FormItem extends React.Component {
...
@@ -187,6 +187,7 @@ export default class FormItem extends React.Component {
renderFormItem
(
children
)
{
renderFormItem
(
children
)
{
const
props
=
this
.
props
;
const
props
=
this
.
props
;
const
prefixCls
=
props
.
prefixCls
;
const
prefixCls
=
props
.
prefixCls
;
const
style
=
props
.
style
;
const
itemClassName
=
{
const
itemClassName
=
{
[
`
${
prefixCls
}
-item`
]:
true
,
[
`
${
prefixCls
}
-item`
]:
true
,
[
`
${
prefixCls
}
-item-with-help`
]:
!!
this
.
getHelpMsg
(),
[
`
${
prefixCls
}
-item-with-help`
]:
!!
this
.
getHelpMsg
(),
...
@@ -194,7 +195,7 @@ export default class FormItem extends React.Component {
...
@@ -194,7 +195,7 @@ export default class FormItem extends React.Component {
};
};
return
(
return
(
<
div
className
=
{
classNames
(
itemClassName
)
}
>
<
div
className
=
{
classNames
(
itemClassName
)
}
style
=
{
style
}
>
{
children
}
{
children
}
</
div
>
</
div
>
);
);
...
...
components/input-number/index.jsx
浏览文件 @
c47fdeaf
...
@@ -11,8 +11,8 @@ export default class InputNumber extends React.Component {
...
@@ -11,8 +11,8 @@ export default class InputNumber extends React.Component {
render
()
{
render
()
{
const
{
className
,
size
,
...
other
}
=
this
.
props
;
const
{
className
,
size
,
...
other
}
=
this
.
props
;
const
inputNumberClass
=
classNames
({
const
inputNumberClass
=
classNames
({
'
ant-input-number-lg
'
:
size
===
'
large
'
,
[
`
${
this
.
props
.
prefixCls
}
-lg`
]
:
size
===
'
large
'
,
'
ant-input-number-sm
'
:
size
===
'
small
'
,
[
`
${
this
.
props
.
prefixCls
}
-sm`
]
:
size
===
'
small
'
,
[
className
]:
!!
className
,
[
className
]:
!!
className
,
});
});
...
...
components/popover/index.md
浏览文件 @
c47fdeaf
...
@@ -26,3 +26,4 @@
...
@@ -26,3 +26,4 @@
| prefixCls | 浮层的类名 | string | ant-popover |
| prefixCls | 浮层的类名 | string | ant-popover |
| visible | 用于手动控制浮层显隐 | boolean | false |
| visible | 用于手动控制浮层显隐 | boolean | false |
| onVisibleChange | 显示隐藏改变的回调 | function | 无 |
| onVisibleChange | 显示隐藏改变的回调 | function | 无 |
| getTooltipContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。
[
示例
](
http://codepen.io/anon/pen/ONjyba?editors=001
)
| Function(triggerNode) | () => document.body |
components/queue-anim/demo/form.md
浏览文件 @
c47fdeaf
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
---
---
````
jsx
````
jsx
import
{
QueueAnim
,
Button
,
Checkbox
,
Radio
}
from
'
antd
'
;
import
{
QueueAnim
,
Button
,
Radio
,
Input
,
Form
,
Row
,
Col
}
from
'
antd
'
;
const
FormItem
=
Form
.
Item
;
const
RadioGroup
=
Radio
.
Group
;
const
RadioGroup
=
Radio
.
Group
;
const
Test
=
React
.
createClass
({
const
Test
=
React
.
createClass
({
...
@@ -22,54 +23,37 @@ const Test = React.createClass({
...
@@ -22,54 +23,37 @@ const Test = React.createClass({
});
});
},
},
render
()
{
render
()
{
const
formItemLayout
=
{
labelCol
:
{
span
:
6
},
wrapperCol
:
{
span
:
14
},
};
return
(
return
(
<
div
>
<
div
>
<
p
className
=
"buttons"
>
<
p
className
=
"buttons"
>
<
Button
type
=
"primary"
onClick
=
{
this
.
onClick
}
>
切换
</
Button
>
<
Button
type
=
"primary"
onClick
=
{
this
.
onClick
}
>
切换
</
Button
>
</
p
>
</
p
>
<
QueueAnim
component
=
"form"
className
=
"
ant-form-horizontal"
type
=
"bottom"
leaveReverse
>
<
QueueAnim
component
=
{
Form
}
className
=
"ant-form
ant-form-horizontal"
type
=
"bottom"
leaveReverse
>
{
this
.
state
.
show
?
[
{
this
.
state
.
show
?
[
<
div
className
=
"ant-form-item ant-form-item-compact"
key
=
"name"
>
<
FormItem
key
=
"item1"
{
...
formItemLayout
}
label
=
"用户名:"
>
<
label
htmlFor
=
"userName"
className
=
"col-6"
required
>
用户名:
</
label
>
<
p
className
=
"ant-form-text"
>
大眼萌 minion
</
p
>
<
div
className
=
"col-6"
>
</
FormItem
>,
<
p
className
=
"ant-form-text"
>
大眼萌 minion
</
p
>
<
FormItem
key
=
"item2"
{
...
formItemLayout
}
label
=
"密码:"
>
</
div
>
<
Input
type
=
"password"
placeholder
=
"请输入密码"
/>
</
div
>,
</
FormItem
>,
<
div
className
=
"ant-form-item"
key
=
"password"
>
<
FormItem
key
=
"item3"
{
...
formItemLayout
}
label
=
"您的性别:"
>
<
label
htmlFor
=
"password"
className
=
"col-6"
required
>
密码:
</
label
>
<
RadioGroup
>
<
div
className
=
"col-14"
>
<
Radio
value
=
"male"
>
男的
</
Radio
>
<
input
className
=
"ant-input"
type
=
"password"
id
=
"password"
placeholder
=
"请输入密码"
/>
<
Radio
value
=
"female"
>
女的
</
Radio
>
</
div
>
</
RadioGroup
>
</
div
>,
</
FormItem
>,
<
div
className
=
"ant-form-item ant-form-item-compact"
key
=
"sex"
>
<
FormItem
key
=
"item4"
{
...
formItemLayout
}
label
=
"备注:"
>
<
label
className
=
"col-6"
required
>
您的性别:
</
label
>
<
Input
type
=
"textarea"
placeholder
=
"随便写"
/>
<
div
className
=
"col-14"
>
</
FormItem
>,
<
RadioGroup
value
=
"male"
>
<
Row
key
=
"submit"
>
<
Radio
value
=
"male"
>
男的
</
Radio
>
<
Col
span
=
"16"
offset
=
"6"
>
<
Radio
value
=
"female"
>
女的
</
Radio
>
<
Button
type
=
"primary"
htmlType
=
"submit"
>
确定
</
Button
>
</
RadioGroup
>
</
Col
>
</
div
>
</
Row
>,
</
div
>,
<
div
className
=
"ant-form-item"
key
=
"remark"
>
<
label
htmlFor
=
"remark"
className
=
"col-6"
required
>
备注:
</
label
>
<
div
className
=
"col-14"
>
<
textarea
className
=
"ant-input"
id
=
"remark"
placeholder
=
"随便写"
></
textarea
>
<
p
className
=
"ant-form-explain"
>
随便写点什么
</
p
>
</
div
>
</
div
>,
<
div
className
=
"ant-form-item ant-form-item-compact"
key
=
"checkbox"
>
<
div
className
=
"col-14 col-offset-6"
>
<
label
>
<
Checkbox
/>
同意
</
label
>
</
div
>
</
div
>,
<
div
className
=
"row"
key
=
"btn"
>
<
div
className
=
"col-16 col-offset-6"
>
<
Button
type
=
"primary"
>
确定
</
Button
>
</
div
>
</
div
>
]
:
null
}
]
:
null
}
</
QueueAnim
>
</
QueueAnim
>
</
div
>
</
div
>
...
...
components/queue-anim/demo/simple.md
浏览文件 @
c47fdeaf
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
import
{
QueueAnim
}
from
'
antd
'
;
import
{
QueueAnim
}
from
'
antd
'
;
ReactDOM
.
render
(
ReactDOM
.
render
(
<
QueueAnim
delay
=
{
500
}
>
<
QueueAnim
delay
=
{
500
}
style
=
{
{
height
:
150
}
}
>
<
div
key
=
"a"
>
依次进场
</
div
>
<
div
key
=
"a"
>
依次进场
</
div
>
<
div
key
=
"b"
>
依次进场
</
div
>
<
div
key
=
"b"
>
依次进场
</
div
>
<
div
key
=
"c"
>
依次进场
</
div
>
<
div
key
=
"c"
>
依次进场
</
div
>
...
...
components/select/index.md
浏览文件 @
c47fdeaf
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
| size | 选择框大小,可选
`large`
`small`
| String | default |
| size | 选择框大小,可选
`large`
`small`
| String | default |
| showSearch | 在下拉中显示搜索框 | boolean | false |
| showSearch | 在下拉中显示搜索框 | boolean | false |
| disabled | 是否禁用 | boolean | false |
| disabled | 是否禁用 | boolean | false |
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。
[
示例
](
http://codepen.io/anon/pen/ONjyba?editors=001
)
| Function(triggerNode) | () => document.body |
### Option props
### Option props
...
...
style/mixins/button.less
浏览文件 @
c47fdeaf
...
@@ -84,9 +84,6 @@
...
@@ -84,9 +84,6 @@
.user-select(none);
.user-select(none);
.transition(all .3s @ease-in-out);
.transition(all .3s @ease-in-out);
transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
// Fix for ie8 border-radius
// http://css3pie.com/documentation/known-issues/#z-index
position: relative\0;
> .@{iconfont-css-prefix} {
> .@{iconfont-css-prefix} {
line-height: 1;
line-height: 1;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录