未验证 提交 0ddd367b 编写于 作者: X xrk 提交者: GitHub

docs: update tabs extra demo (#26968)

上级 39cf26f4
......@@ -1519,8 +1519,7 @@ Array [
class="ant-tabs-extra-content"
>
<button
class="ant-btn"
style="margin-right:15px"
class="ant-btn tabs-extra-demo-button"
type="button"
>
<span>
......
......@@ -23,7 +23,7 @@ const CheckboxGroup = Checkbox.Group;
const operations = <Button>Extra Action</Button>;
const OperationsSlot = {
left: <Button style={{ marginRight: 15 }}>Left Extra Action</Button>,
left: <Button className="tabs-extra-demo-button">Left Extra Action</Button>,
right: <Button>Right Extra Action</Button>,
};
......@@ -85,3 +85,14 @@ const Demo = () => {
ReactDOM.render(<Demo />, mountNode);
```
```css
.tabs-extra-demo-button {
margin-right: 16px;
}
.ant-row-rtl .tabs-extra-demo-button {
margin-right: 0;
margin-left: 16px;
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册