diff --git a/components/tab/demo/card.md b/components/tab/demo/card.md index d02a134a..2f70b9b4 100644 --- a/components/tab/demo/card.md +++ b/components/tab/demo/card.md @@ -1,5 +1,5 @@ --- -order: 4 +order: 5 title: zh-CN: 卡片式页签 en-US: Card type tab diff --git a/components/tab/demo/editable-card.md b/components/tab/demo/editable-card.md index f719840d..1c0ddfd9 100644 --- a/components/tab/demo/editable-card.md +++ b/components/tab/demo/editable-card.md @@ -1,5 +1,5 @@ --- -order: 7 +order: 8 title: zh-CN: 新增和关闭页签 --- diff --git a/components/tab/demo/light.md b/components/tab/demo/light.md index 8f115409..e2bc5fd3 100644 --- a/components/tab/demo/light.md +++ b/components/tab/demo/light.md @@ -1,5 +1,5 @@ --- -order: 5 +order: 6 title: zh-CN: 浅色背景下使用 --- diff --git a/components/tab/demo/sider-menu.md b/components/tab/demo/sider-menu.md index c178982b..9b6eb974 100644 --- a/components/tab/demo/sider-menu.md +++ b/components/tab/demo/sider-menu.md @@ -1,5 +1,5 @@ --- -order: 6 +order: 7 title: zh-CN: 侧边菜单 --- diff --git a/components/tab/demo/slide-vertical.md b/components/tab/demo/slide-vertical.md new file mode 100644 index 00000000..b34e49d4 --- /dev/null +++ b/components/tab/demo/slide-vertical.md @@ -0,0 +1,43 @@ +--- +order: 4 +title: + zh-CN: 左侧使用 + en-US: SlideLeft +--- + +## zh-CN + +可以使用 `dt-tabs-hidden-more-icon` 隐藏数量较多时左下角或右上角的 `···` icon + +## en-US + +You can use 'dt-tabs-hidden-more-icon' to hide the more icon in the bottom left or top right corner when there is a large quantity. + +```jsx +import { Tabs, Radio } from 'antd'; +import { AndroidOutlined, AppleOutlined } from '@ant-design/icons'; + +const { TabPane } = Tabs; + +class SlidingTabsDemo extends React.Component { + constructor(props) { + super(props); + } + + render() { + return ( +