diff --git a/components/popover/demo/placement.md b/components/popover/demo/placement.md index 5937b4f6dab691e8ff1255cef958fcb55e5ae727..b1944be0ac9f3111a3de2e9efe800e57fa809323 100644 --- a/components/popover/demo/placement.md +++ b/components/popover/demo/placement.md @@ -16,45 +16,50 @@ const content =
; ReactDOM.render(
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - +
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
, document.getElementById('components-popover-demo-placement')); ```` diff --git a/components/popover/index.md b/components/popover/index.md index 4aeb957fe94e1425c68e5a63c927ded83f90e9de..6f22e723891d4994f027160316fc11ddff54559e 100644 --- a/components/popover/index.md +++ b/components/popover/index.md @@ -20,7 +20,7 @@ | 参数 | 说明 | 类型 | 默认值 | |-----------|------------------------------------------|---------------|--------| | trigger | 触发行为,可选 `hover/focus/click` | string | hover | -| placement | 气泡框位置,可选 `top/left/right/bottom` | string | top | +| placement | 气泡框位置,可选 `top/left/right/bottom/topLeft/topRight/bottomLeft/bottomRight/leftTop/leftBottom/rightTop/rightBottom` | string | top | | title | 卡片标题 | React.Element | 无 | | overlay | 卡片内容 | React.Element | 无 | | prefixCls | 浮层的类名 | string | 无 | diff --git a/components/tooltip/demo/placement.md b/components/tooltip/demo/placement.md index e0fc600ccd03957fb5549f66e0772df132d887ac..701b4ed82fec28c578348d15bb1716b766be6101 100644 --- a/components/tooltip/demo/placement.md +++ b/components/tooltip/demo/placement.md @@ -12,18 +12,18 @@ const text = 提示文字; ReactDOM.render(
-
+
- 上左 topLeft + 上左 - 上边 top + 上边 - 上右 topRight + 上右
-
+
左上 @@ -34,7 +34,7 @@ ReactDOM.render( 左下
-
+
右上 @@ -45,7 +45,7 @@ ReactDOM.render( 右下
-
+
上右 @@ -65,8 +65,8 @@ ReactDOM.render( display: inline-block; line-height: 32px; height: 32px; - width: 90px; - font-size: 12px; + width: 60px; + font-size: 14px; text-align: center; background: #f5f5f5; margin-right: 1em;