Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
e62c4c76
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,发现更多精彩内容 >>
提交
e62c4c76
编写于
11月 04, 2015
作者:
P
popomore
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: support more placement for popconfirm
上级
84647fa1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
13 deletion
+44
-13
components/popconfirm/demo/placement.md
components/popconfirm/demo/placement.md
+36
-5
components/popover/demo/placement.md
components/popover/demo/placement.md
+8
-8
未找到文件。
components/popconfirm/demo/placement.md
浏览文件 @
e62c4c76
...
...
@@ -7,7 +7,7 @@
---
````
jsx
import
{
Popconfirm
,
message
}
from
'
antd
'
;
import
{
Popconfirm
,
message
,
Button
}
from
'
antd
'
;
const
text
=
'
确定要删除这个任务吗?
'
;
...
...
@@ -16,17 +16,44 @@ function confirm() {
}
ReactDOM
.
render
(<
div
>
<
Popconfirm
placement
=
"leftTop"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
左上
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"left"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
a
href
=
"javascript:;"
>
左边
</
a
>
<
Button
>
左
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"leftBottom"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
左下
</
Button
>
</
Popconfirm
>
<
br
/>
<
Popconfirm
placement
=
"topLeft"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
上左
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"top"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
a
href
=
"javascript:;"
>
上边
</
a
>
<
Button
>
上
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"topRight"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
上右
</
Button
>
</
Popconfirm
>
<
br
/>
<
Popconfirm
placement
=
"bottomLeft"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
下左
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"bottom"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
a
href
=
"javascript:;"
>
下边
</
a
>
<
Button
>
下
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"bottomRight"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
下右
</
Button
>
</
Popconfirm
>
<
br
/>
<
Popconfirm
placement
=
"rightTop"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
右上
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"right"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
a
href
=
"javascript:;"
>
右边
</
a
>
<
Button
>
右
</
Button
>
</
Popconfirm
>
<
Popconfirm
placement
=
"rightBottom"
title
=
{
text
}
onConfirm
=
{
confirm
}
>
<
Button
>
右下
</
Button
>
</
Popconfirm
>
</
div
>,
document
.
getElementById
(
'
components-popconfirm-demo-placement
'
));
````
...
...
@@ -35,4 +62,8 @@ ReactDOM.render(<div>
.code-box-demo .ant-popover-wrap > a {
margin-right: 1em;
}
.code-box-demo .ant-btn {
margin-right: 1em;
margin-bottom: 1em;
}
</style>
components/popover/demo/placement.md
浏览文件 @
e62c4c76
...
...
@@ -17,43 +17,43 @@ const content = <div>
ReactDOM
.
render
(<
div
>
<
Popover
placement
=
"leftTop"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
左上
</
b
utton
>
<
Button
>
左上
</
B
utton
>
</
Popover
>
<
Popover
placement
=
"left"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
Button
>
左
</
Button
>
</
Popover
>
<
Popover
placement
=
"leftBottom"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
左下
</
b
utton
>
<
Button
>
左下
</
B
utton
>
</
Popover
>
<
br
/>
<
Popover
placement
=
"topLeft"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
上左
</
b
utton
>
<
Button
>
上左
</
B
utton
>
</
Popover
>
<
Popover
placement
=
"top"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
Button
>
上
</
Button
>
</
Popover
>
<
Popover
placement
=
"topRight"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
上右
</
b
utton
>
<
Button
>
上右
</
B
utton
>
</
Popover
>
<
br
/>
<
Popover
placement
=
"bottomLeft"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
下左
</
b
utton
>
<
Button
>
下左
</
B
utton
>
</
Popover
>
<
Popover
placement
=
"bottom"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
Button
>
下
</
Button
>
</
Popover
>
<
Popover
placement
=
"bottomRight"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
下右
</
b
utton
>
<
Button
>
下右
</
B
utton
>
</
Popover
>
<
br
/>
<
Popover
placement
=
"rightTop"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
右上
</
b
utton
>
<
Button
>
右上
</
B
utton
>
</
Popover
>
<
Popover
placement
=
"right"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
Button
>
右
</
Button
>
</
Popover
>
<
Popover
placement
=
"rightBottom"
title
=
{
text
}
overlay
=
{
content
}
trigger
=
"click"
>
<
button
className
=
"ant-btn"
>
右下
</
b
utton
>
<
Button
>
右下
</
B
utton
>
</
Popover
>
</
div
>,
document
.
getElementById
(
'
components-popover-demo-placement
'
));
````
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录